Skip to content

Instantly share code, notes, and snippets.

@Nasawa
Last active August 29, 2015 14:01
Show Gist options
  • Save Nasawa/1d5bdec414fc13252088 to your computer and use it in GitHub Desktop.
Save Nasawa/1d5bdec414fc13252088 to your computer and use it in GitHub Desktop.
I was a little to silly to just read this from json...
Crafty.sprite(200, "img/clock.png",
{
clock: [0,0,0,0]
});
Crafty.sprite(128, "img/tiles2.png",
{
grass: [0, 0, 1, 1],
stone: [1, 0, 1, 1],
tilled: [2, 0, 1, 1]
});
Crafty.sprite(135, "img/femaleanimsheet.png",
{
female: [0, 0, 0, 0]
});
Crafty.sprite(135, "img/maleframepixelskin.png",
{
male: [0, 0, 0, 0]
});
Crafty.sprite(135, "img/tomatosheet2.png",
{
tomatoSprout: [0, 0, 0, 0]
});
Crafty.sprite(1920, "img/raind.png",
{
rainSprite: [0,0,0,0]
});
Crafty.sprite(135, "img/pantsanimsheet.png",
{
pants: [-1, -1, -1, -1]
});
Crafty.sprite(135, "img/shoeanimsheet.png",
{
shoe: [-1, -1, -1, -1]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment