GitHub - metantonio/game_python

A Basic Python Game

To play directly from the .exe file

Download the .exe file here

To play directly from the Python script

Install libraries:

pip install pygame==2.5.2

Enter to the code folder:

And execute:

Create a .exe file yourself

Install libraries:

pip install pyinstaller==6.8.0

Build a package of one file and hide cmd when executing from .exe:

pyinstaller ./code/main.py --onefile --noconsole

If present some problems, try with:

pyinstaller --onefile --log-level=DEBUG ./code/main.py

You should find the .exe file at dist folder

Controls

Movement

Use arrow keys

Physical attack

Use SPACE bar

Magic attack

Use left Control button

Change Physical Weapon

Use Q

Change Magic spell

Use E

Upgrade Stats Menu / Close Menu

Use M