diff world.py @ 157:79d6b17b80a3

Implemented simple script system.
author KarstenBock@gmx.net
date Sat, 12 Nov 2011 16:27:39 +0100
parents aed2e094e0c7
children 75c0b728ccf3
line wrap: on
line diff
--- a/world.py	Sat Nov 05 16:08:16 2011 +0100
+++ b/world.py	Sat Nov 12 16:27:39 2011 +0100
@@ -3,6 +3,7 @@
 
 from parpg.mode import FifeMode
 from parpg import components
+from parpg.systems import ScriptingSystem
 
 class World(FifeMode, BaseWorld):
 
@@ -14,6 +15,7 @@
         """Configure the game world's components, systems and renderers"""
         for name, component in components.components.iteritems():
             setattr(self.components, name, component)
+        self.systems.scripting = ScriptingSystem({})
     
     def pump(self, dt):
         for component in self.components: