filmov
tv
Playing with simple gravity simulation in Python 3 and Turtle and game speed (fps)

Показать описание
I made jumping in my platform game way too complex and decided to play a little bit with (simple) gravity simulation. I started with a ball in vertical direction, both vertical and horizontal, adding an element of wind, flappy bird type animation and using gravity with a platform type game. I also changed my cannon shooting game to add gravity and use trig functions(sin/cos) to work out velocity in x and y based on the angle of the cannon (see link below). Feel free to look at the code for improvements/questions:
Simple cannon shooting game with simulated gravity in Python 3 and Turtle:
Simple cannon shooting game with simulated gravity in Python 3 and Turtle: