Game Development Math Recipes

  One of the most daunting aspects of game development for many people is the mathematics involved.  The following are a collection of recipes that go into detail on how to perform a number of common math related tasks.  Each example ships with at least one working demonstration application (written in JavaScript using EaselJS), with […]

Game Development Math Recipes Read More

GameDev math recipes: Collision detection using an axis-aligned bounding box part 2.

In a prior recipe, we looked at how to handle collisions using an axis aligned bounding box, but there was one major problem.  If our bounding box is axis aligned, how do we handle rotation?  As you can probably tell by gigantic spoiler of a rotating jet to our right, the answer is we resize […]

GameDev math recipes: Collision detection using an axis-aligned bounding box part 2. Read More

GameDev math recipes: Collision detection using an axis-aligned bounding box

Collisions are one of those things almost every game deal with eventually.  This is going to be a multi-part recipe on collision detection.  This part specifically explains what an axis aligned bounding box actually is, as well as how to detect if two such bounding boxes have collided.   Let’s start straight away with some […]

GameDev math recipes: Collision detection using an axis-aligned bounding box Read More

GameDev math recipes: Rotating one point around another point

It is quite common to want to rotate one point relative to another the location of another point.  This math recipe looks at exactly this process.   Just the math angle = (angle ) * (Math.PI/180); // Convert to radians var rotatedX = Math.cos(angle) * (point.x – center.x) – Math.sin(angle) * (point.y-center.y) + center.x; var […]

GameDev math recipes: Rotating one point around another point Read More

Interesting book coming soon: Learn Lua for iOS Game Development

  Looking for the perfect gift for the geek who has everything?  Well, Learn Lua for iOS Game Development is coming out just before Christmas , plus it’s on sale for 25 bucks.  ( What’s with pre-release books already being on sale??? ).     Alright, hundreds of computer texts are released every year, dozens […]

Interesting book coming soon: Learn Lua for iOS Game Development Read More

PlayStation Mobile SDK hits 1.0 release

After a fairly long beta, PlayStation Mobile 1.0 SDK has finally reached 1.0. The following is the full text of the official press release: Tokyo, November 20, 2012–Sony Computer Entertainment Inc. (SCE) today announced that it initiates the PlayStation®Mobile Developer Program which includes the official version of PlayStation®Mobile SDK*1 from today, in an effort to […]

PlayStation Mobile SDK hits 1.0 release Read More

Scroll to Top