Changeset 325:52b5a822be26 for nagslang


Ignore:
Timestamp:
Sep 6, 2013, 12:11:58 AM (7 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
rebase_source:
1223bf18cf7a7e01d3ee8099086752a13b594d65
Message:

Load first level on play start.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/menu.py

    r276 r325  
    55from nagslang.screens.base import Screen
    66from nagslang.events import QuitEvent, ScreenChange
     7from nagslang.level import Level
    78from nagslang.widgets.text import TextWidget, MultiLineWidget
    89
     
    4748
    4849    def play(self):
    49         ScreenChange.post('level1')
     50        first_level = Level.list_levels()[0]
     51        ScreenChange.post(first_level)
    5052
    5153    def restart(self):
Note: See TracChangeset for help on using the changeset viewer.