protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); device = graphics.GraphicsDevice; backgroundTexture = Content.Load <Texture2D>("gamebg"); screenWidth = device.PresentationParameters.BackBufferWidth; screenHeight = device.PresentationParameters.BackBufferHeight; foregroundTexture = Content.Load <Texture2D>("foreground"); SetUpPlayers(); armyTexture = Content.Load <Texture2D>("army2"); Grenade gre = new Grenade(); GrenadeBuilder grenade = new GrenadeBuilder(gre); grenade.build(); Rocket roc = new Rocket(); RocketBuilder rocket = new RocketBuilder(roc); rocket.build(); playerScaling = 40.0f / (float)armyTexture.Width; }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); device = graphics.GraphicsDevice; backgroundTexture = Content.Load<Texture2D>("gamebg"); screenWidth = device.PresentationParameters.BackBufferWidth; screenHeight = device.PresentationParameters.BackBufferHeight; foregroundTexture = Content.Load<Texture2D>("foreground"); SetUpPlayers(); armyTexture = Content.Load<Texture2D>("army2"); Grenade gre = new Grenade(); GrenadeBuilder grenade = new GrenadeBuilder(gre); grenade.build(); Rocket roc = new Rocket(); RocketBuilder rocket = new RocketBuilder(roc); rocket.build(); playerScaling = 40.0f / (float)armyTexture.Width; }