Python Games - BNU-CO453/ConsoleApps15 GitHub Wiki

Developing Games Using Python

Installing Python and PyGames

Installing Python and PyGame on Windows
Installing Python and PyGame on Mac OS

Once installed, I had no difficulty in starting my first Python game using Visual Studio Code with the Python for VS Code extension installed.

PyGame Tutorial Series

I have only just started this series, but the seem ok, in that they are relatively short, and the topics covered fit in well with the game requirements for App05. So if you want to learn Python have a go!

Tutorial 1: Basic Movement and KeyPress
Tutorial 2: Jumping and Boundaries
Tutorial 3: Character Animation & Sprites
Tutorial 4: Optimisation and OOPs
Tutorial 5: Projectiles
Tutorial 6: Enemies
Tutorial 7: Collision and Hit Boxes
Tutorial 8: Scoring & Health Bars
Tutorial 9: Sound Effects & Music
Tutorial 10: Finishing Touches & Next Steps

Python Best Practices

  1. Naming conventions in Python are very different to Java and C#.
  2. Most variables and methods are in lowercase with an underbar__used to separate multiple words in a name.
  3. Variables in the module are not available inside any added functions if they have not been declared as global
  4. Indentation is mandatory (in methods, loops and if statements for example)

Python Best Practices – Every Python Developer Must Know

The following website is full of tips on using Python in the best way

Python Best Practices Tips and Tricks