Nincompoop for August 4, 2021
I fixed a major bug I wanted gone. The problem turned out to me omitting something. The problem was here:
if ((findingaspot==1) && (levelprogress<14)) itemx=(random_number % 18)+2, itemy=(random_number % 8)+2; lookitup2=((itemy-2)*20)+(itemx-1); if (whichtile2==1) findingaspot=1; if ((whichtile2==0) && (findingaspot==1)) findingaspot=0, itemx=itemx*8, itemy=itemy*8;
It was looking up the spot to see if the item was okay to place ANY TIME. Thus, if itemy was 16, it would turn out to be 1 and thus I couldn't get anything on the top row. And if it was on the top row, it quickly flashed and changed again. The solution?
if (findingaspot==1) lookitup2=((itemy-2)*20)+(itemx-1);
If findingaspot is 1, that means it's in the process of finding a suitable place to put the light poop. There were some things going on weirdly while coding, but I haven't seen them pop up as I kept testing, so I fixed them. I deleted the in-game music because it was crappy (no pun intended). I also made a little end of level song. The file on the site now makes it go back to the title screen once it reaches the end of level 2. So it's like a demo. And now I can go back to work on the game. I will probably do so tomorrow.
0 Comments
Recommended Comments
There are no comments to display.