Created
February 16, 2011 18:46
-
-
Save geoffb/829898 to your computer and use it in GitHub Desktop.
Patch allowing Weltmeister to show the first frame of an entity's animation rather than the top left sprite in it's animation sheet.
This file contains 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
diff --git a/lib/impact/animation.js b/lib/impact/animation.js | |
index 20839f9..f367083 100644 | |
--- a/lib/impact/animation.js | |
+++ b/lib/impact/animation.js | |
@@ -45,6 +45,7 @@ ig.Animation = ig.Class.extend({ | |
this.frameTime = frameTime; | |
this.sequence = sequence; | |
this.stop = !!stop; | |
+ this.tile = this.sequence[0]; | |
}, | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment