29 lines
806 B
Lua
29 lines
806 B
Lua
makeclass('login')
|
|
makeclass("engio")
|
|
makeclass('cube')
|
|
makeclass('sphere')
|
|
|
|
function login.init()
|
|
local actor = tangible.actor()
|
|
dprint("login.init:", actor)
|
|
tangible.animinit(actor, {bp="character", plane="earth", xyz={0, 0, 90}})
|
|
tangible.build{class=cube, xyz={500,-100,0}}
|
|
tangible.build{class=sphere, xyz={500,100,0}}
|
|
end
|
|
|
|
function engio.move(action, xyz, facing)
|
|
-- todo: sanity check the parameters.
|
|
local actor = tangible.actor()
|
|
dprint("engio.move ", action, " ", xyz[1], " ", xyz[2], " ", xyz[3])
|
|
tangible.animate(actor, nil, {action=action, xyz=xyz, facing=facing})
|
|
end
|
|
|
|
function engio.printhi(a1, a2, a3, a4, a5)
|
|
pprint("Hi there", a1, a2, a3, a4, a5)
|
|
end
|
|
|
|
function engio.retmany()
|
|
return 7, vec(8,9,10), "Yo", "Banana", 13.2, vec(2,3,4), "Hi"
|
|
end
|
|
|