ABSTRACT

There are many forms of collision detection used in game programming, but for 2D games using sprites, which are basically squares, one of the most reliable is a box check, which relies on knowing the position of the objects we are testing, and then their height and width. These data are available to us based on a very simple check. There are still a last few details we really should add; we need to actually include some game rules, allow ourselves to actually be killed and detect game over when all our lives are gone. These game rules should really have been applied right away, but we were having too much fun so now we have to somehow squeeze them in. These last few things are tasks hopefully kept on our mental to-do list, and are important to making the game fun, but not actually a major part of the game mechanics.