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 :-( 

ActionKeyboardGamepad
move left left arrow L joystick left
move rightright arrowL joystick right
jump/selectspaceA
back/quitq, EscB
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:

https://github.com/HubertReX/Pirate

Development log

Leave a comment

Log in with itch.io to leave a comment.