How To Create Scenes In HaxeFlixel

How To Create Scenes In HaxeFlixel

Creating different scenes is fundamental to creating any large game. A scene allows you to logically separate the concerns of each of your different game mechanics that do not mix. For example, a menu doesn’t usually appear while you’re playing the game...
JavaScript Event Listeners

JavaScript Event Listeners

Event Listeners are a core part of using JavaScript in the browser and in some cases the server. So, what is an Event Listener? What Is An Event Listener? An event listener is a JavaScript function that listens to when a specified event is emitted/occurs on a webpage;...
HaxeFlixel: How To Lock Your UI

HaxeFlixel: How To Lock Your UI

HaxeFlixel is a great engine used for making 2D cross-platform games. Each engine has its own way of doing things. So, how is the UI position handled in Flixel? Have you ever run into an issue where your game UI moves out of place in Flixel? There is a simple fix for...
How To Change Output Names In Haxe

How To Change Output Names In Haxe

Have you ever had an issue where the name of your class doesn’t match up with the output in Haxe? I know I have, and there is a simple fix for this issue, which will help you when creating libraries, APIs, and bindings to other libraries in separate languages....
Haxe: What Are Anonymous Structures?

Haxe: What Are Anonymous Structures?

In Haxe, anonymous structures are similar to objects in JavaScript. You use them when you need to create an object quickly. They are lightweight objects that still respect the Haxe type system. Here’s an example: This file contains bidirectional Unicode text...
Haxe Conditional Compilation Saves The Day

Haxe Conditional Compilation Saves The Day

Hey everyone, here we are again with a new post on Haxe. This one is a follow-up on the previous post. This one concerns conditional compilation. Now, let’s get into the specifics and how it works. For more information on conditional compilation, you can find it...