diff options
| author | Comment <tim@gray.(none)> | 2012-12-04 14:53:44 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2012-12-04 14:53:44 +0000 |
| commit | 7e99d4291172f4dadb59b81cf525817dd8a210e5 (patch) | |
| tree | 75fb43c04330250a25f745228e59a30902d783d0 /ofAsterisk/src/testApp.cpp | |
| parent | f7bee21ada14851da8626a3784821ded25333fe6 (diff) | |
dress rehearsal version
Diffstat (limited to 'ofAsterisk/src/testApp.cpp')
| -rwxr-xr-x | ofAsterisk/src/testApp.cpp | 10 |
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); } //-------------------------------------------------------------- |
