© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
L. Salin, R. MorrarGame Development with MonoGamehttps://doi.org/10.1007/978-1-4842-7771-3_3

3. Cameras and Layers

Louis Salin1   and Rami Morrar2
(1)
Cedar Park, TX, USA
(2)
San Leandro, CA, USA
 

There are a few improvements you can make to the game in terms of how you organize game objects into the game world. The game places objects directly on the screen by using screen coordinates to position objects and then simply renders the objects in place with no further transformation needed besides a simple scaling effect when some sprite objects are simply too big. While this works reasonably well for a simple game, it adds the complexity of bringing objects into ...

Get Game Development with MonoGame: Build a 2D Game Using Your Own Reusable and Performant Game Engine now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.