Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 885 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 885 Bytes

flxsvg

OpenFL SVG Render support for HaxeFlixel.

Installation

Via haxelib:

haxelib install flxsvg

Via git for the latest updates:

haxelib git flxsvg https://github.com/Vortex2Oblivion/flxsvg

Usage

package;

import flixel.FlxState;
import openfl.utils.Assets;
import flxsvg.FlxSvgSprite;

class PlayState extends FlxState
{

	var svg:FlxSvgSprite;

	override public function create()
	{
		super.create();
		svg = new FlxSvgSprite(Assets.getText("assets/images/HaxeFlixel.svg"));
		add(svg);
	}
}

Licensing

flxsvg is made available under the MIT License. Check LICENSE for more information.