summaryrefslogtreecommitdiff
path: root/vfg/src/testApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vfg/src/testApp.cpp')
-rwxr-xr-xvfg/src/testApp.cpp19
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;
}
}