Files
impostor/inc/window/window.splash.lua
Zsolt Tasnadi 62d4863a1a
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline was successful
refact
2026-02-22 20:18:40 +01:00

17 lines
424 B
Lua

--- Draws the splash window.
function SplashWindow.draw()
local txt = "Definitely not an Impostor"
local w = #txt * 6
local x = (240 - w) / 2
local y = (136 - 6) / 2
print(txt, x, y, 12)
end
--- Updates the splash window logic.
function SplashWindow.update()
Context.splash_timer = Context.splash_timer - 1
if Context.splash_timer <= 0 or Input.menu_confirm() then
GameWindow.set_state("intro")
end
end