summaryrefslogtreecommitdiff
path: root/gaunt01/src/bird.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gaunt01/src/bird.cpp')
-rw-r--r--gaunt01/src/bird.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/gaunt01/src/bird.cpp b/gaunt01/src/bird.cpp
index da246d1..2c4d5f2 100644
--- a/gaunt01/src/bird.cpp
+++ b/gaunt01/src/bird.cpp
@@ -178,7 +178,7 @@ void bird::update(map<int,player>& players, float angle){
if (position.z<-ofGetHeight()/40) {
if (diveRate<2.0f) {
//increase dive rate
- diveRate+=0.2f;
+ diveRate+=0.1f;
}
}
else {
@@ -212,6 +212,7 @@ void bird::update(map<int,player>& players, float angle){
//do the documentation
//go back to the bird - watch out for dead players (from trap doors) - bird is going out of play - just retrieve it for now?
//flap faster while climbing + swoop
+ //bird noises
heading=heading+(turnRate*timeSeg);
while (heading>180) heading=heading-360;
@@ -255,10 +256,12 @@ void bird::drawDebug(){
ofSphere(edgepoint,2.0f);
*/
- ofSetHexColor(0xff00ff);
- char numStr[64];
- sprintf(numStr, "dive: %4.2f\nheight: %4.2f", diveRate,position.z);
- ofDrawBitmapString(numStr,10,10);
+ if (DEBUG) {
+ ofSetHexColor(0xff00ff);
+ char numStr[64];
+ sprintf(numStr, "dive: %4.2f\nheight: %4.2f", diveRate,position.z);
+ ofDrawBitmapString(numStr,10,10);
+ }
}