My brother and I have been playing this game called Battlelore a lot lately. One thing that can be kind of tricky in the game is figuring out whether or not your archers have line-of-sight on their targets.
Since I had recently bought a copy of Flash CS3, I wanted to take some time and learn how to use it. So, after taking a couple of basic tutorials and doing a lot of searching on the internet to figure out how to write ActionScript, I put together this thing:
If you click on one of the green hexes, it will turn red to mark that hex as having an obstruction in it. All of the hexes that don’t have line of sight then turn gray.
It’s still pretty buggy, and it gets really slow if too many hexes are obstructed, but it’s mostly working, and I’m pretty proud of it.