tihoho Posted November 7, 2018 Share Posted November 7, 2018 (edited) 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? Edited November 12, 2018 by tihoho Fhaser → Phaser Link to comment Share on other sites More sharing options...
samid737 Posted November 8, 2018 Share Posted November 8, 2018 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. rex 1 Link to comment Share on other sites More sharing options...
tihoho Posted November 8, 2018 Author Share Posted November 8, 2018 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 Link to comment Share on other sites More sharing options...
elleniaw Posted November 8, 2018 Share Posted November 8, 2018 I think Samid just made this to show you how you would do it - like in half an hours work. Of course, it's not going to feel very natural, those things take a lot of time to fine tune. kvazmatik 1 Link to comment Share on other sites More sharing options...
Recommended Posts