Files
PyTaikoGreen/Scripts/global/coin_overlay.lua
2026-07-17 13:03:07 -04:00

17 lines
518 B
Lua

CoinOverlay = {}
CoinOverlay.__index = CoinOverlay
function CoinOverlay.new()
local self = setmetatable({}, CoinOverlay)
self.text = text.create_text("free_play", { 255, 255, 255, 255 }, { 0, 0, 0, 255 }, false, 4, 5)
self.config = tex.get_skin_config("free_play")
return self
end
function CoinOverlay:update(current_ms) end
function CoinOverlay:draw(x, y)
local text_x = tex.get_screen_width() / 2 - self.text.width / 2 - self.config.x
self.text:draw({ x = text_x })
end