diff options
Diffstat (limited to 'futuregael/src')
| -rw-r--r-- | futuregael/src/main.cpp | 2 | ||||
| -rw-r--r-- | futuregael/src/show.h | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/futuregael/src/main.cpp b/futuregael/src/main.cpp index 79ed500..02bf31b 100644 --- a/futuregael/src/main.cpp +++ b/futuregael/src/main.cpp @@ -8,7 +8,7 @@ int main(int argc, char *argv[]){ ofGLFWWindowSettings settings; - settings.setSize(512,512); // 1/8 scale + settings.setSize(1024,1024); // 1/8 scale //1200 = 13.2° = 42898 pts theoretical diff --git a/futuregael/src/show.h b/futuregael/src/show.h index e3aeebe..c5a7605 100644 --- a/futuregael/src/show.h +++ b/futuregael/src/show.h @@ -92,10 +92,11 @@ public: if (word2amt>1.0f) word2amt=1.0f; outlines.clear(); - float p=-ofGetWidth()/2; float s=0.1f; + float p=(-(ofGetWidth()/3))/s; + if (word1>-1&&word1<words.size()){ for (auto& g:words[word1].glyphs){ for (auto& o:g.outline){ @@ -178,7 +179,13 @@ public: } void play(){ - if (playline==script.end()) return; + if (playline==script.end()){ + if (script.size()){ + playline=script.begin(); + ofLog()<<"Restarted!"; + } + else return; + } if (playline->audio.isLoaded()){ playline->audio.play(); |
