diff options
author | Chris Xiong <chirs241097@gmail.com> | 2015-10-11 22:04:05 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2015-10-11 22:04:05 +0800 |
commit | 627d814f487ac38d4f9b9b71da9bef46f33b3dad (patch) | |
tree | 8fe9ffba654b40ede31575874793b735df0fdf2e /src/core/gamescene.cpp | |
parent | f54345e4fc889471513cba99151a5e6a2dcef2d8 (diff) | |
download | bullet-lab-remix-627d814f487ac38d4f9b9b71da9bef46f33b3dad.tar.xz |
Implement the collision system and a simple effect.
Fixed a problem that keeps the screen black on start up.
Replace the build script in dtputil with makefile.
Sync with the newest SMELT revision.
Diffstat (limited to 'src/core/gamescene.cpp')
-rw-r--r-- | src/core/gamescene.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/gamescene.cpp b/src/core/gamescene.cpp index 32fea88..99f61c3 100644 --- a/src/core/gamescene.cpp +++ b/src/core/gamescene.cpp @@ -60,6 +60,10 @@ bool gameScene::sceneRender() udly+=sm->smGetDelta(); extern sceneManager *sceneMgr;float lps=sceneMgr->getLPS(); if(udly>1){udly=0;utime=sceneMgr->getTHUpdateTime();} + ttfont.updateString(L"Coll: %d\n",player->coll); + ttfont.render(0,50,0xFFFFFFFF,ALIGN_LEFT); + ttfont.updateString(L"SColl: %d\n",player->scoll); + ttfont.render(0,65,0xFFFFFFFF,ALIGN_LEFT); ttfont.updateString(L"LPS: %.2f",lps); ttfont.render(0,680,0xFFFFFFFF,ALIGN_LEFT); ttfont.updateString(L"Update Time: %dns",utime); |