Files
PyTaikoGreen/Scripts/bg_objects/chibi/0.lua
T
2026-02-21 14:55:17 -05:00

27 lines
765 B
Lua

local BaseChibi = require("Skins/PyTaikoGreen/Scripts/bg_objects/chibi/base")
local Chibi0 = setmetatable({}, { __index = BaseChibi })
Chibi0.__index = Chibi0
function Chibi0.new(index, bpm, is_2p, path)
local self = setmetatable({}, Chibi0)
local base = BaseChibi.new(index, bpm, is_2p, path)
for k, v in pairs(base) do
self[k] = v
end
return self
end
function Chibi0:draw()
local game_2p_offset = tex.get_skin_config("game_2p_offset") or {y = 0}
local y_offset = self.is_2p and game_2p_offset.y or 0
tex.draw_texture(self.name, tostring(self.texture_index), {
frame = self.texture_change.attribute,
x = self.hori_move.attribute,
y = self.vert_move.attribute + y_offset
})
end
return Chibi0