Pirate
Educational project based on course prepared by Clear Code:
Creating a Mario style platformer in python with Pygame
All the credit goes to ClearCode:
https://www.patreon.com/clearcode
Original author's repo:
https://github.com/clear-code-projects/2D-Mario-style-platformer
Note:
it's working both on pc/laptop and Android phones in Chrome. On iOS unfortunately the game hangs on start :-(
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 - download source code and run locally.
My additions are:
- integration with pygbag (Webassambly) to run game in browser (also on mobile phones - tested on Android, hangs on iOS)
- additional control handling (touchscreen and gamepad)
- debug features (config and GUI - still in progress)
- regening health when collecting hearts
- level 4 was prepared by my sons (Tymon & Mateusz)
My repo:
Status | Prototype |
Platforms | HTML5 |
Author | Hubert Nafalski |
Genre | Platformer |
Made with | pygame, Tiled |
Tags | pygame, pygame-wasm, python, wasm, webassembly |
Development log
- first version working on Android phonesSep 09, 2022
Leave a comment
Log in with itch.io to leave a comment.