Created
March 6, 2021 21:54
-
-
Save KinoAR/1211b7851878ba56bcecaa8e0278544e to your computer and use it in GitHub Desktop.
New scene in HaxeFlixel created using PlayState as an example.
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
| /** | |
| * Basic example of a scene used in the tutorial for HaxeFlixel as well. | |
| */ | |
| class PlayState extends FlxState { | |
| override public function create() { | |
| super.create(); | |
| add(new FlxText('Hello World', 32).screenCenter()); | |
| } | |
| override public function update(elapsed:Float) { | |
| super.update(elapsed); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment