diff demos/shooter/run.py @ 490:939a4dc12ca1

Starting to add some comments. Cleaned up some old commented out code. The SoundManager now creates a new SoundClip rather than only creating one per FIFE SoundEmitter.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 05 May 2010 21:39:31 +0000
parents 3164715a0621
children c4168eb47a44
line wrap: on
line diff
--- a/demos/shooter/run.py	Wed May 05 14:29:37 2010 +0000
+++ b/demos/shooter/run.py	Wed May 05 21:39:31 2010 +0000
@@ -55,7 +55,6 @@
 		keystr = evt.getKey().getAsString().lower()
 		consumed = False
 		if keyval == fife.Key.ESCAPE:
-			#self._quit = True
 			self._world.showMainMenu()
 			evt.consume()
 
@@ -68,6 +67,8 @@
 	def __init__(self):
 		super(Shooter,self).__init__()
 		pychan.init(self.engine, debug=False)
+		
+		#This is requred if you want to use modal dialog boxes
 		pychan.setupModalExecution(self.mainLoop,self.breakFromMainLoop)
 		
 		self._world = world.World(self, self.engine)
@@ -82,7 +83,9 @@
 	def loadSettings(self):
 		"""
 		Load the settings from a python file and load them into the engine.
-		Called in the ApplicationBase constructor.
+		Called in the ApplicationBase constructor.  I hard coded all the
+		settings in here to remove the complexity of loading settings from
+		an XML file which would be out of scope of this demo.
 		"""
 
 		engineSetting = self.engine.getSettings()
@@ -108,8 +111,7 @@
 		"""
 		Initialize the LogManager.
 		"""
-		#LogModules = list()
-		#LogModules.append("controller")
+
 		LogModules = ["controller",]
 		self._log = fifelog.LogManager(self.engine, 1, 0)
 		if LogModules: