Click HERE to go back.

December 2025

This is acting as a bit of a devlog for the game I'm working on. Currently, it doesn't have a name, but it is based on Punto Banco Baccarat.

Why Haxeflixel?. Haxe, just in terms of syntax, is probably one of my favorite programming languages. It gives you flexibility, but also allows for strong typing. Additionally, I like classes, and objects.

Like LÖVE, or Phaser, you get a "load", "update", and "draw" functions and that's really it. Combined with Haxe's syntax, and Haxeflixel being the successor of Flixel, the ActionScript framework that I used many years ago, with many examples and an active community, it was a bit of an obvious choice.

I have tinkered in Haxeflixel game development before but this will be the firs time I've really pursued a smaller scale project, one that I believe I can finally ship. Below is an example of what a class in Haxeflixel may look like for a card game.


// Card.hx example
package;

import flixel.FlxSprite;

enum CardState
{
  InShoe;
  InHand;
  InDiscard;
}

class Card extends FlxSprite
{
  public var state:CardState;
  public var suit:String;
  public var value:Int;

  public function new(x:Float, y:Float, data:Dynamic):Void
  {
    super(x, y);
    state = CardState.InShoe;
    suit = data.suit;
    value = data.value;

    var id:Int = data.id;
    loadGraphic('assets/images/cards/$id.png');
  }
}
      

"Baccarat with a twist", akin to how Balatro is "Poker with a twist", is what I'm working on. It won't be exactly the same, but there are going to be some similarities, the way other games in the "pick 1 of 3" or deckbuilder genres of games in the last couple years have looked similar. What prompted it was, admittedly, the film Ballad of a Small Player. Baccarat is quite simple, particularly Punto Banco. You're along for the ride, and if I can add a bit of spice to that metaphorical ride, then perhaps it could turn into something fun.