Defold Polygon Editor

Thanks Andreas, that’s good info. I can’t wait (!!!) until Native Extensions are working on windows so I can start messing around with them.


I made some significant usability improvements to this in the last couple days. I started using it for my asteroids game and realized it was almost unusable for small-scale stuff and had a bunch of pretty bad bugs, so I made it much better.

  • Zooming is fixed to be proportional instead of additive so it works nicely at any zoom level.
  • The vert and edge sprites scale with zoom so they remain the same screen-size no matter what.
  • Mouse collision detection for dragging verts is also zoom-independent now.
  • Fixed bugs with multiple verts appearing hovered.
  • Made verts actually snap to the grid. (before it was just the cursor, the vert maintained its offset)
  • Made coordinate display match the vert’s pos when dragging.
  • Added checking if the polygon is concave! It will highlight any verts that are an issue.
7 Likes