Educational project based on course prepared by Clear Code: Creating a Mario style platformer in python with Pygame
All the credit goes to @clear-code-projects: https://www.patreon.com/clearcode
Original author's repo:
https://github.com/clear-code-projects/2D-Mario-style-platformer
Some gameflow logic taken from: https://github.com/ChristianD37/YoutubeTutorials
- integration with pygbag (Webassambly) to run game in browser (also on mobile phones - tested on Android, currently not working on iOS)
- additional control handling (touchscreen and gamepad)
- debug features (config and GUI - still in progress)
- regening health when collecting hearts
- level 4 prepared by my sons (Tymon & Mateusz)
- screen resolution detection and fullscreen mode
Action | Keyboard | Gamepad |
---|---|---|
move left | left arrow | L joystick left |
move right | right arrow | L joystick right |
jump/select | space | A |
back/quit | q, Esc | B |
debug view | ~ | X |
Gamepad functionality tested using Xbox One Wireless pad. On Mac there was problem of detecting gamepad, but after installing this tool it all worked as on Windows: https://generalarcade.com/gamepadtool/
debug view requires GOD_MODE flag in settings.py to be set to True
Browser OS | Windows | Linux | Mac | Android | iOS |
---|---|---|---|---|---|
Chrome | ✅ works | ❓ not tested | ✅ works | ✅ works | ❌ hangs |
Safari | ❓ not tested | ❓ not tested | ❌ hangs | ❓ not tested | ❌ hangs |