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/area.py

    r18 r20  
    11"""Display a game area."""
    22
     3import pygame
     4
    35from nagslang.screens.base import Screen
     6from nagslang.events import ScreenChange
    47
    58
    69class AreaScreen(Screen):
    710    def handle_event(self, ev):
    8         pass
     11        if ev.type == pygame.locals.KEYDOWN:
     12            if ev.key == pygame.locals.K_ESCAPE:
     13                ScreenChange.post('menu')
    914
    1015    def render(self, surface):
    11         pass
     16        surface.fill(pygame.color.Color(0, 0, 0))
Note: See TracChangeset for help on using the changeset viewer.