forked from GanYiZhong/YataiDON14
21 lines
741 B
Lua
21 lines
741 B
Lua
require("title/attract_music_ranking")
|
|
require("title/attract_ranking")
|
|
require("title/attract_announce14")
|
|
|
|
-- the camera slot of the attract loop plays one Taiko 14 scene; a scene without its Hiroba data ends at once
|
|
local SCENES = { MusicRankingScene, RankingScene, AnnounceScene }
|
|
|
|
AttractScene = {}
|
|
AttractScene.__index = AttractScene
|
|
|
|
function AttractScene.new()
|
|
local self = setmetatable({}, AttractScene)
|
|
self.scene = SCENES[math.random(#SCENES)].new()
|
|
return self
|
|
end
|
|
|
|
function AttractScene:update(current_ms) self.scene:update(current_ms) end
|
|
function AttractScene:draw() self.scene:draw() end
|
|
function AttractScene:is_finished() return self.scene:is_finished() end
|
|
function AttractScene:close() self.scene:close() end
|