Same Click Controls as per previous (inside or outside OctoGon in Canvas area)
This is an error (not what I was desiring when I programmed it). But I think the effect is pretty cool. The Vector Rays appear
to dance around (over and under) the OctoGon onMouseDown -- inside and
outside the Octogon. At this point, I have no idea how this was
achieved.
Later, on retrospect, what is happening is that the bottom rays are
shooting off the canvas; and so, appear to be covered by the OctoGon,
but in reality they aren't. Having reached the end of the canvas,
the graphics end. Otherwise, it would be easier to tell what is
happening. Perhaps a good reason to code on a large canvas.
Still, a nice illusionary effect. I'll have to try and remember it should a application ever arise.
Previous Brett Code
Index Next in Series
OctoWars Project
Copyright © 2013 Brett Paufler