Mercurial > parpg-source
diff world.py @ 5:bc88f7d5ca8b
Added base files for grease
author | KarstenBock@gmx.net |
---|---|
date | Tue, 12 Jul 2011 10:16:48 +0200 |
parents | |
children | 708a6f651c31 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/world.py Tue Jul 12 10:16:48 2011 +0200 @@ -0,0 +1,12 @@ +from grease.world import * +from mode import FifeMode + +class World(FifeModeMode, BaseWorld): + + def pump(self, dt): + for component in self.components: + if hasattr(component, "step"): + component.step(dt) + for system in self.systems: + if hasattr(system, "step"): + system.step(dt)