Mercurial > projects > chipmunkd
view trunk/tests/ChipmunkDemos/main.d @ 19:eb61cc181345
platform independant timing method
author | Extrawurst |
---|---|
date | Thu, 09 Dec 2010 22:20:19 +0100 |
parents | af2f61a96318 |
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; }