all repos — Legends-RPG @ 2c314e7847aa5f1f79ad0afd212de8e75048534d

A fantasy mini-RPG built with Python and Pygame.

data/states/town.py (view raw)

 1__author__ = 'justinarmstrong'
 2
 3from .. import setup, tools
 4from .. import constants as c
 5
 6class Town(tools._State):
 7    def __init__(self):
 8        super(Town, self).__init__()
 9
10    def startup(self, current_time, persist):
11        """Called when the State object is created"""
12        self.persist = persist
13        self.current_time = current_time
14
15    def update(self, surface, keys, current_time):
16        """Updates state"""
17        self.keys = keys
18        self.current_time = current_time