diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-06-14 02:04:16 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-06-14 02:04:16 +0100 |
| commit | 58f154e844aed7ba06df3ac570521930de66b744 (patch) | |
| tree | 198901f4cba5ee5621d8fe27d4704825c54dd98f /gaunt01/src/bird.cpp | |
| parent | eecd5a7eb92f24a1e9d3a2e6853363f23ccfccb2 (diff) | |
mostly good
Diffstat (limited to 'gaunt01/src/bird.cpp')
| -rw-r--r-- | gaunt01/src/bird.cpp | 13 |
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); + } } |
