Camera: use 1920x1080 / 4 explicitly.

This commit is contained in:
Colin McMillen 2020-07-15 11:20:29 -04:00
parent d926d23b3f
commit 800909394c

View File

@ -6,7 +6,7 @@ using System;
namespace SemiColinGames { namespace SemiColinGames {
public class Camera { public class Camera {
// Screen size in pixels is 1920x1080 divided by 4. // Screen size in pixels is 1920x1080 divided by 4.
private Rectangle bbox = new Rectangle(0, 0, 480, 270); private Rectangle bbox = new Rectangle(0, 0, 1920 / 4, 1080 / 4);
public int Width { get => bbox.Width; } public int Width { get => bbox.Width; }
public int Height { get => bbox.Height; } public int Height { get => bbox.Height; }
public int Left { get => bbox.Left; } public int Left { get => bbox.Left; }