-
-
Notifications
You must be signed in to change notification settings - Fork 102
Collision Series 2 2D Per Pixel Collision
Simon (darkside) Jackson edited this page Aug 21, 2020
·
8 revisions
Area | Submitted | Type |
---|---|---|
Games: 2D Graphics, Games: Collision | 5/24/2007 | Tutorial |
This tutorial details how to perform per-pixel collision detection in two dimensions. This tutorial builds on the previous tutorial in this series, Collision Series 1: 2D Rectangle Collision. Follow the steps in that tutorial before starting this tutorial.
In the previous example, you created a simple object avoidance game by using rectangle collision detection. The rectangles used were only an approximation of the blocks and person drawn into the textures. You may have noticed that the exclusive use of rectangles resulted in imprecise behavior for nonrectangular objects.
All content and source code downloaded from this page are bound to the Microsoft Permissive License (Ms-PL).
Download | Size | Description |
---|---|---|
PerPixelCollisionSample_4_0 | 0.04MB | Source code and assets for the Collision Series 2: 2D Per-Pixel Tutorial (XNA Game Studio 4.0) |
PerPixelCollisionSample_4_0.zip | 0.04MB | Source code and assets for the Collision Series 2: 2D Per-Pixel Tutorial (XNA Game Studio 4.0) |