Skip to content

HubertReX/rpg-dd-game-template

 
 

Repository files navigation

RPG D&D game template

Disclaimer

Main code base is taken from Adrian (Ork Slayer Gamedev):

GitHub Repo

check out his great YT tutorials!

Play online - no installation needed 🚀

Features

  • transparent sprites (player)
  • automatic/procedural map generation (simple patch system with some randomization)
  • several enemies with different weapons (no sprites yet)
  • map scrolling
  • fog of war
  • simple collision detection (only grassland is walkable)
  • runs in desktop and in web browser as well (thanks to pygbag lib)

TODO

  • enemy sprites
  • touchscreen controls
  • custom pygbag template
  • fix fullscreen mode Web browser ([f] key)

Installation

# create venv
python -m venv .venv
# activate venv
source .venv/bin/activate # on Linux/MacOS
# or
.venv\Scripts\activate # on Windows
# install packages
pip install -r requirements.txt

Running

Desktop mode:

cd game
python main.py

Browser mode:

# from top level project folder
pygbag game

open http://localhost:8000/ in browser

use http://localhost:8000#debug to show terminal in browser - useful for troubleshooting

Deploying

full instruction here

pygbag --archive game

upload build/web.zip to itch.io


To GitHub pages

full instruction here

About

RPG D&D game template built using pygame-ce and pygbag

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%