29 lines
605 B
Lua
29 lines
605 B
Lua
maketangible('player')
|
|
|
|
function player.interface(actor, place, gui)
|
|
gui:menu_item("north", "Go North")
|
|
gui:menu_item("south", "Go South")
|
|
gui:menu_item("east", "Go East")
|
|
gui:menu_item("west", "Go West")
|
|
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")
|
|
t = nil
|
|
t[3] = 4
|
|
end
|
|
|
|
function player.action.west(actor, place, gui)
|
|
print("Moving west")
|
|
wait(0)
|
|
print("Moving west again")
|
|
end
|