topical media & game development
mobile-query-three-plugins-nonplayablechar-examples-example.htm / htm
<!doctype html><title>Minimal tQuery Page</title>
<script src="../../../build/tquery-bundle-require.js"></script>
<script src="../vendor/machinejs/base.js"></script>
<script src="../vendor/machinejs/machine.js"></script>
<script src="../vendor/machinejs/demo.js"></script>
<script src="nonplayablecharacter.js"></script>
<body><script>
require(['tquery.grassground', 'tquery.minecraft'], function(){
var world = tQuery.createWorld().boilerplate().start();
var object = tQuery.createTorus().addTo(world);
var ground = tQuery.createGrassGround({
textureRepeatX : 5,
textureRepeatY : 5,
}).addTo(world)
.scale(20);
var bot = new NonPlayableChar();
bot.character().addTo(world);
world.loop().hook(function(delta, now){
bot.update();
})
});
</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.