summaryrefslogtreecommitdiff
path: root/gaunt01/src/testApp.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-03-31 22:17:55 +0100
committerTim Redfern <tim@eclectronics.org>2012-03-31 22:17:55 +0100
commit81508e0a24b9981f08afe3752093ed626a2c51d9 (patch)
tree56004bbe953adcda555149aaa255c6b3b4cbd111 /gaunt01/src/testApp.cpp
parent0e8f0361c1068eb4c2f634dfcf4e1762d87f40d2 (diff)
nearly working trap door
Diffstat (limited to 'gaunt01/src/testApp.cpp')
-rw-r--r--gaunt01/src/testApp.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gaunt01/src/testApp.cpp b/gaunt01/src/testApp.cpp
index 1ab413b..3b81cdd 100644
--- a/gaunt01/src/testApp.cpp
+++ b/gaunt01/src/testApp.cpp
@@ -39,7 +39,9 @@ void testApp::setup(){
cam.lookAt(ofVec3f(ofGetWidth()/2,ofGetHeight()/2,0),ofVec3f(0, -1, 0));
cam.setFov(42.0); //39.85); //53.13);
- trapDoor=trapdoor(ofRectangle(0,0,ofGetWidth(),ofGetHeight()),ofVec2f(20,20));
+ trapDoor=trapdoor(ofRectangle(0,ofGetHeight()/4,ofGetHeight(),ofGetHeight()),ofVec2f(20,20));
+
+
}
@@ -114,6 +116,7 @@ void testApp::draw(){
ofPushMatrix();
ofRotate(cam_angle,1,0,0);
+ //cam.Rotate(cam_angle,1,0,0);
for (float i=0;i<=ofGetWidth();i+=ofGetWidth()/10) {
glBegin(GL_LINES);
@@ -175,7 +178,6 @@ void testApp::draw(){
ofBox(0,-10,0,20);
//for now, draw in this axis
ofPopMatrix();
-
}
trapDoor.checkUpdate(players);