Skip to content

Apostolique/Apos.Camera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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