25 lines
491 B
Lua
25 lines
491 B
Lua
|
|
maketangible('player')
|
||
|
|
|
||
|
|
function player.interface(actor, place, gui)
|
||
|
|
gui:menu_item("North")
|
||
|
|
gui:menu_item("South")
|
||
|
|
gui:menu_item("East")
|
||
|
|
gui:menu_item("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")
|
||
|
|
end
|
||
|
|
|
||
|
|
function player.action.west(actor, place, gui)
|
||
|
|
print("Moving west")
|
||
|
|
end
|