Game Development Reference
In-Depth Information
What just happened?
The
Block
object is very simple. We just need its values for
_width
and
_height
whether it's a gap or not, so we can properly run collision detection with these objects.