maketangible('player') function player.interface(actor, place) 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, dialog) print("Moving north") x,y,z = tangible.xyz(place); tangible.animate(place, {action="walk", dy=1}) end function player.action.south(actor, place, dialog) print("Moving south") x,y,z = tangible.xyz(place); tangible.animate(place, {action="walk", dy=-1}) end function player.action.east(actor, place, dialog) print("Moving east") x,y,z = tangible.xyz(place); tangible.animate(place, {action="walk", dx=1}) end function player.action.west(actor, place, dialog) print("Moving west") x,y,z = tangible.xyz(place) tangible.animate(place, {action="walk", dx=-1}) end