Hello. I’m looking for a tool that allows me to draw any kind of shapes, and than export it’s coordinates in a way that can be used in Corona.
I don’t need a level editor. Maybe if there was a photoshop plugin that would be great.
Thanks.
Hello. I’m looking for a tool that allows me to draw any kind of shapes, and than export it’s coordinates in a way that can be used in Corona.
I don’t need a level editor. Maybe if there was a photoshop plugin that would be great.
Thanks.
What about using Inkscape or something else that produces SVG - then process this to produce lua tables with coordinates ?
Or you could code it yourself with Corona? You could hack something up in an hour or 2 to 4, I’m sure.
Actually, all you need to do is build a table of points in the format {x,y,x,y,x,y,x,y,…} and you can render it as a line, polygon or even use it as a physics body outline. There are conditions with the polygon and physics in that they can’t self-intersect (cross over themselves) but other than that you would only need to draw the line. graphics.newOutline() can generate an outline from an image which has transparency.
What about using Inkscape or something else that produces SVG - then process this to produce lua tables with coordinates ?
Or you could code it yourself with Corona? You could hack something up in an hour or 2 to 4, I’m sure.
Actually, all you need to do is build a table of points in the format {x,y,x,y,x,y,x,y,…} and you can render it as a line, polygon or even use it as a physics body outline. There are conditions with the polygon and physics in that they can’t self-intersect (cross over themselves) but other than that you would only need to draw the line. graphics.newOutline() can generate an outline from an image which has transparency.