Overview

This is the pyrogue python-based roguelike game. It is an excellent starting place for learing to code roguelikes.

Quick Grok

  • Pyro has a Game
  • Game has a
    • PlayerCharacter
    • Dungeon
    • Level
  • Creatures:
    • Inherit off Creature
    • Have an AI to guide them
    • Are placed in game by AddCreature
    • Have an Iventory
    • Use Astar to calculate paths: path
  • Player Character:
    • Drives game play in method Update
  • 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
    • Calculates field of view with FOVMap
    • Dungeon maps generated in Level

Level Drawing

  • Player Update method calls drawing method Update
  • Calls self.current_level.Display Display

Indices and tables