mirror of
https://github.com/Melon-Bread/Pet.GB
synced 2025-02-26 17:39:33 -05:00
Added emotion & interact boxes 📦
This commit is contained in:
parent
62fccd4732
commit
a595be5763
@ -31,6 +31,10 @@ class HUD extends FlxTypedGroup<FlxSprite>
|
|||||||
private var _txtConfig:FlxText;
|
private var _txtConfig:FlxText;
|
||||||
private var _sprConfig:FlxSprite;
|
private var _sprConfig:FlxSprite;
|
||||||
|
|
||||||
|
// Gel Boxes
|
||||||
|
private var _sprEmotion:FlxSprite;
|
||||||
|
private var _sprInteraction:FlxSprite;
|
||||||
|
|
||||||
// Sounds
|
// Sounds
|
||||||
private var _sndSelect:FlxSound;
|
private var _sndSelect:FlxSound;
|
||||||
private var _sndNext:FlxSound;
|
private var _sndNext:FlxSound;
|
||||||
@ -38,6 +42,7 @@ class HUD extends FlxTypedGroup<FlxSprite>
|
|||||||
// Misc
|
// Misc
|
||||||
private var _menuOption:Int;
|
private var _menuOption:Int;
|
||||||
private var _sprSelect:FlxSprite;
|
private var _sprSelect:FlxSprite;
|
||||||
|
private var _tmpText:FlxText;
|
||||||
|
|
||||||
private var _gel:Gel;
|
private var _gel:Gel;
|
||||||
|
|
||||||
@ -45,6 +50,10 @@ class HUD extends FlxTypedGroup<FlxSprite>
|
|||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
_menuOption = 0;
|
||||||
|
_gel = g;
|
||||||
|
|
||||||
// Top
|
// Top
|
||||||
_sprTop = new FlxSprite(0, 0, AssetPaths.HUD_Background__png);
|
_sprTop = new FlxSprite(0, 0, AssetPaths.HUD_Background__png);
|
||||||
add(_sprTop);
|
add(_sprTop);
|
||||||
@ -77,7 +86,6 @@ class HUD extends FlxTypedGroup<FlxSprite>
|
|||||||
_sprRest = new FlxSprite((_txtRest.x + 2), (_txtRest.y - 17), AssetPaths.Rest__png);
|
_sprRest = new FlxSprite((_txtRest.x + 2), (_txtRest.y - 17), AssetPaths.Rest__png);
|
||||||
add(_sprRest);
|
add(_sprRest);
|
||||||
|
|
||||||
|
|
||||||
// Bottom
|
// Bottom
|
||||||
_sprBottom = new FlxSprite(0, (FlxG.height - _sprTop.height), AssetPaths.HUD_Background__png);
|
_sprBottom = new FlxSprite(0, (FlxG.height - _sprTop.height), AssetPaths.HUD_Background__png);
|
||||||
add(_sprBottom);
|
add(_sprBottom);
|
||||||
@ -114,17 +122,24 @@ class HUD extends FlxTypedGroup<FlxSprite>
|
|||||||
_sndSelect = FlxG.sound.load(AssetPaths.Select__ogg);
|
_sndSelect = FlxG.sound.load(AssetPaths.Select__ogg);
|
||||||
_sndNext = FlxG.sound.load(AssetPaths.Next__ogg);
|
_sndNext = FlxG.sound.load(AssetPaths.Next__ogg);
|
||||||
|
|
||||||
// Misc
|
// Menu Selecter
|
||||||
_menuOption = 0;
|
|
||||||
_gel = g;
|
|
||||||
|
|
||||||
_sprSelect = new FlxSprite(0, 0, AssetPaths.tmpSelect__png);
|
_sprSelect = new FlxSprite(0, 0, AssetPaths.tmpSelect__png);
|
||||||
add(_sprSelect);
|
add(_sprSelect);
|
||||||
|
|
||||||
|
// Gel Boxes
|
||||||
|
_sprEmotion = new FlxSprite(26, 51, AssetPaths.tmp24__png);
|
||||||
|
_sprEmotion.visible = false;
|
||||||
|
add(_sprEmotion);
|
||||||
|
|
||||||
|
_sprInteraction = new FlxSprite(111, 78, AssetPaths.tmp24__png);
|
||||||
|
_sprInteraction.visible = false;
|
||||||
|
add(_sprInteraction);
|
||||||
|
|
||||||
|
_tmpText = new FlxText(_sprInteraction.x, _sprInteraction.y, 0, "X", 8);
|
||||||
|
add(_tmpText);
|
||||||
|
|
||||||
// DEBUG
|
// DEBUG
|
||||||
FlxG.watch.add(this, "_menuOption", "Menu Index");
|
FlxG.watch.add(this, "_menuOption", "Menu Index");
|
||||||
FlxG.watch.add(_sprSelect, "x", "Selection X");
|
|
||||||
FlxG.watch.add(_sprSelect, "y", "Selection Y");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override public function update(elapsed:Float):Void
|
override public function update(elapsed:Float):Void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user