Game

Game dev problem solving

Published on 2026-05-30

This post continually gets updated as I encounter new and interesting problems

I'm currently working on a "Final Fantasy Tactics-like" game and its presented some fun and interesting challenges. I know I'm not the first to come across these challenges, but its the first time I've had to take them on.

UI

Haxeflixel, the engine that I'm using, does not have its own "UI system". It is possible to incorporate Haxe UI, but searching through the Haxe Discord it seems that a lot of folks have had issues with it.

So, what I am having to do is make my own UI system, to a degree, based on web component-like "Cards".

package;
 
import flixel.FlxSprite;
import flixel.group.FlxSpriteGroup;
import flixel.text.FlxText;
import flixel.util.FlxColor;
import flixel.util.FlxSpriteUtil;
 
class MenuCard extends FlxSpriteGroup
{
	public var background:FlxSprite;
	public var titleText:FlxText;
 
	public function new(X:Float = 0, Y:Float = 0, Width:Int, Height:Int, ?Title:String, ?TitleColor:FlxColor = FlxColor.WHITE)
	{
		super(X, Y);
 
		background = new FlxSprite(0, 0);
		background.makeGraphic(Width, Height, 0x99000000);
		FlxSpriteUtil.drawRect(background, 0, 0, Width, Height, FlxColor.TRANSPARENT, {thickness: 1, color: FlxColor.GRAY});
		add(background);
 
		if (Title != null)
		{
			titleText = new FlxText(10, -5, Width - 20, Title, 16);
			titleText.setFormat(Registry.DEFAULT_FONT, 16, TitleColor, LEFT, OUTLINE, FlxColor.BLACK);
			titleText.active = false;
			add(titleText);
		}
	}
}

Its nothing overly complicated, and it will go through some iteration as the game keeps going on, but having to do develop things like this from scratch is rewarding, but also seems there's a bit of a gap missing. Of course, games have their own fancy UI, menus, and player notifications but it does make me think for Haxeflixel there is a "Haxeflixel-specific component library" that could be created, in lieu of having to fight something to make something else work.

World Map

As the game I am working on can be played with keyboard and mouse but is focussed on controller players, I wanted a world map akin to Final Fantasy Tactics, but with the interaction of Helldivers 2.


There are two issues here. One, the Player's cursor and if the player presses a direction on the d-pad which node should it take them to. Once they are on a node (MapLocation) it should move the Player in a nearest neighbor fashion. This is still being implemented but it was a neat problem to tackle, research, and figure out.