Improved Docs, AnimationStepApplyMesh+Materials, some other minor tweaks
This commit is contained in:
@@ -10,22 +10,22 @@ function login.init()
|
||||
global.set("nextplayer", player + 1)
|
||||
dprint("login.init initializing player ", player)
|
||||
actor.player = player
|
||||
tangible.animinit(actor, {bp="character", plane="earth", xyz={player * 100, 0, 90}})
|
||||
tangible.animinit{tan=actor, anim={bp="character", plane="earth", xyz={player * 100, 0, 90}}}
|
||||
end
|
||||
|
||||
-- This gets called on the admin user. You can call login.init in here if you want.
|
||||
function world.init()
|
||||
dprint("world.init")
|
||||
global.set("nextplayer", 0)
|
||||
tangible.build{class=cube, plane="earth", xyz={500,-100,0}}
|
||||
tangible.build{class=sphere, plane="earth", xyz={500,100,0}}
|
||||
tangible.build{class=cube, anim={plane="earth", xyz={500,-100,0}, mat_color={1,0,0}}}
|
||||
tangible.build{class=sphere, anim={plane="earth", xyz={500,100,0}, mat_color={0,0,1}}}
|
||||
login.init()
|
||||
end
|
||||
|
||||
function engio.move(action, xyz, facing)
|
||||
-- todo: sanity check the parameters.
|
||||
dprint("engio.move ", action, " ", xyz[1], " ", xyz[2], " ", xyz[3])
|
||||
tangible.animate(actor, nil, {action=action, interactive=true, xyz=xyz, facing=facing})
|
||||
tangible.animate{tan=actor, anim={action=action, interactive=true, xyz=xyz, facing=facing}}
|
||||
end
|
||||
|
||||
function cube.lookhotkeys(keys)
|
||||
@@ -85,8 +85,8 @@ function engio.presshotkey(action)
|
||||
end
|
||||
|
||||
function jp3()
|
||||
tangible.animate(actor, nil, {action="play", seq="jump"})
|
||||
tangible.animate(actor, nil, {action="play", seq="jump"})
|
||||
tangible.animate(actor, nil, {action="play", seq="jump"})
|
||||
tangible.animate{tan=actor, anim={action="play", seq="jump"}}
|
||||
tangible.animate{tan=actor, anim={action="play", seq="jump"}}
|
||||
tangible.animate{tan=actor, anim={action="play", seq="jump"}}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user