summaryrefslogtreecommitdiffhomepage
path: root/not/Music.lua
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2017-08-13 02:26:55 +0200
committerAki <nthirtyone@gmail.com>2017-08-13 02:26:55 +0200
commitb1cf14d64a2d3e28683db87190c4b2c7799c259d (patch)
treee45dac5cc6ce5265e3e3e2c914eb7cc92a820b8b /not/Music.lua
parent0dd01913fe0eefc7ba4bc0797877f40fdedf9315 (diff)
parented62b573417bdc85bec616f6016846b02de4c906 (diff)
downloadroflnauts-b1cf14d64a2d3e28683db87190c4b2c7799c259d.zip
roflnauts-b1cf14d64a2d3e28683db87190c4b2c7799c259d.tar.gz
roflnauts-b1cf14d64a2d3e28683db87190c4b2c7799c259d.tar.bz2
Merge branch 'multi'maps
Diffstat (limited to 'not/Music.lua')
-rw-r--r--not/Music.lua25
1 files changed, 0 insertions, 25 deletions
diff --git a/not/Music.lua b/not/Music.lua
deleted file mode 100644
index ee930f4..0000000
--- a/not/Music.lua
+++ /dev/null
@@ -1,25 +0,0 @@
---- `Music`
--- Simple music player object that plays and loops selected track in single Scene.
-Music = {
- source = --[[love.audio.newSource]]nil
-}
-
-Music.__index = Music
-
-function Music:new (trackName)
- local o = setmetatable({}, self)
- o:init(trackName)
- return o
-end
-
--- TODO: trackName should be passed without file extension.
-function Music:init (trackName)
- self.source = love.audio.newSource("assets/music/" .. trackName)
- self.source:setLooping(true)
- self.source:setVolume(.7)
- self.source:play()
-end
-
-function Music:delete ()
- self.source:stop()
-end \ No newline at end of file