//Initailizes all non-drawable content protected override void Initialize() { //Make the mouse visible this.IsMouseVisible = true; //Initializes controller object controller = new KeyboardController(this); //Registers Commands for controls controller.RegisterCommand(); ICommand reset = new ResetCommand(this); reset.Execute(); base.Initialize(); }
//Initailizes all non-drawable content protected override void Initialize() { //Make the mouse visible this.IsMouseVisible = true; //Initializes controller object controller = new KeyboardController(this); //Registers Commands for controls controller.RegisterCommand(); //Loads sprite content for link LinkSpriteFactory.Instance.LoadAllTextures(Content); //Initializes items objects Items = new List <IItem>(); ItemLoader = new ItemLoadAllContent(this); //Initializes enemy and npc objects Enemies = new List <INPC>(); EnemyLoader = new EnemyLoadAllContent(this); //Initializes blocks object Blocks = new List <IBlock>(); BlockLoader = new BlockLoadAllContent(this); //Initializes list position ICommand reset = new ResetCommand(this); reset.Execute(); base.Initialize(); }