Merging 1.9.1 source: sprite changes

This commit is contained in:
Evan Debenham
2015-11-09 14:04:04 -05:00
committed by Evan Debenham
parent e65602dba0
commit d894c7297f
4 changed files with 29 additions and 2 deletions
@@ -259,6 +259,7 @@ public class ItemSprite extends MovieClip {
public static final Glowing WHITE = new Glowing( 0xFFFFFF, 0.6f );
public int color;
public float red;
public float green;
public float blue;
@@ -269,6 +270,9 @@ public class ItemSprite extends MovieClip {
}
public Glowing( int color, float period ) {
this.color = color;
red = (color >> 16) / 255f;
green = ((color >> 8) & 0xFF) / 255f;
blue = (color & 0xFF) / 255f;