Lots of work on several unrelated things.
This commit is contained in:
@@ -328,7 +328,7 @@ LuaDefine(tangible_build, "config",
|
||||
if (!LS.isnil(bp)) {
|
||||
state.set_string("bp", LS.ckstring(bp));
|
||||
} else {
|
||||
state.set_string("bp", LS.ckstring(classname));
|
||||
state.set_string("bp", LS.classname(classtab));
|
||||
}
|
||||
if (!LS.isnil(plane)) {
|
||||
state.set_string("plane", LS.ckstring(plane));
|
||||
|
||||
@@ -1,21 +1,14 @@
|
||||
makeclass('login')
|
||||
makeclass("engio")
|
||||
makeclass('tree')
|
||||
|
||||
function tree.init(self, config)
|
||||
print("In tree.init:")
|
||||
pprint{self=self, config=config}
|
||||
wait(1)
|
||||
print("tick");
|
||||
wait(1)
|
||||
end
|
||||
makeclass('cube')
|
||||
makeclass('sphere')
|
||||
|
||||
function login.init()
|
||||
local actor = tangible.actor()
|
||||
dprint("login.init:", actor)
|
||||
local x = math.random(1, 100)
|
||||
local y = math.random(1, 100)
|
||||
tangible.animate(actor, nil, {bp="tangiblecharacter", action="warpto", plane="earth", xyz={x, y, 90}})
|
||||
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)
|
||||
@@ -29,7 +22,7 @@ function engio.printhi(a1, a2, a3, a4, a5)
|
||||
pprint("Hi there", a1, a2, a3, a4, a5)
|
||||
end
|
||||
|
||||
function engio.retthree(a1, a2)
|
||||
return 7, vec(8,9,10), "Yo"
|
||||
function engio.retmany()
|
||||
return 7, vec(8,9,10), "Yo", "Banana", 13.2, vec(2,3,4), "Hi"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user