added the ogg music

This commit is contained in:
Ruben Müller 2013-05-16 21:53:35 +02:00
parent 1daf972fb9
commit bb21ad16e2
2 changed files with 7 additions and 2 deletions

View file

@ -17,10 +17,14 @@ ig.module(
.defines(function() { .defines(function() {
RunningGame = ig.Game.extend({ RunningGame = ig.Game.extend({
font: new ig.Font('media/lcddot.font.png'), font: new ig.Font('media/lcddot.font.png'),
pauseDialogAlpha: 0, pauseDialogAlpha: 0,
pauseDialog: new ig.AnimationSheet('media/pause_screen.png', 624, 384), pauseDialog: new ig.AnimationSheet('media/pause_screen.png', 624, 384),
pauseDialogAnim: null, pauseDialogAnim: null,
showPause: false, showPause: false,
highscoreDialog: new ig.AnimationSheet('media/highscore_screen.png', 624, 384),
clearColor: null, clearColor: null,
init: function() { init: function() {
@ -50,8 +54,9 @@ ig.module(
this.pauseDialogAnim = new ig.Animation( this.pauseDialog, 0, [0] ) this.pauseDialogAnim = new ig.Animation( this.pauseDialog, 0, [0] )
// init music // init music
ig.music.add('sounds/DST-AngryRobotIII.mp3'); ig.music.add('media/sounds/DST-AngryRobotIII.ogg');
ig.music.add('sounds/DST-2ndBallad.mp3'); ig.music.add('media/sounds/DST-2ndBallad.ogg');
ig.music.random = true;
ig.music.loop = true; ig.music.loop = true;
ig.music.volume = 0.3; ig.music.volume = 0.3;
ig.music.play(); ig.music.play();

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB