In this video we'll learn how to create Gravity for our Platformer game with Pygame and Python.
Gravity is a constant force pushing down on our player.
It's what will make our player fall when they walk off a cliff, and it will factor into jumping later on.
#pygame #codemy #JohnElder
Timecodes
0:00 - Introduction
0:58 - Move Aspen Up
2:00 - Add Tile Groups To Aspen Class
3:26 - Define Gravity
4:28 - Add Gravity To Game
5:26 - Grass Collision
6:47 - Collision Logic
9:20 - Water Collision
10:50 - Change Gravity Number
11:10 - Fix Aspen Jiggle
12:38 - Conclusion
11 Comments