1 2 3 4 5 6 7 8 9 10 11 12 13 14
package shared; import flixel.FlxSprite; import flixel.util.FlxColor; class UIBackground extends FlxSprite { public function new(x:Float = 0, y:Float = 0, width:Int, height:Int, color:FlxColor) { super(x, y); makeGraphic(width, height, color); alpha = 0.5; } }