diff options
| author | Tim Redfern <tim@gray.(none)> | 2012-11-19 21:05:27 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@gray.(none)> | 2012-11-19 21:05:27 +0000 |
| commit | 891b71c261a4571e0e0ba0e824e1bdb2478e0c65 (patch) | |
| tree | 2005ff07fb391fcead17d3a0679cc3f82d0ff4cd /vfg/src/testApp.cpp | |
| parent | 1b56a18fc25f86591b410d32ceb19faea6fc74ea (diff) | |
flake animations
Diffstat (limited to 'vfg/src/testApp.cpp')
| -rwxr-xr-x | vfg/src/testApp.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/vfg/src/testApp.cpp b/vfg/src/testApp.cpp index 427ece9..ddc5cfe 100755 --- a/vfg/src/testApp.cpp +++ b/vfg/src/testApp.cpp @@ -28,6 +28,17 @@ void testApp::setup(){ penguins[2].setLoop(false); //printf(ofSystem("ls -la").c_str()); + + //testpenguin.load("Penguin-Blue.xml"); + //debug: commented out: 436m 257m + //508fr 1.7s load in use: 837m 444m + + //release: commented out: 436m 256m + //508fr 1.4s load in use: 836m 443m + + + showFPS=false; + } void testApp::exit(){ @@ -67,6 +78,8 @@ void testApp::draw(){ testsong->draw(); } else ofDrawBitmapString("game over!", (ofGetWidth()/2)-25,(ofGetHeight()/2)-5); + + if (showFPS) ofDrawBitmapString(ofToString(ofGetFrameRate()), 10,ofGetHeight()-20); } @@ -81,12 +94,15 @@ void testApp::keyPressed(int key){ case '1': case '2': case '3': - testsong->playerControl(key-'0'); + testsong->playerControl(key-'1'); penguins[key-'1'].play(); break; case 's': game.startGame(); break; + case 'f': + showFPS=!showFPS; + break; } } @@ -97,7 +113,6 @@ void testApp::keyReleased(int key){ case '1': case '2': case '3': - testsong->playerControl(0); break; } } |
