diff options
author | Aki <nthirtyone@gmail.com> | 2017-06-27 09:05:16 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-06-27 09:05:16 +0200 |
commit | ae8ce1a11ca02297ff9fe05b3146c620a2485975 (patch) | |
tree | a18c46b9a9bed6ee56083082f2a2d41b74dce22a /not/MusicPlayer.lua | |
parent | baf04a055dbc66b80c29a406907a0a595ac55f00 (diff) | |
download | roflnauts-ae8ce1a11ca02297ff9fe05b3146c620a2485975.zip roflnauts-ae8ce1a11ca02297ff9fe05b3146c620a2485975.tar.gz roflnauts-ae8ce1a11ca02297ff9fe05b3146c620a2485975.tar.bz2 |
Scenes now use MusicPlayer
Diffstat (limited to 'not/MusicPlayer.lua')
-rw-r--r-- | not/MusicPlayer.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/not/MusicPlayer.lua b/not/MusicPlayer.lua index 1e65e3b..84f5384 100644 --- a/not/MusicPlayer.lua +++ b/not/MusicPlayer.lua @@ -1,4 +1,4 @@ -require "not.object" +require "not.Object" --- `MusicPlayer` -- Simple music player object that plays and loops selected track. @@ -22,7 +22,7 @@ function MusicPlayer:setTrack (trackName) if MusicPlayer.TRACKS[trackName] then self.source = MusicPlayer.TRACKS[trackName] else - local source = love.audio.newSource("assets/music" .. trackName) + local source = love.audio.newSource("assets/music/" .. trackName) source:setLooping(true) source:setVolume(.7) self.source = source |