Defold Polygon Editor

A basic convex polygon editor that exports files for use with Defold.


If you would like to build a desktop version, you can find the source code here: https://github.com/rgrams/defold_polygon_editor


Since it's possible to use convex polygon collision shapes with Defold, but the Editor doesn't yet support creating and editing them, I wrote a little program(with Defold) to fill that gap. So you no longer have to make a text file and write in vertex coordinates, in counter-clockwise order, by hand!

It's very, very simple and unpolished. Here is a short list of features:

  • Load an image as a reference for your polygon (unscaled and centered at origin).
    • In web version, drag-and-drop a .png or .jpg image to load it.
  • Open and save polygon files.
    • Opening polygon files unavailable on web version
    • Uses Def-Diags for native file dialogs on Windows and Mac, and tries to use Zenity on Linux.
    • Can still save polygons in the application folder if none of those work.
  • Highlights convex (and therefore invalid) vertices in red.
  • Hold shift to snap vertices to an adjustable grid size.
StatusReleased
CategoryTool
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorRoss Grams
Made withDefold

Comments

Log in with itch.io to leave a comment.

(+1)

Wow simple to use and totally handy tool. Awesome work, thanks a lot! bookmarked.

Thanks! You're welcome.

Deleted 188 days ago
(+1)

This is a wonderful tool. I have it bookmarked and use it from time to time. Thank you so much!

(+1)

Thanks! Glad it's useful.