This is inspired by Meth-Meth-Method's super mario game
- $ pip install -r requirements.txt
- $ python main.py
- $ pip install py2exe
- $ python compile.py py2exe
- Left: Move left
- Right: Move right
- Space: Jump
- Shift: Boost
- Left/Right Mouseclick: secret
- pygame
- scipy
If you have any Improvements/Ideas/Refactors feel free to contact me or make a Pull Request. The code needs still alot of refactoring as it is right now, so I appreciate any kind of Contribution.
- Provided the github repository https://github.com/arditsulceteaching/super-mario-python
- Fork this repository to my github account
- Clone the forked repository to my local IDE
- Do some changes
- Commit and push the changes to my repository
- Create Pull Request of the commit(s) to notify the other user to review and approve the changes
- For smaller teams just clone the repository and commit/push the changes directly to the repository.
- Install the list of requirements mentioned in the file requirements.txt
- via command line
pip install -r requirements.txt - An error thrown: error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [33 lines of output] ... 4. The dependencies are installed from the IDE successfully. Installed packages: 'pygame==2.1.2', 'scipy==1.9.3'
- compile.py convert the Python project into an executable
- main.py the entry point of the program
- requirements.txt contains the required libraries to be installed
- settings.json contains some general settings about the game, e.g. sound effect, music on/off
- folder: classes each class in a single file for readability a.s.o file name is the class name
- folder: entities similar as classes
- suggestions: a. classes and entities file names to be in lowercase b. the folders' names to be renamed in some more specific meaning
- folder: img it contains the images are stored
- folder: levels it contains the data in json files. Reflect to the level of the game
- folder: sfx it contains the sound/audio files are located
- folder: sprites it contains images with data, e.g. background tiles
- folder: traits it contains the features that a player gets, e.g. jump higher
- inspect the main.py
- the code is contained in the function main() when the file is executed directly
- To discover from where a method is called from the drop-down menu select: Find Usages and follow the chain of calls
- Also, after Find Usages click on the Call Hierarchy, and in reverse order
- In a file, class, choose the Structure tool to inspect it.
