data/main.py (view raw)
1__author__ = 'justinarmstrong'
2
3from . import setup, tools
4from . states import town, main_menu
5from . import constants as c
6
7def main():
8 """Add states to control here"""
9 run_it = tools.Control(setup.ORIGINAL_CAPTION)
10 state_dict = {c.TOWN: town.Town(),
11 c.MAIN_MENU: main_menu.Menu()}
12
13 run_it.setup_states(state_dict, c.MAIN_MENU)
14 run_it.main()