Skip to content

Commit

Permalink
Add Readme and screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrams committed Apr 13, 2021
1 parent 4ce555a commit 0d092ca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Defold Polygon Editor

Since [it's possible to use convex polygon collision shapes with Defold](https://forum.defold.com/t/does-defold-support-only-three-shapes-for-collision-solved/1985), 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).
- Open and save polygon files.
- Uses [Def-Diags](https://github.com/andsve/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 5-pixel increments.

[alt text](https://github.com/rgrams/defold_polygon_editor/screenshot.png "Editor screenshot")
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0d092ca

Please sign in to comment.