Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Under the Hood
#8
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
ideal
elegant 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.
Reply


Messages In This Thread
Under the Hood - by VernJensen - 02-16-2007, 09:21 PM
Re: Under the Hood - by joeb - 02-16-2007, 11:15 PM
Re: Under the Hood - by joeb - 02-16-2007, 11:23 PM
Re: Under the Hood - by Wingy - 02-17-2007, 02:55 AM
Re: Under the Hood - by aquaMat - 02-17-2007, 01:50 PM
Re: Under the Hood - by samskelton - 02-17-2007, 02:18 PM
Re: Under the Hood - by Wingy - 02-17-2007, 02:45 PM
Re: Under the Hood - by VernJensen - 02-17-2007, 07:41 PM
Re: Under the Hood - by VernJensen - 02-17-2007, 07:49 PM
Re: Under the Hood - by Wingy - 02-17-2007, 08:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)