From eaaa8f65e00d6c094206b55c06425715d80aa014 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Thu, 19 Apr 2012 19:45:40 +0100 Subject: saving boundary --- gaunt01/bin/data/TextureTrapdoor.jpg | Bin 104698 -> 37779 bytes gaunt01/bin/data/settings.xml | 16 ++++++++++++++++ gaunt01/bin/data/trapdoor-surround.xml | Bin 3150 -> 3160 bytes gaunt01/src/testApp.cpp | 27 ++++++++++++++++++++++++++- gaunt01/src/testApp.h | 2 ++ 5 files changed, 44 insertions(+), 1 deletion(-) (limited to 'gaunt01') diff --git a/gaunt01/bin/data/TextureTrapdoor.jpg b/gaunt01/bin/data/TextureTrapdoor.jpg index d3447ba..0408846 100644 Binary files a/gaunt01/bin/data/TextureTrapdoor.jpg and b/gaunt01/bin/data/TextureTrapdoor.jpg differ diff --git a/gaunt01/bin/data/settings.xml b/gaunt01/bin/data/settings.xml index ff6dfa0..f482957 100644 --- a/gaunt01/bin/data/settings.xml +++ b/gaunt01/bin/data/settings.xml @@ -1,2 +1,18 @@ + + + + + + + + + + + + + + + + diff --git a/gaunt01/bin/data/trapdoor-surround.xml b/gaunt01/bin/data/trapdoor-surround.xml index a13fcb3..880b7b7 100755 Binary files a/gaunt01/bin/data/trapdoor-surround.xml and b/gaunt01/bin/data/trapdoor-surround.xml differ diff --git a/gaunt01/src/testApp.cpp b/gaunt01/src/testApp.cpp index 01afe95..8a8f65d 100644 --- a/gaunt01/src/testApp.cpp +++ b/gaunt01/src/testApp.cpp @@ -104,6 +104,9 @@ void testApp::setup(){ segTimes[GOTCHA]=2.0; gameStart=ofGetElapsedTimef(); + + sounds=new ofSoundPlayer[1]; + sounds[0].loadSound("arp5.mp3"); //game start } ofVec2f testApp::screen2plane(ofVec2f screenpos){ @@ -247,6 +250,7 @@ void testApp::update(){ if (firstframe) { accumImg=grayImage; firstframe=false; + sounds[0].play(); } else { accumImg.addWeighted( grayImage, 1.0/bgnum ); @@ -360,7 +364,7 @@ void testApp::draw(){ ofPopMatrix(); glDisable(GL_DEPTH_TEST); - ofSetHexColor(0xffffff); +https://twitter.com/# ofSetHexColor(0xffffff); bindTexture(colorImg); //colorImg.getTextureReference().bind(); map::iterator it; for(int i=0;isegTimes[gameState]) { gameState=TITLES; + sounds[0].play(); gameStart=ofGetElapsedTimef(); gameTime=0.0f; } @@ -657,6 +662,10 @@ void testApp::keyPressed(int key){ } else drawingborder=false; break; + case '>': + gameState=(gameState+1)%4; + gameStart=ofGetElapsedTimef(); + break; } } @@ -716,6 +725,12 @@ void testApp::loadSettings(string filename){ }else{ cam_angle=ofToInt(XML.getAttribute("gauntlet","cam_angle","none",0)); threshold=ofToInt(XML.getAttribute("gauntlet","threshold","none",0)); + if(XML.pushTag("bounds")) { + for (int i=0;i border; bool drawingborder; + ofSoundPlayer* sounds; + ofImage* billboards; ofVec2f scaleFactor; -- cgit v1.2.3