Created
February 27, 2013 23:54
-
-
Save Neurogami/5053009 to your computer and use it in GitHub Desktop.
Leap game code
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
grow: function (scaleFactorArray) { | |
var timeNow = new Date().getTime() / 1000; | |
var tDelta = timeNow - this.lastGrowMessage; | |
this.walkingTo = false; | |
this.growing = true; | |
this.bitmapAnim.scaleX = scaleFactorArray[0]; | |
this.bitmapAnim.scaleY = scaleFactorArray[0]; | |
if (tDelta < this.minGrowCallsTime ) { return } | |
this.lastGrowMessage = timeNow; | |
this.bitmapAnim.gotoAndPlay("grow"); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment