Files
impostor/inc/window/window.intro.title.lua
Zsolt Tasnadi 7697b35336
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
input remapping + mouse control
2026-04-02 18:39:36 +02:00

37 lines
1.0 KiB
Lua

--- @section TitleIntroWindow
TitleIntroWindow.timer = 180 -- 3 seconds at 60fps
TitleIntroWindow.text = [[
## ### ### ### ### ### ### ### # # #
# # # # # # # # # # # # #
# # ### ### # # # # # ### # #
# # # # # # # # # # # #
## ### # ### # # ### # ### ## #
# # ### ### ## # #
## # # # # # # ## #
# ## # # # #### # ##
# # # # # # # # #
# # ### # # # # #
### # # ### #### ### ### #### ###
# ## ## # # # # # # # # # #
# # # # ### # # ### # # # ###
# # # # # # # # # # # #
### # # # #### ### # #### # #
]]
--- Draws the title intro window.
--- @within TitleIntroWindow
function TitleIntroWindow.draw()
AsciiArt.draw(TitleIntroWindow.text, {})
end
--- Updates the title intro window logic.
--- @within TitleIntroWindow
function TitleIntroWindow.update()
TitleIntroWindow.timer = TitleIntroWindow.timer - 1
if TitleIntroWindow.timer <= 0 or Input.select() or Input.select() then
Window.set_current("intro_ttg")
end
end