Collision Detection Done

The first and most difficult step in making a game is the collision detection. I didn’t want to make this game too grid-based so I had to write methods for the player to detect if the amount of space he normally moves would put him in illegal territory. I have a method for each direction of movement and separate methods for detecting inside and outside boundaries. I have a lot of methods that start with “calc” though, so I should probably rename them eventually.

Leave a Comment

Name: (Required)

E-mail: (Required)