protected override void Initialize() { map = new Map(this.Content); hero = new Hero(Settings.TILE_WIDTH, Settings.TILE_HEIGHT, map.StarterTile); dungeonController = new DungeonController(map, hero); camera = new Camera2D(); InputController.Instance.AddControllable(hero); InputController.Instance.AddControllable(camera); base.Initialize(); }
public PhisicsController(Map map) { this.map = map; }
public DungeonController(Map map, Hero hero) { this.map = map; this.hero = hero; }