Skip to content

Commit c51b827

Browse files
committed
optional img so that we can use a empty parallax sprite as a container for stuff
1 parent 21db165 commit c51b827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parallax/ParallaxSprite.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ParallaxSprite
6464

6565
public static function parse(xml:Access):ParallaxSprite
6666
{
67-
return new ParallaxSprite(xml.has.id ? xml.att.id : xml.att.img, xml.att.img + ".png", xml.getInt("x"), xml.getInt("y"), xml.getFloat("scaleX", 1), xml.getFloat("scaleY", 1), xml.getInt("width"), xml.getInt("height"), xml.getInt("offsetX"), xml.getInt("offsetY"), xml.getBool("isAnim", false));
67+
return new ParallaxSprite(xml.has.id ? xml.att.id : xml.att.img, xml.has.img ? xml.att.img + ".png" : "", xml.getInt("x"), xml.getInt("y"), xml.getFloat("scaleX", 1), xml.getFloat("scaleY", 1), xml.getInt("width"), xml.getInt("height"), xml.getInt("offsetX"), xml.getInt("offsetY"), xml.getBool("isAnim", false));
6868
}
6969

7070
}

0 commit comments

Comments
 (0)