summaryrefslogtreecommitdiff
path: root/vfg/src/music.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2012-12-14 12:53:44 +0000
committerComment <tim@gray.(none)>2012-12-14 12:53:44 +0000
commit066b911b19d93191fd5a89b8cd14c51aa18e2fd9 (patch)
tree00ef1860b1e51bdca774444a3e959b66dca43809 /vfg/src/music.h
parent19c84c74efd5b8ffd1fb8184037910c831990d2e (diff)
ready for Dublin
Diffstat (limited to 'vfg/src/music.h')
-rwxr-xr-xvfg/src/music.h14
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: