I’ve just posted a tutorial on creating a 2D camera for XNA. The XNA2dCamera class provides a clean, simple interface to camera functionality in 2-D games. It handles translation, rotation, and scaling/zoom with ease. Most importantly, the class is graphics-engine agnostic, so it can be used for platformer engines, puzzle game engines, and isometric engines.
The full contents of the XNA2dCamera class are on the last page of the tutorial.
Read the XNA 2D Camera tutorial.
Tags: 2d, c#, game programming, graphics, programming, sample code, tutorial, xna




Leave a Reply