Skip to content

Instantly share code, notes, and snippets.

@ekelokorpi
Created June 1, 2018 14:07
Show Gist options
  • Save ekelokorpi/bc940e0504400555149ae33f28d169b2 to your computer and use it in GitHub Desktop.
Save ekelokorpi/bc940e0504400555149ae33f28d169b2 to your computer and use it in GitHub Desktop.
var sprite = new game.SpriteSheet('spritesheet.png', 80, 96);
sprite.frame(6); // Set texture to frame 6
sprite.addTo(this.stage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment