Ignore:
Timestamp:
09/01/13 13:18:11 (8 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Phase:
public
Message:

Hook up area.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/menu.py

    r19 r20  
    44
    55from nagslang.screens.base import Screen
    6 from nagslang.events import QuitEvent
     6from nagslang.events import QuitEvent, ScreenChange
    77
    88
     
    1010
    1111    def handle_event(self, ev):
    12         if (ev.type == pygame.locals.KEYDOWN
    13                 and ev.key == pygame.locals.K_ESCAPE):
    14             QuitEvent.post()
     12        if ev.type == pygame.locals.KEYDOWN:
     13            if ev.key == pygame.locals.K_ESCAPE:
     14                QuitEvent.post()
     15            elif ev.key == pygame.locals.K_1:
     16                ScreenChange.post('level1')
    1517
    1618    def render(self, surface):
Note: See TracChangeset for help on using the changeset viewer.