Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/Main.py
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2012-02-23 22:49:11 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2012-02-23 22:49:11 (GMT)
commit2ebb47e8a753ec4fe2f498d79606d3628de73c4c (patch)
tree8eeef1aade484dc3621147f9b40055621140c11c /src/Main.py
add all files
Diffstat (limited to 'src/Main.py')
-rwxr-xr-xsrc/Main.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Main.py b/src/Main.py
new file mode 100755
index 0000000..e0e82c3
--- /dev/null
+++ b/src/Main.py
@@ -0,0 +1,26 @@
+import CMenuState
+from CMenuState import *
+import CGame
+from CGame import *
+
+def main():
+
+ g = CGame()
+
+ ms = CMenuState()
+ g.setState(ms)
+
+ g.gameLoop()
+ g.destroy()
+
+ #Change state:
+ #ls = CLevelState();
+ #CGame.setState(ls);
+
+ #Singleton test.
+ #j = CGame(None)
+ #print g == j
+
+# Execute main() if this is the main program.
+if __name__ == "__main__":
+ main() \ No newline at end of file