Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pirate

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

Play on-line:

Pirate on itch.io!

My additions are:

  • 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

Control mapping

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

Compatibility

Browser OS Windows Linux Mac Android iOS
Chrome ✅ works ❓ not tested ✅ works ✅ works ❌ hangs
Safari ❓ not tested ❓ not tested ❌ hangs ❓ not tested ❌ hangs

About

Platformer build using pygame and WebAssemly (WASM)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages