最后活跃于 2 weeks ago Unlisted

capitalex's Avatar capitalex 修订了这个 Gist 2 weeks ago. 转到此修订

1 file changed, 31 insertions

awful.lua(文件已创建)

@@ -0,0 +1,31 @@
1 + player.x = bed.x
2 + player.y = bed.y
3 + self:newAction("draw", homeDoor)
4 + self:newAction("draw", bed)
5 + self:newAction("draw", computer)
6 + self:newAction("draw", player)
7 + sequence(function(wait, resume)
8 + message("Whelp, time for another week of work. [>]")
9 + world:once("keyPressed", resume)
10 + wait()
11 + message("Work's been super busy. [>]")
12 + world:once("keyPressed", resume)
13 + wait()
14 + message("It's a tough market to be a software shop. [>]")
15 + world:once("keyPressed", resume)
16 + wait()
17 + message("Anyways, I should probably get to work.")
18 + world:newAction("update", player)
19 + self:newAction("draw", function()
20 + if self:interact() then
21 + world.active = true
22 + if player:touches(homeDoor) then
23 + self:goToWork()
24 + elseif player:touches(computer) then
25 + message("Wish I had time for a quick browse, but I can't afford the distraction.")
26 + elseif player:touches(bed) then
27 + message("haha, I wish I could sleep in more. But need to get that money.")
28 + end
29 + end
30 + end)
31 + end)
上一页 下一页