diff demos/rpg/scripts/gamecontroller.py @ 534:65a92a2449d5

Doing some re-factoring. Minor change to the way the console commands are parsed. Added the spawn command to the help file.
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 31 May 2010 17:45:04 +0000
parents 801746c5bb9a
children 9fbe3dce925a
line wrap: on
line diff
--- a/demos/rpg/scripts/gamecontroller.py	Sat May 29 17:52:07 2010 +0000
+++ b/demos/rpg/scripts/gamecontroller.py	Mon May 31 17:45:04 2010 +0000
@@ -207,7 +207,6 @@
 			if arg != "":
 				cmd.append(arg)
 		
-	
 		if cmd[0] == "spawn":
 			result = "Usage: spawn [item|actor] [id] [posx] [posy]"
 			if len(cmd) != 5:
@@ -222,7 +221,7 @@
 					return result
 				if obj:
 					self._scene.addObjectToScene(obj)
-					result = "Success!"
+					result = "--OK--"
 				else:
 					result = "Error: Not Found!"