2021-12-28 13:56:16 -05:00
|
|
|
makeclass('login')
|
2025-01-14 18:37:31 -05:00
|
|
|
makeclass("engio")
|
2025-01-21 20:20:54 -05:00
|
|
|
makeclass('tree')
|
2021-06-02 15:00:14 -04:00
|
|
|
|
2025-01-21 20:20:54 -05:00
|
|
|
function tree.init(self, config)
|
|
|
|
|
print("In tree.init:")
|
|
|
|
|
pprint{self=self, config=config}
|
|
|
|
|
wait(1)
|
|
|
|
|
print("tick");
|
|
|
|
|
wait(1)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
function login.init(actor, place)
|
|
|
|
|
dprint("login.init:", actor)
|
2024-02-28 15:35:47 -05:00
|
|
|
local x = math.random(1, 100)
|
|
|
|
|
local y = math.random(1, 100)
|
2024-03-12 11:46:48 -04:00
|
|
|
tangible.animate(actor, nil, {bp="tangiblecharacter", action="warpto", plane="earth", xyz={x, y, 90}})
|
2025-01-21 20:20:54 -05:00
|
|
|
end
|
2024-02-07 15:59:17 -05:00
|
|
|
|
2024-02-16 15:48:49 -05:00
|
|
|
function engio.move(actor, place, action, xyz, facing)
|
|
|
|
|
-- todo: sanity check the parameters.
|
|
|
|
|
dprint("engio.move ", action, " ", xyz[1], " ", xyz[2], " ", xyz[3])
|
|
|
|
|
tangible.animate(actor, nil, {action=action, xyz=xyz, facing=facing})
|
2025-01-21 20:20:54 -05:00
|
|
|
end
|
2025-02-24 16:46:05 -05:00
|
|
|
|
|
|
|
|
function engio.printhi(a1, a2, a3, a4, a5)
|
|
|
|
|
pprint("Hi there", a1, a2, a3, a4, a5)
|
|
|
|
|
end
|
2025-02-26 14:47:53 -05:00
|
|
|
|
|
|
|
|
function engio.retthree(a1, a2)
|
|
|
|
|
return { 5, {3, 4, 5}, "Howdy" }
|
|
|
|
|
end
|
|
|
|
|
|