source: nagslang/screens/area.py@ 20:347667c941de

Last change on this file since 20:347667c941de was 20:347667c941de, checked in by Simon Cross <hodgestar@…>, 8 years ago

Hook up area.

File size: 403 bytes
Line 
1"""Display a game area."""
2
3import pygame
4
5from nagslang.screens.base import Screen
6from nagslang.events import ScreenChange
7
8
9class AreaScreen(Screen):
10 def handle_event(self, ev):
11 if ev.type == pygame.locals.KEYDOWN:
12 if ev.key == pygame.locals.K_ESCAPE:
13 ScreenChange.post('menu')
14
15 def render(self, surface):
16 surface.fill(pygame.color.Color(0, 0, 0))
Note: See TracBrowser for help on using the repository browser.