Changeset 325:52b5a822be26


Ignore:
Timestamp:
09/06/13 00:11:58 (8 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Rebase:
31323233626631386366376137653031643365653830393930383637353261313362353934643635
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.