Last active
October 21, 2021 19:15
-
-
Save Geokureli/80761564f90b57769b070a5b2a42bf79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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