Gamemaker Studio 2 Gml -
But the magic? The magic lives in the .
GML is not a polite language.
function Vector2(_x, _y) constructor { x = _x; y = _y; static Add = function(v) { return new Vector2(x + v.x, y + v.y); } } Wait. Constructors? Static methods? When did that happen? gamemaker studio 2 gml