gingerrific/side-scroller-game — pull request #2 by jeffdill2 (2014-06-14 17:59:32+00:00)
Title: Sprite animation

#Changes#
___
###Added the jquery plugin file for spritely - not being used yet
___
###Created sprite sheets for running forwards and backwards, and sprites for facing forwards, backwards, and jumping
___
###Created new js file for sprite animation
- keydown for left arrow - faces sprite backwards - animates sprite sheet if held down
- keydown for right arrow - faces sprite backwards - animates sprite sheet if held down
- keyup for left/right arrow - removes run/animation classes
___
###main.scss
- added classes for sprite
- facing forward
- facing backward
- running forward sprite sheet
- running backward sprite sheet
- added class for sprite animation - 'sprite-animate' keyframe
___
###index.html
- added sprite div - initializes with sprite facing forward
- commented out 'controls.js' to not interfere with 'sprite-animation.js' during testing