Source Code Makeover: Square Shooter, Part 3
Posted by Al Sweigart in misc
This is a continuation from Part 1 and Part 2, where I go through the source code of Square Shooter, an Asteroids clone, and try to redesign the code to be more readable.
Posted by Al Sweigart in misc
This is a continuation from Part 1 and Part 2, where I go through the source code of Square Shooter, an Asteroids clone, and try to redesign the code to be more readable.
Posted by Al Sweigart in misc
This is a continuation from Part 1, where I go through the source code of Square Shooter, an Asteroids clone, and try to redesign the code to be more readable.
Posted by Al Sweigart in misc
In this blog post, I'm taking a game off of Pygame.org and going through it to make it more readable and extend its functionality. You'll see an example of how to take code that works and changes to improve it's design (but more importantly, I explain why I make those changes).
Posted by Al Sweigart in misc
If you need an idea for a game, try this random game mechanic generator.
Posted by Al Sweigart in misc
Posted by Al Sweigart in misc
Figuring out what Python's error messages mean can be kind of tricky when you are first learning the language. Here's a list of common errors that result in runtime error messages which will crash your program.
Posted by Al Sweigart in misc
True is the opposite of false. Up is the opposite of down. What is the opposite of dog?
Posted by Al Sweigart in misc
Posted by Al Sweigart in misc
This post goes into the details of how you can add a "save game" feature to your Python games.
Posted by Al Sweigart in misc
To figure out bugs in your code, you might put in print
statements/print()
calls to display the value of variables. Don’t do this. Use the Python logging
module.