Appendix B: Expected Code Per Chapter
We understand that there are cases you need to “cheat” and need to look for the “correct” code after each chapter.
Maybe you’ve been spending too much time trying to find where you mistyped the code. Maybe a participant had to leave the workshop for 1 hour to deal with an emergency.
Regardless of the reason, here are the working code for each chapter of the workshop.
- Overview of the Starting Code - Browse in Github, Download Zip
- Sprites, the Game Loop, and Basic Physics - Browse in Github, Download Zip
- Player Actions - Browse in Github, Download Zip
- Object Groups - Browse in Github, Download Zip
- Refactoring - Browse in Github, Download Zip
- Health, Score, and Win/Lose Conditions - Browse in Github, Download Zip
-
Expanding the Game
- Harder Enemy - Browse in Github, Download Zip
- Power-up - Browse in Github, Download Zip
- Boss Battle - Browse in Github, Download Zip
- Sound Effects - Browse in Github, Download Zip
-
Wrapping Up
- Restore original game flow - Browse in Github, Download Zip
- Sharing your game - Browse in Github, Download Zip
To make sure the lazy people don’t cheat all the way, we won’t provide links to solutions for the Challenges.