02-17-2007, 07:41 PM
joeb wrote: Why ugly?
It's commented which is my definition of pretty vs ugly.
Well, ideally it would be modularized a bit more. Right now, it's the
stuff everything into one function(or in this case 4 functions) type approach, which makes it hard to read, and difficult to modify and debug.
But sometimes you never really can get away with the
idealelegant approach, and have to go with real-world.
The nice thing it, I was successfully able to copy and modify this code for use with the new Troll monster fairly easily. Now I have a troll who runs along bricks *and* climbs ladders when he comes to them -- something I was previously afraid might be very hard.

