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