{
case 1:
case 2: /* change direction to a random one */
sp.dir =rnd(8);
default: /* move in normal direction */
....
Updates delayed due to me catching the Starcraft2 Beta sickness (what a fantastic sickness to have...) and being in Hawaii. Finished converting object.c. Still blocked from the game loop due to not implementing moving Spheres of Annihilation. I need to fix a few more compile errors. This file got much simpler since I'm not using a linked list but a C# generic list now. I did enjoy finding the snippet above though. The smarter you are, the less likely the sphere is to change directions.
No comments:
Post a Comment