Skip to content

lennon-c/MultiInvaders

Repository files navigation

python

Multi-invaders

A game for practicing multiplication tables (Screenshots)

Screenshots


Game program

If you are using Windows, you can download the game without the need of installing python in your computer.

You can download the zip file with the game from dropbox here or from the lastest realease in GitHub here and then follow the Installation instructions.

Installation instructions.


Running the game using python

requirements

Make sure that you have installed the required packages listed in requirements.txt

If you use pipenv to manage your virtual environments, you can install requirements using the following Pipfile

Note

Main packages:

For running the game:

  • pygame
  • lorem-text (to create random text for testing text sizes)
  • babel (to make time stamps readable for humans)

For packaging game into executable:

  • pyinstaller (it creates the game exe file)
  • pywin32 and winshell (for creating shortcuts)

Instructions

  1. Clone or download the code into your computer.

  2. To start the game, run the Main.py script.

    a. If you are running the script from you python editor, set the folder where the Main.py file is located as your working directory


References

Code

I created this game after reading the book of Irv Kalb on Object-Oriented programming.1 Some parts of the code in this game are very much influenced by the code of Irv Kalb, particularly the code relating to Scenes' creation and management (you can find the original code at pyghelpers) and the code for the construction of text buttons (the original code can be found in pygwidgets)

Assets

Footnotes

  1. Kalb, I. (2022). Object-Oriented Python: Master OOP by Building Games and GUIs. United States: No Starch Press.