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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.