Skip to content

Instantly share code, notes, and snippets.

View gamedevsam's full-sized avatar

Samuel Batista gamedevsam

View GitHub Profile
@gamedevsam
gamedevsam / Events
Last active December 16, 2015 03:29
A super simple string based event system.
package ;
import flixel.FlxG;
import flixel.util.FlxPool;
import haxe.ds.ObjectMap;
class Events
{
public static function addHandler(object:Dynamic, event:String, handler:Dynamic -> Void, permanent:Bool = false)
{