Dispatching Signals with HaxeFlixel

ShaunHaxeLeave a Comment

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

ShaunJavascriptLeave a Comment

Javascript development


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, …