最后活跃于 2 weeks ago Unlisted

修订 08d21b8331e49ed21e8bf0aaec0000a7c6fd5f76

awful.lua 原始文件 Playground
1player.x = bed.x
2player.y = bed.y
3self:newAction("draw", homeDoor)
4self:newAction("draw", bed)
5self:newAction("draw", computer)
6self:newAction("draw", player)
7sequence(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)
31end)