Please share...

Game coding essentials: Learn the essential and fundamentals of game coding

If you want to learn the essentials of game coding in a platform/language neutral way then this is the category for you.
  • Asteroids irregular polygon collision detection

Collision detection: Irregular polygons (Asteroids) using the crossing number algorithm

Please share...

Testing for collision with an irregular polygon is the exact same problem as if you were doing collision detection for an Asteroids game clone. If you don’t know what Asteroids is you can learn about […]

  • Nearest neighbour collision detection

Collision detection: Neighbour checking

Please share...

This method allows us to only check objects that are in the approximate same area as each other. It can be achieved by checking which neighbourhood of our game a given two objects are in, […]

  • Radius overlap collision detection

Collision detection: Radius overlap method

Please share...

This method is also checking to see if two shapes intersect with each other, but as the title suggests, it does so using circles. There are advantages and disadvantages compared to other methods.

The radius overlap […]

  • Rectangle intersection collision detection

Collision detection: Rectangle intersect method

Please share...

Rectangle intersection detection collision detection is really straightforward. We draw an imaginary rectangle; we can call it a hitbox or bounding rectangle, around the objects we want to test for collision. Then, test to see […]