And this is my exporter for PhysicsEditor for Defold:
{% for body in bodies %}{% for fixture in body.fixtures %}{% for polygon in fixture.polygons %}shape_type: TYPE_HULL{% for point in polygon %}{% if not forloop.first %}{% endif %}
data: {{point.x}}
data: {{point.y}}
data: 0{% endfor %}
{% endfor %}{% endfor %}{% endfor %}
Actually, It’s my first project made by Defold.
Actually, I’m an Anxiety patient. My brain hurts everyday and thinking about death and madness all the time…
BUT I love computer I love programing I love Defold I love my life and I love all you guys.
Man I Really miss my old day working on computers and working great so everyone takes proud in me.
Lord please tell me what to do.
Hey all,
Someone bugged me on Github a few days ago, so I took a bit and fixed some issues with the polygon editor. To be honest I’m not sure how it ever worked! It’s amazing what I didn’t know when I originally made this.
Fixed it constantly having errors when you created vertices…
Fixed concave vertices not getting set back to white when they cease to be concave.
Hacked in native file dialogs on Linux using Zenity, so it can be usable on Linux.
It works on my machine: Linux Mint 20.1, with Zenity installed, but no guarantees that it works for everyone.
Added a fallback so you can still save polygons into the application folder on Linux if Zenity doesn’t work.
Made the message alerts actually last long enough to read them.
Added a readme with a screenshot to the github repo.
@britzl Awesome, thanks! I will look forward to that.
I made a couple other little tweaks today, made the snap increment adjustable, etc.
While my enthusiasm for this is active, are there any other feature requests or bug fixes that I should look at? Anything that would change the editor from Pointless --> Useful?