Created
September 8, 2011 18:31
-
-
Save ArthurGuy/1204205 to your computer and use it in GitHub Desktop.
Arthur's Creature
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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