firstPoint = shape_point(coolShape,0)
shape_size(shape) - 1
is the index of the last point in shape. For example, if a shape has 3 points in it, they will be at indices 0, 1 and 2… there is no index 3!draw_primitive_begin
we specify the pr_trianglelist
type to let GameMaker know we’re going to give it sets of 3 points that form triangles. There’s other ways to organize our points, but this is the only general-purpose one that can be used to draw ANY SHAPE.