Commits

Chris Logsdon committed f040f4e

Replaced old music with new, remastered versions;
Created const's in Music.as for easier mixing of World songs;
Edited addMusic method to take a Number as a parameter for volume;
Edited Music constructor to take a Number as a parameter for volume;
Fixed a platform in dungeon 02 being too high to reach;

Comments (0)

Files changed (9)

lib/audio/music/beach.mp3

Binary file modified.

lib/audio/music/boss.mp3

Binary file modified.

lib/audio/music/dungeon.mp3

Binary file modified.

lib/audio/music/finale.mp3

Binary file modified.

lib/audio/music/forest.mp3

Binary file modified.

lib/audio/music/hellther.mp3

Binary file modified.

lib/audio/music/tower.mp3

Binary file modified.
 			/**
 			* Debugging shortcuts
 			*/			
-			
 			if (DEBUG_MODE)
-			{
+			{	
 				// Next level
 				if (Input.isKeyDown(Input.DIGIT_1))
 					WorldUtils.next();

src/ifrit/World.as

 			
 			audio = new Audio;
 			
-			audio.addMusic("beach", Library.getSound("audio.music.beach.mp3"));
-			audio.addMusic("forest", Library.getSound("audio.music.forest.mp3"));
-			audio.addMusic("tower", Library.getSound("audio.music.tower.mp3"));
-			audio.addMusic("dungeon", Library.getSound("audio.music.dungeon.mp3"));
-			audio.addMusic("hellther", Library.getSound("audio.music.hellther.mp3"));
-			audio.addMusic("boss", Library.getSound("audio.music.boss.mp3"));
-			audio.addMusic("finale", Library.getSound("audio.music.finale.mp3"));
+			audio.addMusic("beach", Library.getSound("audio.music.beach.mp3"), Music.BEACH_VOL);
+			audio.addMusic("forest", Library.getSound("audio.music.forest.mp3"), Music.FOREST_VOL);
+			audio.addMusic("tower", Library.getSound("audio.music.tower.mp3"), Music.TOWER_VOL);
+			audio.addMusic("dungeon", Library.getSound("audio.music.dungeon.mp3"), Music.DUNGEON_VOL);
+			audio.addMusic("hellther", Library.getSound("audio.music.hellther.mp3"), Music.HELLTHER_VOL);
+			audio.addMusic("boss", Library.getSound("audio.music.boss.mp3"), Music.BOSS_VOL);
+			audio.addMusic("finale", Library.getSound("audio.music.finale.mp3"), Music.FINALE_VOL);
 			
 			audio.addSFX("titleAmb", Library.getSound("audio.sfx.titleScreenAmbiance.mp3"));
 			audio.addSFX("beachAmb", Library.getSound("audio.sfx.startToBeach.mp3"));
 			WorldUtils.addWall( 810, 395, false, Library.getImage("dungeon.platform.png"), 500);
 			
 			WorldUtils.addWall( 390, 355, false, Library.getImage("dungeon.platform.png"), 100);
-			WorldUtils.addWall(345, 355, true, Library.getImage("misc.clipPlatform.png"), 5);
+			WorldUtils.addWall( 345, 355, true, Library.getImage("misc.clipPlatform.png"), 5);
 			
 			WorldUtils.addWall( 250, 100, false, Library.getImage("dungeon.platform.png"), 100);
 			
 			WorldUtils.addWall( 300, 290, false, Library.getImage("dungeon.platform.png"), 75);
-			WorldUtils.addWall(267.5, 290, true, Library.getImage("misc.clipPlatform.png"), 5);
+			WorldUtils.addWall( 267.5, 290, true, Library.getImage("misc.clipPlatform.png"), 5);
 			
 			WorldUtils.addWall( 300, 220, false, Library.getImage("dungeon.platform.png"), 75);