Changeset 322:a4e93b1086b8


Ignore:
Timestamp:
Sep 6, 2013, 12:03:53 AM (7 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
rebase_source:
f6b69659d705b468a598928e5827f1c9b4be7f71
Message:

Load all levels.

Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/engine.py

    r285 r322  
    2323            'menu': MenuScreen,
    2424            'dead': PlayerDiedScreen,
    25             'level1': AreaScreen,
    26             'level2': AreaScreen,
    2725        }
     26        for area_name in AreaScreen.list_areas():
     27            self._screens[area_name] = AreaScreen
    2828        self._world.load()
    2929        self.change_screen('menu')
Note: See TracChangeset for help on using the changeset viewer.