Letting the user draw a Polygon Body and Image

Posted by Siddharth on Game Development See other posts from Game Development or by Siddharth
Published on 2012-12-18T16:41:32Z Indexed on 2012/12/19 5:14 UTC
Read the original article Hit count: 162

In my game, I want to provide the user with a drawing feature.

By free hand drawing, the user creates a polygon shape. Then, in my game implementation, I have to create a body for the found vertices and generate an image based on that polygon shape.

My problem is how to create an image that matches the user-provided vertices. I've heard that cocos2d has something called Image Masking. I don't understand how I could implement it in AndEngine. Could someone help?

© Game Development or respective owner

Related posts about sprites

Related posts about box2d