summary refs log tree commit diff
path: root/src/Main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Main.cpp')
-rw-r--r--src/Main.cpp64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/Main.cpp b/src/Main.cpp
new file mode 100644
index 0000000..2c8f381
--- /dev/null
+++ b/src/Main.cpp
@@ -0,0 +1,64 @@
+/********************> Headers <*****/
+
+#include "Game.h"
+
+
+
+/********************> Globals <*****/
+
+
+
+Game game;
+
+
+
+/********************> main() <*****/
+
+int 	main( int argc, char *argv[] )
+
+	{
+
+	
+#ifdef OS9 
+	ToolboxInit();
+
+	
+
+	if ( HasAppearance() )
+
+		RegisterAppearanceClient();
+#endif
+	
+
+
+
+	game.InitGL();
+
+	
+
+	game.InitGame();
+
+	
+
+	game.EventLoop();
+
+	
+
+	game.Dispose();
+
+	
+#ifdef OS9 
+	if ( HasAppearance() )
+
+		UnregisterAppearanceClient();
+
+	
+
+	FlushEvents( everyEvent, 0 );
+
+	ExitToShell();
+#endif
+	
+
+}
+