pingus-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pingu stuck and collision code


From: Gervase Lam
Subject: Re: Pingu stuck and collision code
Date: Fri, 20 Sep 2002 00:41:46 +0100

bool
Bridger::way_is_free()
{
  return (rel_getpixel(4,2) ==  Groundtype::GP_NOTHING)
    && !head_collision_on_walk(4, 2)
    && !head_collision_on_walk(8, 4);
}

The above code is called to check whether the Bridger can walk up on to 
the brick that has just been put down.  The checking for (+4, +2) is 
obvious.  But why is there a check for (+8, +4)?

Thanks,
Gervase.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]