Dispatching Signals with HaxeFlixel

ShaunHaxe0 Comments

Haxe C++ target

When the play button is pressed, I don’t want it to switch state in the context of the button like seen below, but in a function contained in the Main Menu state, this gives me more control of other components, …

Javascript – Parsing float

ShaunJavascript0 Comments

Javascript development

Javascript

Parse Float with commas

When dealing with calculations around pricing, it is important to ensure when usingĀ parseFloat in JavaScript that it doesn’t malform the result.

The function below checks your number if it contains commas, strips them out, …