Beispiel #1
0
 public static void DrawRectangle(SpriteBatch sb, Rectangle rec, int thickness, Color color, Camera cam)
 {
     Vector2 pos = cam.Normalize(new Vector2(rec.X, rec.Y));
     Rectangle newRec = new Rectangle((int)pos.X, (int)pos.Y, rec.Width, rec.Height);
     DrawRectangle(sb, newRec, thickness, color);
 }
Beispiel #2
0
 public CameraManager(Game game)
     : base(game)
 {
     _camera = new Camera(new Vector2());
 }