Skip to content

Instantly share code, notes, and snippets.

@Geokureli
Last active October 21, 2021 19:15
Show Gist options
  • Save Geokureli/80761564f90b57769b070a5b2a42bf79 to your computer and use it in GitHub Desktop.
Save Geokureli/80761564f90b57769b070a5b2a42bf79 to your computer and use it in GitHub Desktop.
package;
import flixel.FlxState;
import flixel.graphics.frames.FlxAtlasFrames;
class PlayState extends FlxState
{
var sprite:FlxSprite;
override public function create():Void
{
var sprite = new FlxSprite();
sprite.frames = FlxAtlasFrames.fromSparrow("assets/whatever.png", "assets/whatever.png");
sprite.animation.addByPrefix("whatever", 24, true)
add(sprite);
}
override public function update(elapsed:Float):Void
{
super.update(elapsed);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment