That's strange. It definitely works on my end. I wonder if you need to force the new .hx file to compile. Did you try removing the game from the "games-generated" folder?
Edit2: Just to double check, I downloaded a fresh copy of the extension and compiled the test project with it. It worked fine.
Edit: This is what the updated .hx file should look like starting at line 261:
/*
2015 - 10 - 26
*/
public static function velocityComponent( vel:Float, angle:Float, mode:Int ):Float
{
if ( mode == 0 )
return vel * Math.cos( angle * Math.PI / 180 );
else
return vel * Math.sin( angle * Math.PI / 180 );
}
// Return "angle" as used in launchVelocity.
// Intended purpose is to find an ideal angle from point A to point B
public static function aspectAngle( x1:Float, y1:Float, x2:Float, y2:Float ):Float
{
return -1 * Math.atan( ( y2 - y1 ) / Math.abs( x2 - x1 ) ) * 180 / Math.PI;
}
}
The original error was due to that last } being placed above the comment with the date (2015 - 10 - 26), which left the two public functions out of the class. I ran my test project again just to double check, and the blocks are compiling and returning appropriate values.
The un-updated version looks like this, with the } before the comment:
}
/*
2015 - 10 - 26
*/