How to draw a line as Amazing Wire game?

Hi bros,

I’m making a interesting game, but I have a problem in drawing line as Amazing Wire when you touch on screen ?
Could you please give me some suggestion to do it ?

https://play.google.com/store/apps/details?id=com.nopowerup.amazingwire

Thanks,

There are examples in the cpp-tests’s DrawPrimitivesTest which got some Bezier line drawings … Have a look at that, you may find what you’re looking for.

1 Like

Thank for your suggestion.
But I want to attach physics body to that lines…
The game below is exactly what I want to do - generate waves to surf just by touching the screen
Please help !!
http://www.supersmithbros.com/index.php/games/soaper-coaster

Seems a little different to your original question?

Anyway

these might help


http://www.sideroller.com/wck/?f=6
http://google.github.io/liquidfun/