diff options
Diffstat (limited to 'vfg/src/music.h')
| -rwxr-xr-x | vfg/src/music.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/vfg/src/music.h b/vfg/src/music.h index c4a26ca..8792d6a 100755 --- a/vfg/src/music.h +++ b/vfg/src/music.h @@ -131,10 +131,8 @@ class lyricscore: public score { //draws lyrics to screen for a certain time
public: lyricscore() { - font.loadFont("VodafoneRg_Bd.ttf", 31*(ofGetHeight()/1080.0f), true, true); //hard coded scaling - font.setLineHeight(34.0f); - font.setLetterSpacing(1.035); - fadeout=500; //ms + fadeout=500; //ms + loadFont(); }
void load(string filename) {
if( !XML.loadFile(filename) ){
@@ -151,6 +149,11 @@ class lyricscore: public score { }
} + void loadFont() { + font.loadFont("VodafoneRg_Bd.ttf", 31*(ofGetHeight()/1080.0f), true, true); //hard coded scaling + font.setLineHeight(34.0f); + font.setLetterSpacing(1.035); + } void draw(float hOffs);
private:
map<int,lyric*> lyrics; @@ -213,7 +216,8 @@ class song { bool isGameover(); void gameOver();
bool isFinished();
- bool gameover;
+ bool gameover; + void resize();
musicscore notes;
private:
|
