all repos — Legends-RPG @ c240c83cdec2a395d5a8a6c9ca6680ec86115ef9

A fantasy mini-RPG built with Python and Pygame.

data/states/castle/castle.py (view raw)

 1"""This is the castle state.  Most of its functionality is inherited
 2from the level_state.py module.  Most of the level data is contained
 3in the tilemap .txt files in this state's directory.  Essentially the
 4only purpose of castle.py is to assign dialogue to each sprite.
 5"""
 6
 7from .. import level_state
 8from ... import constants as c
 9
10class Castle(level_state.LevelState):
11    def __init__(self, name):
12        super(Castle, self).__init__(name)
13        self.parent_level = c.TOWN
14
15    def set_sprite_dialogue(self):
16        """Sets unique dialogue for each sprite"""
17        return None