Contents:¶
- pyrogue
- pyrogue package
- Submodules
- pyrogue.animals module
- pyrogue.astar module
- pyrogue.creature_families module
- pyrogue.creatures module
- pyrogue.dungeon_features module
- pyrogue.dungeon_gen module
- pyrogue.dungeons module
- pyrogue.fov module
- pyrogue.humanoids module
- pyrogue.imps module
- pyrogue.io_curses module
- pyrogue.kobolds module
- pyrogue.magic module
- pyrogue.player module
- pyrogue.pyro module
- pyrogue.pyro_items module
- pyrogue.rodents module
- pyrogue.strings module
- pyrogue.util module
- Module contents
- pyrogue package
Overview¶
This is the pyrogue python-based roguelike game. It is an excellent starting place for learing to code roguelikes.
Quick Grok¶
Pyrohas aGameGamehas aPlayerCharacterDungeonLevel
- Creatures:
- Inherit off
Creature - Have an
AIto guide them - Are placed in game by
AddCreature - Have an
Iventory - Use Astar to calculate paths:
path
- Inherit off
- Player Character:
- Drives game play in method
Update
- Drives game play in method
- Dungeon Level:
Level - Has a map stored in
layout - Stores data with (x,y) keys
- Has list of items
items - Has list of creatures
creatures - Has list of creatures
mobs
- Has list of items
- Calculates field of view with
FOVMap - Dungeon maps generated in
Level
- Has a map stored in
- Dungeon Level:
Level Drawing¶
- Player Update method calls drawing method
Update - Calls self.current_level.Display
Display