summaryrefslogtreecommitdiff
path: root/ofAsterisk/src/testApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ofAsterisk/src/testApp.cpp')
-rwxr-xr-xofAsterisk/src/testApp.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/ofAsterisk/src/testApp.cpp b/ofAsterisk/src/testApp.cpp
index a69a084..1a172ee 100755
--- a/ofAsterisk/src/testApp.cpp
+++ b/ofAsterisk/src/testApp.cpp
@@ -2,17 +2,23 @@
//--------------------------------------------------------------
void testApp::setup(){
-
+ queuecheck=0;
}
//--------------------------------------------------------------
void testApp::update(){
int ret=game.update();
+ if (ofGetElapsedTimeMillis()-queuecheck>5000) {
+ game.requestStatus();
+ queuecheck=ofGetElapsedTimeMillis();
+ }
}
//--------------------------------------------------------------
void testApp::draw(){
-
+ ofClear(0,0,0);
+ ofSetColor(255,255,255);
+ ofDrawBitmapString(ofToString(game.queued), ofGetWidth()/2,ofGetHeight()/2);
}
//--------------------------------------------------------------