-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.lose.lua
More file actions
35 lines (29 loc) · 880 Bytes
/
Copy pathstate.lose.lua
File metadata and controls
35 lines (29 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
-- lose screen state
lose = state.create('lose')
lose.fade = true
function lose.enter()
lose.lock = 120
music(-1)
scroll.init(lose, 14, 'employee #' .. (flr(rnd(1000)) + 1000) .. '|terminated after|brutal encounter|with ' .. score.killed_by .. '||||||employee earned|$' .. score.points .. ' in bonuses|' .. (score.points > 0 and 'but due to regulatory|mandate, only $2 will|be paid out|' or '') .. '| :*# *@ * %$( @*|laura please send|in an intern to|fix:this pr1nt#r| : :: 3 *!@ **@||press 🅾️ to re-apply')
end
function lose.update(dt)
lose.lock -= 1
scroll.update(dt)
end
function lose.draw()
scroll.draw()
if lose.line >= 7 then
spr(103, 40, 70, 3, 2)
end
end
function lose.press() end
function lose.hold(secs) end
function lose.release(secs)
if lose.lock <= 0 then
sfx(40)
reload()
state.switch('title')
end
end
function lose.leave()
end