map 4 directions in handloose

This commit is contained in:
2022-01-24 12:59:59 -07:00
parent 8abb4cbcbb
commit 2fd49f80ff
2 changed files with 28 additions and 7 deletions

View File

@@ -7,6 +7,8 @@ import flixel.util.FlxColor;
import flixel.input.gamepad.FlxGamepad;
import flixel.text.FlxText;
import haxe.ds.Option;
import kiss.Prelude;
import kiss.List;
using flixel.util.FlxSpriteUtil;
@@ -36,13 +38,6 @@ class TypingState extends FlxState
return spr;
}
override public function update(elapsed:Float)
{
super.update(elapsed);
var lastId = getFirstInputId();
}
function getFirstInputId():Option<Int> {
// Important: can be null if there's no active gamepad yet!
var gamepad:FlxGamepad = FlxG.gamepads.lastActive;