/// <summary> /// LoadContent will be called once per game and is the place to load /// all of your content. /// </summary> protected override void LoadContent() { // Create a new SpriteBatch, which can be used to draw textures. spriteBatch = new SpriteBatch(GraphicsDevice); // TODO: use this.Content to load your game content here dwaynet = this.Content.Load <Texture2D>("Dwayne Angry Face"); bulletT = this.Content.Load <Texture2D>("Bullet"); diamondt = this.Content.Load <Texture2D>("Diamonds"); escp = this.Content.Load <Texture2D>("Escp"); shopt = this.Content.Load <Texture2D>("shop"); dpadt = this.Content.Load <Texture2D>("dpad"); font = this.Content.Load <SpriteFont>("SpriteFont1"); gui = new UI(font, bulletT, shopt, diamondt, dpadt, wallet); gui.show(); font = Content.Load <SpriteFont>("SpriteFont1"); font1 = Content.Load <SpriteFont>("SpriteFont2"); shootEffect = Content.Load <SoundEffect>("pm_ag_1_2_abstract_guns_281"); gameMusic = Content.Load <SoundEffect>("Bakugan - Aquos Arena"); musicInstance = gameMusic.CreateInstance(); dwayne = new Dwayne(dwaynet, bulletT, shootEffect, this.Content); largefont = Content.Load <SpriteFont>("LARGEFONT"); for (int x = 0; x < 3; x++) { UB[x] = this.Content.Load <Texture2D>("UB " + (x + 1)); } URateT = this.Content.Load <Texture2D>("URate"); //LoadLevel(); LoadOverWorld(); }
public void ResetGame() { dwayne = new Dwayne(dwaynet, bulletT, shootEffect, this.Content);; levelIndex = 1; LoadOverWorld(); gui.score = 0; curretnUB = 0; for (int x = 0; x < 2; x++) { upgradeable[x] = true; cost[x] = 10; } wallet.Reset(); }