From 58f154e844aed7ba06df3ac570521930de66b744 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 14 Jun 2012 02:04:16 +0100 Subject: mostly good --- gaunt01/src/bird.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'gaunt01/src/bird.cpp') 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& 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& 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); + } } -- cgit v1.2.3