The Dink Network

Reply to Re: brain 9 sprites in bottom right corner

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
August 2nd 2024, 08:33 PM
death.gif
Seseler
Peasant He/Him Heard Island And Mcdonald Islands
 
My possibly completely wrong guess from cursory reading of the source code is that it is because of the screen-border checks on pill_brain.


    if (spr[h].y > (playy - 15))

    {
        changedir(9,h,spr[h].base_walk);
    }         

    if (spr[h].x > (playx - 15))

    {
        changedir(1,h,spr[h].base_walk);
    }         

    if (spr[h].y < 18)
    {
        changedir(1,h,spr[h].base_walk);
    }         

    if (spr[h].x < 18) 
    {
        changedir(3,h,spr[h].base_walk);
    }      


So, a sprite near right edge it will go down-left and sprite near bottom edge it will go up-right.