When the player is in camp(not fighting zombies) the music selection is a normal set of minecraft music.
But when he goes into horde mode(smokin' zombehs!!!) I want the music selection to be a set of minecraft music dubstep remix's I've made.
My songs are in tables..
Code: Select all
song = {love.audio.newSource("songs/song1.mp3"), love.audio.newSource("songs/song2.mp3"), love.audio.newSource("songs/song3.mp3"), love.audio.newSource("songs/song4.mp3"), love.audio.newSource("songs/song5.mp3"), love.audio.newSource("songs/song6.mp3")}
remix = {love.audio.newSource("songs/remix1.wav")}
and...
Code: Select all
if steve.x > groundWidth * 5 - 43 and
camp == true and
horde_locked == false and
awesome_timer == 3 then
wave = wave + 1
spawnweight = spawnweight + 0.001
camp = false
horde = true
steve.x = 5
camera.x = 0
kill_limit = kill_limit + 5
zombie_health = zombie_health + 0.5
kills = 0
|
|
Code: Select all
if kills > kill_limit then
awesome_timer = awesome_timer - dt
party_modeActive = true
table.remove(zombie)
end
if awesome_timer < 0 then
camp_alpha = 0
party_modeActive = false
red = 232
blue = 255
green = 232
rednight = 10
greennight = 10
bluenight= 35
colorred = 255
colorblue = 255
colorgreen = 255
housecolorred = 150
housecolorblue = 150
housecolorgreen = 150
stevecolor_red = 255
stevecolor_green = 255
stevecolor_blue = 255
horde = false
steve.x = 5
camera.x = 0
camp = true
awesome_timer = 3
end
I play my songs with..
Code: Select all
songplaying = pickOne(song)
love.audio.setVolume(0.4)
love.audio.play(songplaying)