Introduction

This is a template for a game using Pygame-ce that can run in both desktop and browser.

This project is based on Matt Owen's tutorial:

Pygame ARPG Tutorial Series

Ninja sprite is from the same author:

Monochrome ninja

Cursor by:

Precision icons created by redempticon - Flaticon

Features

  • runs in web (itch.io and GitHub Pages) thanks to pygbag
  • implemented fine state machin
  • usage of menus pygame-menu (patched - gfxdraw not working in WEB)
  • partial mouse support (in menus)
  • Tiled map loading pytmx
  • Map reloading, scrolling and zooming pyscroll
  • map with layers (occlusion and collision)
  • custom mouse cursor
  • animated sprites
  • separation keys from actions
  • scene transitions
  • automatic screenshots

Ideas for future

  • list key bindings ✅
  • add enemies
  • add fog of war and/or line of sight
  • add particles system
  • screenshot of menu not working (showing only part of menu) ✅
  • some key events are lost (action is repeated even key is not pressed in menus) ✅
  • continuing game after exiting menu causes loosing player's position on small map (works on grassland though)
  • should new map be a new game state?

Source code

GitHub

Leave a comment

Log in with itch.io to leave a comment.