tihoho

Driving car like a GTA-2

Recommended Posts

Whether there are fresh examples for Phaser 3. It is interesting to see the implementation of physics and realistic control of the machine in the style of GTA-2. I saw a couple of examples for Phaser 2, and they are something too complicated.

How rotation car by ellipsis? How accelerate? How to ride back with a realistic turn?

22-2.jpg

Edited by tihoho
Fhaser → Phaser

Share this post


Link to post
Share on other sites
46 minutes ago, samid737 said:

https://codepen.io/Samid737/pen/GdVZeX

The physics model is highly simplified and it won't decelerate like in GTA-2, you will need to add in drag to achieve this.

Samid, thanks for the example, but it doesn't look like the physics of the machine. not too realistic turns. so I found it: it’s more like the truth, only for the phaser 2, and it seems to me that on 3 it is easier to write.

https://simple-car-game.herokuapp.com/

https://codeburst.io/how-to-make-a-simple-multiplayer-online-car-game-with-javascript-89d47908f995

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.