Professional Code Refactor - Cleaning Python Code and Rewriting It to Use Classes

Professional Code Refactor - Cleaning Python Code and Rewriting It to Use Classes

Keith Galli via YouTube Direct link

Video overview & code setup

1 of 13

1 of 13

Video overview & code setup

Class Central Classrooms beta

YouTube playlists curated by Class Central.

Classroom Contents

Professional Code Refactor - Cleaning Python Code and Rewriting It to Use Classes

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Video overview & code setup
  2. 2 Creating a Player Class
  3. 3 Creating subclasses for our Enemy & HumanPlayer
  4. 4 Creating a Color class
  5. 5 Creating a screen class or all our game visuals
  6. 6 Creating a game class for all our game logic
  7. 7 Information on Getters & Setters in Python
  8. 8 Bringing it all together in our main.py file!
  9. 9 Testing our code & Debugging issues
  10. 10 if _name_ == "__main__" information
  11. 11 Creating more difficult game levels using our new class structure!
  12. 12 Fixing the "cheat" where you can go off the screen
  13. 13 Loading in custom images as the enemy blocks

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.