Sunday, July 12, 2009

Worm Movement

I've been working on making the worms follow your finger as it drags along the screen. This will be used in predator mode to attack or retreat. So far, I've used the vector angle of the normalized touch point (assuming each worm is the origin) to rotate worms, then moved them in a straight line to the destination. This works, but it seems a bit choppy. I need to come up with a way for them to smoothly follow paths.

I've also made some tweaks to improve collision detection efficiency. This helps a lot with large worm counts.

This game is sure taking me a while to finish. Hopefully I'm getting close by now.

No comments:

Post a Comment