Revision: 316
Author: timwintle
Date: Sun Nov 15 09:28:40 2009
Log: Adding .exit method
http://code.google.com/p/game-baker/source/detail?r=316
Modified:
/trunk/trunk/CHANGELOG
/trunk/trunk/QUICK_DOCS
/trunk/trunk/runtime/script_objects.py
=======================================
--- /trunk/trunk/CHANGELOG Sat Mar 7 08:49:58 2009
+++ /trunk/trunk/CHANGELOG Sun Nov 15 09:28:40 2009
@@ -1,3 +1,5 @@
+Nov 15 Added .exit() method to scriptgame (TimWintle)
+ Merged Kreezii's Pygame sound work (TimWintle/Kreezii)
Mar 7 Added Syntax Highlighting (TimWintle)
Minor code clean ups (TimWintle)
Allow setting of name on gameobjects (TimWintle)
=======================================
--- /trunk/trunk/QUICK_DOCS Tue Sep 16 13:56:58 2008
+++ /trunk/trunk/QUICK_DOCS Sun Nov 15 09:28:40 2009
@@ -3,6 +3,15 @@
It will be added to the formal documentation in due course.
+#============================
+Nov 15:
+ PROPERTY: game.gamesounds (returns list)
+ use: access to the gamesounds
+
+ METHOD: exit()
+ class: scriptgame
+ use: for exiting a game
+
#============================
July 15:
PROPERTY:
self.name
=======================================
--- /trunk/trunk/runtime/script_objects.py Sun Nov 15 04:33:36 2009
+++ /trunk/trunk/runtime/script_objects.py Sun Nov 15 09:28:40 2009
@@ -52,6 +52,9 @@
pkl_file.close()
return savedgame
+
+ def exit(self):
+ raise exit_game("Quit from method .exit() of game")
class script_gameobject_dict(scriptobject):
"""Simple sequence object for game objects