Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.63 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.63 KB

Apos.Camera

Camera library for MonoGame.

Discord

Documentation

Build

NuGet NuGet

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