Mercurial > nagslang
view nagslang/screens/base.py @ 18:9ecb1d222ee0
Screens.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Sun, 01 Sep 2013 14:48:21 +0200 |
parents | nagslang/area.py@1cd05cfec375 |
children | 347667c941de |
line wrap: on
line source
"""A screen or area in which action happens.""" from pygame import event import pymunk class Screen(object): def __init__(self): self.space = pymunk.Space() def post_event(self, ev): event.post(ev) def handle_event(self, ev): pass def render(self, surface): pass def tick(self, step): """Step the given amount of time.""" self.space.step(step)