Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package gui;
- import gui.ActionBar;
- import org.flixel.FlxBasic;
- import org.flixel.FlxCamera;
- import gui.FlxTextBox;
- import org.flixel.FlxSprite;
- import org.flixel.FlxG;
- import flixel.FlxGroupX;
- /**
- * ...
- * @author Masadow
- */
- class PlayerGUI extends FlxGroupX
- {
- public function new()
- {
- super();
- cameras = new Array<FlxCamera>();
- cameras.push(new FlxCamera(0, 0, FlxG.width, FlxG.height));
- FlxG.addCamera(cameras[0]);
- //Add GUI elements
- add(new FlxTextBox(140, 0, 40, "Hello"));
- add(new ActionBar());
- }
- override public function draw():Void
- {
- this.cameras[0].fill(0x0, false);
- super.draw();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement