Ejemplo n.º 1
0
 public PlayerRenderer(Player player)
 {
     _player = player;
     _camera = new Camera2D((_player.RoomIndex + Vector2i.One * 0.5f) * Room.Size * Tile.Size);
 }
Ejemplo n.º 2
0
 public void DrawFullscreen(Texture2D texture, Camera2D camera, Color color)
 {
     this.Draw(texture, camera.GetArea(texture.GraphicsDevice), null, color, 0f, Vector2.Zero, SpriteEffects.None, 0f);
 }