Talk:SuperMercutio

From Robowiki
Revision as of 10:01, 22 December 2010 by Chase-san (talk | contribs) (comment :))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Movement

In addition to being a demonstration for waves, this robot also showcases a more advanced version of my melee micro Mercutio's movement. It is different in that it is a one-vs-one movement, and it uses waves instead of looking at its own previous positions. That said, I think if you take a look at the way this bot moves you will see why I like Mercutio so much. I've always thought that its movement looked very graceful, and much more interesting than most movements. I like the way it seems to go right up to the other robot's bullets, but usually still manages to avoid being it. It is effective enough to beat both linear and head-on targeters without firing, and it is good enough to give advanced microbots a decent fight despite its very mediocre gun. The cool thing about the micro version of Mercutio though, is that it does manage to dodge bullets somewhat effectively in melee instead of just cowering in a corner.--CrazyBassoonist 16:27, 20 November 2010 (UTC)

I think it would be better to simplify the design somewhat. Also this is more of a minimal risk movement then an anti-gravity movement (AG uses directional vectors or some such, and repulse away from danger areas). It might be simpler to have it move away from a line segment projected far enough ahead of the bullet the robot would have enough time to dodge, and far enough behind that it will not drive into it (doesn't have to be exact), using Line2D.ptSegDistSq(). This should simplify the movement to something a new programmer would have an easier time understanding. Also since this is a sample bot, you should expand some of the more convuluted lines of code, such as the movement code, make everything really easy to read. Avoid ternaries and such. — Chase-san 08:01, 22 December 2010 (UTC)