A simple roguelike game built with libtcod (tcod).
- Procedural dungeon generation
- Player movement with WASD or arrow keys
- Basic entity system
- Simple tile-based graphics
- Make sure you have Python 3.7+ installed
- Install the required dependencies:
pip install -r requirements.txt
Run the game with:
python main.py- WASD or Arrow Keys: Move around
- Numpad: Alternative movement controls
- ESC: Quit the game
main.py: Entry point and game loopengine.py: Core game engineentity.py: Entity classes for players and NPCsgame_map.py: Map generation and renderinginput_handlers.py: Keyboard input handlingactions.py: Game action system
- You are represented by a white
@symbol - Yellow
@symbols are NPCs #symbols are walls.symbols are floors- Move around and explore the procedurally generated dungeon!
This is a basic foundation that you can extend with:
- Combat system
- Items and inventory
- Multiple levels
- Monsters with AI
- Spells and abilities
- And much more!
- tcod: The libtcod library for Python, providing terminal-based graphics and utilities for roguelike games