I have searched both this forum and sifted through all the nice information available, but haven't been able to find an answer to this:
What exactly is the algorithm used when Rockford pushes a Boulder (in the C64 version I of BoulderDash)?
I suspect it has something to do with the random routine used to grow amoeba, but can't seem to get satisfactory results.
Pushing rocks
Moderator: Admin
- - check if the boulder is in falling state (falling boulders can't be pushed)
- check if there is empty space to push the boulder
- a random number determines if the boulder is pushed or not
Code: Select all
r:=random(8); //random number in range 0..7
if r=0 then pushboulder;