Develop #4

Merged
wariosolis merged 35 commits from develop into master 2017-01-04 00:04:34 +01:00
2 changed files with 11 additions and 0 deletions
Showing only changes of commit 2878c915ea - Show all commits
+11
View File
@@ -21,6 +21,9 @@ function game.load()
-- Bells -- Bells
bells_enable = true bells_enable = true
game.music = love.audio.newSource("assets/audio/music/theme.mp3")
game:playMusic()
end end
function game:nextLevel() function game:nextLevel()
@@ -39,4 +42,12 @@ function game:setNewSizeWorld(canvas_width, canvas_height)
camera.gcam:setWorld(0, 0, game.canvas.width, game.canvas.height) camera.gcam:setWorld(0, 0, game.canvas.width, game.canvas.height)
end end
function game:playMusic()
game.music:play()
end
function game:stopMusic()
game.music:stop()
end
return game return game
BIN
View File
Binary file not shown.