From 7e99d4291172f4dadb59b81cf525817dd8a210e5 Mon Sep 17 00:00:00 2001 From: Comment Date: Tue, 4 Dec 2012 14:53:44 +0000 Subject: dress rehearsal version --- ofAsterisk/src/testApp.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'ofAsterisk/src/testApp.cpp') 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); } //-------------------------------------------------------------- -- cgit v1.2.3