Source code for my Playdate "Broughlike" game. Features strategic turn-based grid movement and battles. Play as 6 different classes against a host of different enemies in increasing levels of difficulty. Adapted to Lua and the Playdate from this JavaScript Broughlike Tutorial. You can find the game on Itch IO.




defender.lua
- Player defender class definitionenemy.lua
- Generic enemy base classentity.lua
- Generic grid based entity class (enemies and player)gameManager.lua
- Level management (generates map, handles game step, checks win condition)ghost.lua
- Ghost enemy step definitionhealthDisplay.lua
- Draws enemy health UIheartDisplay.lua
- Draws player heartsknight.lua
- Player knight class definitionmain.lua
- Handles scene initialization and transitionsmap.lua
- Generates and draws map gridmenu.lua
- Main menu and character select UIorc.lua
- Orc enemy step definitionplayer.lua
- Player character controllerpriest.lua
- Player priest class definitionranger.lua
- Player ranger class definitionrogue.lua
- Player rogue class definitionskeleton.lua
- Skeleton enemy step definitionspider.lua
- Spider enemy step definitionwizard.lua
- Player wizard class definition
All code is licensed under the terms of the MIT license.