Search the Community
Showing results for tags 'game mechanics'.
Found 1 result
Hey Guys, My goal is to create a top-down 2d racing game (if the title didn't give it away). I've done a bit of Googling for examples of this mechanic, but haven't found any (yet). On the other hand I've found a lot of "spaceship" mechanics and have been tinkering with it, but couldn't get where I wanted. My intention is to have a minimalist racing mechanic, acceleration/velocity, braking and drag. Oh, and steering. That's the problem, actually. I have used both "velocity/accelerationFromRotation" and modifying the acceleration with Math.cos/sin on rotation. I feel like the issue may be related to reducing the velocity/acceleration while steering (turning left/right), but that didn't work quite well, also. Finally, I'm not asking for dumb copy/paste code per se (but as this may be very basic, I would not dismiss it), instead I would like to know more about the theory, and then try to code it myself. p.s.: If everything goes well I'll write a tutorial and share it.