Files
impostor/inc/screen/screen.home.lua
Zoltan Timar 3e31398d9d
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
added 89 ascension
2026-04-29 16:20:11 +02:00

29 lines
693 B
Lua

Screen.register({
id = "home",
name = "Home",
decisions = {
"go_to_toilet",
"go_to_walking_to_office",
"go_to_sleep",
},
init = function()
if CommuteGlitch.is_active() and CommuteGlitch.get_level() >= 7 then
Audio.music_play_mystery()
Glitch.show()
else
Audio.music_play_room_work()
end
end,
background = "bedroom",
draw = function()
if Window.get_current_id() ~= "game" then return end
if CommuteGlitch.is_active() and CommuteGlitch.get_level() >= 7 then
CommuteGlitch.draw_background_flicker()
Glitch.draw()
end
if Context.home_norman_visible then
Sprite.draw_at("norman", 100, 80)
end
end
})