Apos.Camera

Camera library for MonoGame.

Discord

Documentation

Build

NuGetNuGet

Features

  • 2D and 3D
  • Virtual viewport (useful for split screens)
  • Parallax and parallax zooming

Usage samples

IVirtualViewport defaultViewport = new DefaultViewport(GraphicsDevice, Window);
Camera camera = new Camera(defaultViewport);

camera.SetViewport();
spriteBatch.Begin(transformMatrix: camera.View);
// Your draw code.
spriteBatch.End();
camera.ResetViewport();

For a more practical sample project, check the example code.

Other projects you might like

Edit this page on GitHub