A few animation primitives

This commit is contained in:
2021-02-25 15:43:05 -05:00
parent f7be4a93e2
commit 1814f39e1a
3 changed files with 65 additions and 7 deletions

View File

@@ -9,18 +9,26 @@ end
function player.action.north(actor, place, dialog)
print("Moving north")
x,y,z = tangible.xyz(place);
tangible.walkto(place, x, y+1, z);
end
function player.action.south(actor, place, dialog)
print("Moving south")
x,y,z = tangible.xyz(place);
tangible.walkto(place, x, y-1, z);
end
function player.action.east(actor, place, dialog)
print("Moving east")
x,y,z = tangible.xyz(place);
tangible.walkto(place, x+1, y, z);
end
function player.action.west(actor, place, dialog)
print("Moving west")
x,y,z = tangible.xyz(place)
tangible.walkto(place, x-1, y, z);
wait(0)
print("Moving west again")
end