topical media & game development
mobile-query-three-plugins-ogsworkshop-examples-stage042.htm / htm
<!doctype html><title>Minimal tQuery Page</title>
<script src="../../../build/tquery-bundle-require.js"></script>
<body><script>
require(['tquery.minecraft'], function(){
// create the world, add the boilerplate and start
var world = tQuery.createWorld().boilerplate().start();
// create the minecraft character
var character = tQuery.createMinecraftChar().addTo(world);
character.object3D('root').translateY(-0.5);
// simple hook
world.loop().hook(function(delta, now){
var mesh = character.object3D('armR');
var angle = now * Math.PI * 2;
mesh.rotationX(Math.sin(angle));
});
});
</script></body>
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.