Redesigned ID allocator and tangible.actor
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
maketangible('player')
|
||||
|
||||
function player.interface(actor, place)
|
||||
-- print("actor=", actor)
|
||||
-- print("place=", place)
|
||||
-- print("t.actor=", tangible.actor())
|
||||
-- print("t.place=", tangible.place())
|
||||
gui.menu_item("north", "Go North")
|
||||
gui.menu_item("south", "Go South")
|
||||
gui.menu_item("east", "Go East")
|
||||
@@ -34,5 +38,14 @@ function player.action.west(actor, place, dialog)
|
||||
print("Moving west")
|
||||
tangible.animate(place, {action="walk", dx=-1})
|
||||
actor:printanimstate()
|
||||
-- print("actor=", actor)
|
||||
-- print("place=", place)
|
||||
-- print("t.actor=", tangible.actor())
|
||||
-- print("t.place=", tangible.place())
|
||||
-- wait(1)
|
||||
-- print("actor=", actor)
|
||||
-- print("place=", place)
|
||||
-- print("t.actor=", tangible.actor())
|
||||
-- print("t.place=", tangible.place())
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user