dungeon_crawler
diff prototype/src/main.cc @ 56:f9b8bbebc9b3
fixed the music playback
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 20 Sep 2012 10:04:25 +0300 |
parents | 4c427e28ca00 |
children | aa86119e3295 |
line diff
1.1 --- a/prototype/src/main.cc Wed Sep 19 08:19:10 2012 +0300 1.2 +++ b/prototype/src/main.cc Thu Sep 20 10:04:25 2012 +0300 1.3 @@ -109,6 +109,7 @@ 1.4 1.5 music = new OggVorbisStream; 1.6 if(music->open(datafile_path("bgtrack.ogg"))) { 1.7 + music->set_volume(0.6); 1.8 music->play(PlayMode::loop); 1.9 } else { 1.10 delete music; 1.11 @@ -254,7 +255,7 @@ 1.12 } 1.13 float dt = (float)(msec - last_upd) / 1000.0; 1.14 1.15 - float offs = 2.5 * dt; 1.16 + float offs = 2.0 * dt; 1.17 float dx = 0, dy = 0; 1.18 1.19 // handle key input 1.20 @@ -434,7 +435,7 @@ 1.21 } 1.22 1.23 if(bnstate[0]) { 1.24 - cam.input_rotate(dy * 0.01, dx * 0.01, 0); 1.25 + cam.input_rotate(dy * 0.0075, dx * 0.0075, 0); 1.26 glutPostRedisplay(); 1.27 } 1.28 if(bnstate[2]) {