view trunk/tests/ChipmunkDemos/main.d @ 31:4604c914f2ab default tip

removed workaround for dmd-bug #5249
author Extrawurst
date Thu, 30 Dec 2010 13:50:40 +0100
parents ed2c81f3d1df
children
line wrap: on
line source


// written in the D programming language

/++
 +	Authors: Stephan Dilly, www.extrawurst.org
 +/

module main;

import gameApp;

import std.stdio;

///
int main(string[] args) {

	try {

		scope auto game = new GameApp();
		game.boot();

		//game loop
		while(true)
		{
			if(!game.update())
				break;
		}

		game.shutdown();

		writefln("bye !");
	}
	catch(Object o) {

		//write out whatever exception is thrown
		debug writefln("[exception] E: \"%s\"",o);

		return -1;
	}

	return 0;
}