From 63a6974eac15fb804adc5790163049223947fac7 Mon Sep 17 00:00:00 2001 From: "git@eclectronics.org" Date: Wed, 25 Jul 2012 08:44:42 +0100 Subject: tiny bug in trapdoor position --- gaunt01/src/main.cpp | 2 +- gaunt01/src/testApp.cpp | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'gaunt01/src') diff --git a/gaunt01/src/main.cpp b/gaunt01/src/main.cpp index d8ec5c8..1f3ac12 100644 --- a/gaunt01/src/main.cpp +++ b/gaunt01/src/main.cpp @@ -6,7 +6,7 @@ int main( ){ ofAppGlutWindow window; - ofSetupOpenGL(&window, 1024,768, OF_WINDOW ); // <-------- setup the GL context + ofSetupOpenGL(&window, 1024,768, OF_FULLSCREEN ); // <-------- setup the GL context printf("%ix%i on screen %ix%i\n",ofGetWidth(),ofGetHeight(),ofGetScreenWidth(),ofGetScreenHeight()); // this kicks off the running of my app // can be OF_WINDOW or OF_FULLSCREEN diff --git a/gaunt01/src/testApp.cpp b/gaunt01/src/testApp.cpp index 8fe42cc..810ef0a 100644 --- a/gaunt01/src/testApp.cpp +++ b/gaunt01/src/testApp.cpp @@ -159,9 +159,10 @@ void testApp::setup(){ doorsounds[3].loadSound("voice falling down hole.wav"); cam.begin(); - cam.end(); - updatePlane(); + + + cam.end(); } @@ -801,7 +802,8 @@ void testApp::draw(){ if (gameTime>segTimes[gameState]) { gameState++; gameStart=ofGetElapsedTimef(); - gameTime=0.0f; + gameTime=0.0f; + updatePlane(); } break; case PLAYING: -- cgit v1.2.3