2021-02-10 16:22:24 -05:00
|
|
|
maketangible('player')
|
|
|
|
|
|
|
|
|
|
function player.interface(actor, place, gui)
|
2021-02-16 13:31:34 -05:00
|
|
|
gui:menu_item("north", "Go North")
|
|
|
|
|
gui:menu_item("south", "Go South")
|
|
|
|
|
gui:menu_item("east", "Go East")
|
|
|
|
|
gui:menu_item("west", "Go West")
|
2021-02-10 16:22:24 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function player.action.north(actor, place, gui)
|
|
|
|
|
print("Moving north")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function player.action.south(actor, place, gui)
|
|
|
|
|
print("Moving south")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function player.action.east(actor, place, gui)
|
|
|
|
|
print("Moving east")
|
2021-02-20 19:17:20 -05:00
|
|
|
t = nil
|
|
|
|
|
t[3] = 4
|
2021-02-10 16:22:24 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function player.action.west(actor, place, gui)
|
|
|
|
|
print("Moving west")
|
2021-02-20 19:17:20 -05:00
|
|
|
wait(0)
|
|
|
|
|
print("Moving west again")
|
2021-02-10 16:22:24 -05:00
|
|
|
end
|