54 lines
1.1 KiB
Lua
54 lines
1.1 KiB
Lua
local DonBG = require("Skins/PyTaikoGreen/Scripts/bg_objects/donbg")
|
|
|
|
Background = {}
|
|
Background.__index = Background
|
|
|
|
function Background.new(player_num, bpm, scene_preset)
|
|
local self = setmetatable({}, Background)
|
|
|
|
self.player_num = player_num
|
|
self.bpm = bpm
|
|
self.scene_preset = scene_preset
|
|
|
|
tex.load_animations("background")
|
|
tex.load_folder("background", "bg_normal/bg_0")
|
|
|
|
self.donbg = DonBG.create(6, player_num, "background")
|
|
|
|
return self
|
|
end
|
|
|
|
function Background:update(current_ms)
|
|
self.donbg:update(current_ms)
|
|
end
|
|
|
|
function Background:handle_good(player_num)
|
|
end
|
|
|
|
function Background:handle_ok(player_num)
|
|
end
|
|
|
|
function Background:handle_bad(player_num)
|
|
end
|
|
|
|
function Background:handle_drumroll(player_num)
|
|
end
|
|
|
|
function Background:handle_balloon(player_num)
|
|
end
|
|
|
|
function Background:handle_gauge(player_num, progress, is_clear, is_rainbow)
|
|
self.donbg:set_clear(is_clear)
|
|
end
|
|
|
|
function Background:draw_back()
|
|
self.donbg:draw()
|
|
tex.draw_texture("bg_0", "background")
|
|
end
|
|
|
|
function Background:draw_fore()
|
|
end
|
|
|
|
function Background:destroy()
|
|
end
|