Instance vs Static Properties

Recently I’ve had the opportunity to work with others on a new game. In that period I noticed sometimes concepts can be lost over time such as Instance vs Static properties. Today, I wanted to provide a brief interpretation of the differences, starting with...

Struct Init

Recently, I learned of a new metadata tag in Haxe that allows you to get the flexibility of structs with the power of classes. That’s the power of Struct Init. Let’s talk about how to use it, starting now.   The Metadata Tag If you haven’t used...

Advanced Enums

Hey all, as promised we are continuing on our use of Enums in Haxe. To read the previous post, you can find it here. Now, let’s get into it. What Are Advanced Enums As mentioned before Enums can help you better represent important types in your code. For...

Haxe Build Macro Basics

Hope you’re having a great day. Today, we’re getting into the nitty-gritty of Haxe black magic, aka Macros. But, let’s describe what macros allow you to do in Haxe. Power Of Macros Macros allow you to write code that generates code. That’s...

HaxeFlixel – Fix Overlap Not Registering

Hey all, here’s a quick tip on how to fix an issue with your hitboxes in Flixel. Let me know if you’ve heard this one before. The Problem Have you ever heard of an issue where you’re working on your game and after your character moves outside the...

HaxeFlixel – Screen vs World Position

Hey all, today we have a simpler post on the difference between world position and screen position in HaxeFlixel. Note, these can apply across game engines. Let’s get into it, as they both have theiru ses. Let’s start with World Position. World Position...