changes
This commit is contained in:
@@ -6,5 +6,6 @@
|
|||||||
ut-table.lua
|
ut-table.lua
|
||||||
ut-globaldb.lua
|
ut-globaldb.lua
|
||||||
ut-tablecmp.lua
|
ut-tablecmp.lua
|
||||||
player.lua
|
|
||||||
login.lua
|
login.lua
|
||||||
|
horps.lua
|
||||||
|
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
makeclass('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("cb_north", "Go North")
|
|
||||||
gui.menu_item("cb_south", "Go South")
|
|
||||||
gui.menu_item("cb_east", "Go East")
|
|
||||||
gui.menu_item("cb_west", "Go West")
|
|
||||||
end
|
|
||||||
|
|
||||||
function player:printanimstate()
|
|
||||||
local graphic,plane,x,y,z,facing = tangible.animstate(self)
|
|
||||||
print("Resulting state: ", graphic, plane, x, y, z, facing)
|
|
||||||
end
|
|
||||||
|
|
||||||
function player.cb_north(actor, place, dialog)
|
|
||||||
print("Moving north")
|
|
||||||
tangible.animate(place, {action="walk", dy=1})
|
|
||||||
actor:printanimstate()
|
|
||||||
end
|
|
||||||
|
|
||||||
function player.cb_south(actor, place, dialog)
|
|
||||||
print("Moving south")
|
|
||||||
tangible.animate(place, {action="walk", dy=-1})
|
|
||||||
actor:printanimstate()
|
|
||||||
end
|
|
||||||
|
|
||||||
function player.cb_east(actor, place, dialog)
|
|
||||||
print("Moving east")
|
|
||||||
tangible.animate(place, {action="walk", dx=1})
|
|
||||||
actor:printanimstate()
|
|
||||||
end
|
|
||||||
|
|
||||||
function player.cb_west(actor, place, dialog)
|
|
||||||
print("Moving west")
|
|
||||||
tangible.animate(place, {action="walk", dx=-1})
|
|
||||||
actor:printanimstate()
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
maketangible('grass')
|
makeclass('grass')
|
||||||
|
|
||||||
if global.once("build grass") then
|
if global.once("build grass") then
|
||||||
for y=0,4 do for x=0,y%2==1 and 3 or 4 do
|
for y=0,4 do for x=0,y%2==1 and 3 or 4 do
|
||||||
|
|||||||
Reference in New Issue
Block a user