Charm City Code

Focused on teaching kids to code

Pygame With Code Angel

2021-02-07 Python

Learning to build video games is a popular reason kids are excited to try coding. Code Angel has some great Python game projects with videos to teach Pygame concepts. Code Angel gives students the code, images and audio to make a great game.

screenshot of forest bomber game

Instead of typing the full code into an editor, I created a few templates for each video tutorial that makes starting with game development even easier for students.
The first line says which lines to edit ### ENTER CODE ON LINES 149-151 AND 126-127 ### and then there are extra comments to show exactly where to type.

125     ### TYPE CODE BELOW THIS LINE ###
126
127
128     ### TYPE CODE ABOVE THIS LINE ###

Each template corresponds with the accompanying video tutorial and explains how that part of the code works. After completing the tutorial, students can have fun playing the game they coded. To learn more about Python or to try a free Pygame lesson, visit Code&Play.

screenshot of text editor