view trunk/tests/ChipmunkDemos/main.d @ 22:ed2c81f3d1df

cleanup
author Extrawurst
date Thu, 09 Dec 2010 22:25:04 +0100
parents af2f61a96318
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;
}