Skip to content

Instantly share code, notes, and snippets.

@cykod
Created February 25, 2013 20:58
Show Gist options
  • Save cykod/5033236 to your computer and use it in GitHub Desktop.
Save cykod/5033236 to your computer and use it in GitHub Desktop.
Quintus HTML5 Guy Animations
Q.compileSheets("sprites.png","sprites.json");
Q.animations('player', {
run_right: { frames: [0,1,2,3,4,5], rate: 1/8},
run_left: { frames: [9,10,11,12,13,14], rate: 1/8},
stand_right: { frames: [2], rate: 1/5},
stand_left: { frames: [11], rate: 1/5},
jump_right: { frames: [6,7,8], rate: 1/5, loop: false },
jump_left: { frames: [15,16,17], rate: 1/5, loop: false},
fly_right: { frames: [8], rate: 1/5, loop: false },
fly_left: { frames: [17], rate: 1/5, loop: false}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment