port of lodev.org raycaster to haxe