Mercurial > projects > chipmunkd
view trunk/tests/ChipmunkDemos/main.d @ 16:af2f61a96318
ported chipmunk demos
author | Extrawurst |
---|---|
date | Sat, 04 Dec 2010 02:02:29 +0100 |
parents | |
children | ed2c81f3d1df |
line wrap: on
line source
/++ + 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; }