all repos — Legends-RPG @ bca46b8c54d44e37d0ae536923d18721651ea045

A fantasy mini-RPG built with Python and Pygame.

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()