You should start to look at logging for debugging especially full screen stuff.
Track the Position X Y and all other Slime Information. Also see if you can track inside the TestCollisionSlimes() function.
// You can get hundreds of text files or //you could make your own logging system that stores the info onto a list for later output// remark out the following line to stop loggingdefine JTDEBUG 1static int numDebug = 1000;.....#ifdef JTDEBUGchar show[80];sprintf(show, "%d%s", numDebug++, "SlimInfo.txt");FILE *fp = fopen(show, "wt"); fprintf(fp,"Slimenum :%d X:%d Y:%d \n", a, Evasion::Slimes[a].X + 9, Evasion::Slimes[a].Y + 9 ); fclose(fp); // debug string #endif
For the infinite loop, I think it's the case where the slime gets out of the Area and can't get back in.
ZoomBoy
Developing a iso-tile 2D RPG with skills, weapons, and adventure. See my old Hex-Tile RPG GAME, character editor, diary, 3D Art resources at
Check out my web-site