summaryrefslogtreecommitdiff
path: root/06_performance/src/testApp.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@herge.(none)>2013-06-26 11:36:06 +0100
committerTim Redfern <tim@herge.(none)>2013-06-26 11:36:06 +0100
commit6e447e02cd9a2680bea5bd2dfe1c77fe5ae8efc2 (patch)
treef8e00e6438b1ad71fae523bc49a6185f5e459d38 /06_performance/src/testApp.cpp
parentb6afccb0854ffc5656b2d328ac5639b0db5a0c78 (diff)
poper fadeout
Diffstat (limited to '06_performance/src/testApp.cpp')
-rw-r--r--06_performance/src/testApp.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/06_performance/src/testApp.cpp b/06_performance/src/testApp.cpp
index db45680..4cc47a3 100644
--- a/06_performance/src/testApp.cpp
+++ b/06_performance/src/testApp.cpp
@@ -562,6 +562,8 @@ void testApp::draw(){
msg+="\n"+ofToString(F_yseg, 4);
msg+="\n"+ofToString(narrator.getNumParticles())+" size "+ofToString(F_lineWidth);
msg+="\n"+ofToString(xModel)+","+ofToString(yModel)+","+ofToString(zModel)+" * "+ofToString(sModel);
+ syncOniPlayer *player=narrator.getCurrentPlayer();
+ if (player) msg+="\n"+ofToString(player->getCurrentFrame())+","+ofToString(player->getPosition(),2);
ofDrawBitmapString(msg,20,20);
}
}
@@ -612,12 +614,18 @@ void testApp::keyPressed (int key){
if(key == 'c'){
zModel-=25;
}
- if(key == 'y'){
+ if(key == 'w'){
sModel*=1.02;
}
- if(key == 'h'){
+ if(key == 's'){
sModel/=1.02;
}
+ if(key == 'q'){
+ I_fade1=min(I_fade1+1,255);
+ }
+ if(key == 'a'){
+ I_fade1=max(I_fade1-1,0);
+ }
if(key == 'h'){
F_particleX-=1;
}