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