Jump to content
  • entries
    4,956
  • comments
    2,719
  • views
    1,809,786

Nincompoop for August 4, 2021


atari2600land

150 views

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.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...