The anatomy of a 2D Python game as seen through pictures and videos…
Let's have a look at the steps needed to create this game: thepythoncodingbook.com/2022/04/24/pyt…
👇🪡🧵
#python #100daysofcode #coding #2DGame
1 of 12 
1.  Create the window and game background
2 of 12 
2.  Create the lunar module
3 of 12 
3.  Set the lunar module to start rotating when you press a key…
…but once it starts, it keeps spinning faster and faster and faster…
4 of 12 
4.  Add option to stop accelerating the rotation when key is released
5 of 12 
5.  Add some artistic flare—show the fuel burning from the thrusters when they're turned on.
6 of 12 
6.  Lunar module needs to translate as well as rotate…
7 of 12 
7.  The thrusters are not just for rotation. When both are on, the lunar module moves forward…
8 of 12 
8.  And then, there's gravity to pull the lunar module downwards, towards the lunar surface.
9 of 12 
9.  Finally, there's a landing pad for the lunar module to land on…
…as long as the position and orientation is within landing tolerances!
10 of 12 
Read the step-by-step tutorial on The Python Coding Book blog: thepythoncodingbook.com/2022/04/24/pyt…
11 of 12
I hope you liked this anatomy of a 2D game thread…
Follow me @s_gruppetta_ct for more.
Like/Retweet the first tweet below if you can:
#python #coding
12 of 12 
Share this Scrolly Tale with your friends.
A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.  
        
Discover more beautiful Scrolly Tales like this.
