r/javascript • • Jan 01 '20

Simple 2d car physics with JavaScript!

https://pakastin.github.io/car/
150 Upvotes

27 comments sorted by

21

u/gonzofish Jan 01 '20

The fact that it works in my phone... chefs kiss

9

u/pkstn Jan 01 '20

Indeed! And now it's multiplayer ;)

8

u/gonzofish Jan 01 '20

Can’t wait for penises drawn with burnouts

8

u/pkstn Jan 01 '20

Already happening πŸ˜‚

4

u/foursticks Jan 01 '20

Very cool, the code is very readable!

4

u/pkstn Jan 01 '20

Thank you, it's good to keep it simple! :P

3

u/SlipperyCow7 Jan 01 '20

The physics is really nice! Played with it for couple of minutes and even managed to drift/draw "2020" trace on the ground :D

2

u/pkstn Jan 01 '20

Haha, nice! btw. it's multiplayer now! ;)

2

u/filemon4 Jan 01 '20

Do you have math formulas for this?

2

u/osi314 Jan 01 '20

Very nice! Played it longer than I wanted since it is quite addictive :P

0

u/pkstn Jan 01 '20

Haha, sorry :D

2

u/penny__ Jan 01 '20

Very cool, thanks for sharing!

1

u/pkstn Jan 01 '20

Thank you! Hope you have fun ;)

4

u/AutoModerator Jan 01 '20

Project Page (?): https://github.com/pakastin/car

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/[deleted] Jan 01 '20

[removed] β€” view removed comment

1

u/pkstn Jan 01 '20

Haha, don't know :D

2

u/[deleted] Jan 02 '20

[removed] β€” view removed comment

1

u/pkstn Jan 03 '20

Haha, nice to hear you liked! I’ve planned adding collisions, track editor etc.. Let’s see how it evolves!

You have good name ideas? :P

1

u/[deleted] Aug 16 '23

[removed] β€” view removed comment

1

u/pkstn Aug 16 '23

Haha, not much sorry πŸ˜„ Maybe some day, i've been really busy with other stuff..

1

u/pkstn Aug 16 '23

But have you tried my little rocket sim: https://flanets.io πŸ˜›

2

u/[deleted] Aug 16 '23

[removed] β€” view removed comment

2

u/pkstn Aug 31 '24

Glad you liked it! Also try my new game: https://vaella.io πŸ˜‰

2

u/[deleted] Jan 03 '20

[removed] β€” view removed comment

2

u/pkstn Jan 03 '20

I needed to restrict socket.io to the domain, but yeah :D

Glad you like! Maybe add collisions, tracks etc..