Skip to content

metantonio/game_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

cd ./code

And execute:

python main.py

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages