From b74e8f712a11cf57462c51873b1cf505d90623e3 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 9 Sep 2017 06:24:59 +0200 Subject: Shortcut to setTrack in MusicPlayer:play --- not/World.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'not/World.lua') diff --git a/not/World.lua b/not/World.lua index c086bd5..ae00b48 100644 --- a/not/World.lua +++ b/not/World.lua @@ -1,5 +1,4 @@ ---- `World` --- Used to manage physical world and everything inside it: clouds, platforms, nauts, background etc. +--- Used to manage physical world and everything inside it: clouds, platforms, nauts, background etc. -- TODO: Possibly move common parts of `World` and `Menu` to abstract class `Scene`. World = require "not.Scene":extends() @@ -40,8 +39,7 @@ function World:new (map, nauts) self.camera = Camera(self) - musicPlayer:setTrack(self.map.theme) - musicPlayer:play() + musicPlayer:play(self.map.theme) end -- The end of the world -- cgit v1.1