good day,
is there way bounding points of
created graphics in phaser once drawn in canvas ?
var mask = game.add.graphics(0, 0); // point 0 mask.beginfill(0xff3300); mask.linestyle(1, 0xffd900); // draw shape mask.lineto(0, 10); //point 1 mask.lineto(10, 10); //point 2 mask.lineto(10, 0); //point 3 mask.endfill();
like point 0, point 1, point 2, point 3;
im wondering if there easy way it?
Comments
Post a Comment