Professional Code Refactor - Cleaning Python Code and Rewriting It to Use Classes
Keith Galli via YouTube
Overview
Syllabus
Video overview & code setup
Creating a Player Class
Creating subclasses for our Enemy & HumanPlayer
Creating a Color class
Creating a screen class or all our game visuals
Creating a game class for all our game logic
Information on Getters & Setters in Python
Bringing it all together in our main.py file!
Testing our code & Debugging issues
if _name_ == "__main__" information
Creating more difficult game levels using our new class structure!
Fixing the "cheat" where you can go off the screen
Loading in custom images as the enemy blocks
Taught by
Keith Galli