Skip to content

Instantly share code, notes, and snippets.

@ArthurGuy
Created September 8, 2011 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArthurGuy/1204205 to your computer and use it in GitHub Desktop.
Save ArthurGuy/1204205 to your computer and use it in GitHub Desktop.
Arthur's Creature
jj.createCreature('arthurguy', function (creature) {
// Give your creature a size.
creature.size({width: 50, height: 50});
// Center your creature in the world.
var worldCenter = jj.center();
creature.position({
top: worldCenter.top - 25,
left: worldCenter.left - 25
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment