public Level(World world, int? stage) { _world = world; _player = new Player(_world, stage.HasValue ? _world.GetStageStartIndex(stage.Value) : _world.PlayerSpawnIndex); _gameClock = new GameClock(); }
public PlayerRenderer(Player player) { _player = player; _camera = new Camera2D((_player.RoomIndex + Vector2i.One * 0.5f) * Room.Size * Tile.Size); }
public PlayerController(Player player) { _player = player; }