public static Background CreateCreditsBackground(ContentManager content) { Texture2D creditsBackground = content.Load<Texture2D>("creditsBackground"); Rectangle backgroundRectangle = new Rectangle(0, 0, 1280, 800); Sprite creditsBackgroundSprite = new Sprite(backgroundRectangle, creditsBackground); Background credits = new Background(creditsBackgroundSprite); return credits; }
public static Background CreateBlackBackground(ContentManager content) { Texture2D blackImage = content.Load<Texture2D>("blackBG"); Rectangle blackRectangle = new Rectangle(0, 0, 1280, 800); Sprite blackSprite = new Sprite(blackRectangle, blackImage); Background black = new Background(blackSprite); return black; }
public static Background CreateBlueCastle(ContentManager content) { Texture2D blueCastleImage = content.Load<Texture2D>("BlueCastle"); Rectangle blueCastleRectangle = new Rectangle(200, 250, 200, 200); Sprite blueCastleSprite = new Sprite(blueCastleRectangle, blueCastleImage); Background blueCastle = new Background(blueCastleSprite); return blueCastle; }
public static Background CreateBattleBackground(ContentManager content) { Texture2D battleBackgroundImage = content.Load<Texture2D>("BattleBackground"); Rectangle backgroundRectangle = new Rectangle(0, 0, 1280, 800); Sprite backgroundSprite = new Sprite(backgroundRectangle, battleBackgroundImage); Background background = new Background(backgroundSprite); return background; }
public static Background CreateRedCastle(ContentManager content) { Texture2D redCastleImage = content.Load<Texture2D>("RedCastle"); Rectangle redCastleRectangle = new Rectangle(550, 250, 200, 200); Sprite redCastleSprite = new Sprite(redCastleRectangle, redCastleImage); Background redCastle = new Background(redCastleSprite); return redCastle; }
public static Background CreateLoserBackground(ContentManager content) { Texture2D loserImage = content.Load<Texture2D>("LoserBackground"); Rectangle loserRectangle = new Rectangle(0, 0, 1280, 800); Sprite loserSprite = new Sprite(loserRectangle, loserImage); Background loser = new Background(loserSprite); return loser; }
public static Background CreateGreenCastle(ContentManager content) { Texture2D greenCastleImage = content.Load<Texture2D>("GreenCastle"); Rectangle greenCastleRectangle = new Rectangle(900, 250, 200, 200); Sprite greenCastleSprite = new Sprite(greenCastleRectangle, greenCastleImage); Background greenCastle = new Background(greenCastleSprite); return greenCastle; }
public MonoGameRenderer() { this.creditsBackground = UIInitializer.CreateCreditsBackground(this.content); this.battleBackground = UIInitializer.CreateBattleBackground(this.content); this.background = UIInitializer.CreateBackground(this.content); this.blackBackground = UIInitializer.CreateBlackBackground(this.content); this.loserBackground = UIInitializer.CreateLoserBackground(this.content); this.RedCastle = UIInitializer.CreateRedCastle(this.content); this.BlueCastle = UIInitializer.CreateBlueCastle(this.content); this.GreenCastle = UIInitializer.CreateGreenCastle(this.content); this.RedButton = UIInitializer.CreateRedButton(this.content); this.GreenButton = UIInitializer.CreateGreenButton(this.content); this.BlueButton = UIInitializer.CreateBlueButton(this.content); this.GoBackButton = UIInitializer.CreateGoBackButton(this.content); this.FireballButton = UIInitializer.CreateFireballButton(this.content); this.FireShieldButton = UIInitializer.CreateFireShieldButton(this.content); this.MeteorButton = UIInitializer.CreateMeteorButton(this.content); this.IceboltButton = UIInitializer.CreateIceboltButton(this.content); this.IceBarrierButton = UIInitializer.CreateIceBarrierButton(this.content); this.HurricaneButton = UIInitializer.CreateHurricaneButton(this.content); this.PoisonspitButton = UIInitializer.CreatePoisonspitButton(this.content); this.PoisonCloudButton = UIInitializer.CreatePoisonCloudButton(this.content); this.DecayButton = UIInitializer.CreateDecayButton(this.content); this.SpellCastButton = UIInitializer.CreateSpellCastButton(this.content); this.EndTurnButton = UIInitializer.CreateEndTurnButton(this.content); this.InitialScreenAnimation = UIInitializer.CreateInitialScreenAnimation(this.content); this.MainCharacter = UIInitializer.CreateMainCharacter(this.content); this.MainHero = UIInitializer.CreateHero(this.content); this.EnemyHero = UIInitializer.CreateEnemyHero(this.content); this.SpellAnimationFactory = UIInitializer.CreateSpellAnitmationFactory(); this.IceMap = UIInitializer.LoadIceMap(this.content); this.FireMap = UIInitializer.LoadFireMap(this.content); this.PoisonMap = UIInitializer.LoadPoisonMap(this.content); this.battleMenuDown = new Sprite(new Rectangle(), UIInitializer.LoadBattleMenu(this.content), new Vector2(10, 650)); this.battleMenuUp = new Sprite(new Rectangle(), UIInitializer.LoadBattleMenu(this.content), new Vector2(10, 0)); this.spellInfoOne = new Sprite(new Rectangle(), UIInitializer.LoadSpellInfoWindow(this.content), new Vector2(30, 500)); this.spellInfoTwo = new Sprite(new Rectangle(), UIInitializer.LoadSpellInfoWindow(this.content), new Vector2(90, 500)); this.spellInfoThree = new Sprite(new Rectangle(), UIInitializer.LoadSpellInfoWindow(this.content), new Vector2(150, 500)); this.creditsSprite = new Sprite(new Rectangle(), UIInitializer.LoadCreditsSprite(this.content), new Vector2(800, 150)); this.winLogo = new Sprite(new Rectangle(), UIInitializer.LoadWinLogo(this.content), new Vector2(450, 150)); this.startGameText = "Start Game"; this.creditsText = "Credits"; this.exitText = "Exit"; this.gobackText = "Go Back"; this.iceMagicSchool = "Ice Magic School"; this.fireMagicSchool = "Fire Magic School"; this.poisonMagicSchool = "Poison Magic School"; this.spellName = "Name: "; this.spellDamage = "Damage: "; this.heath = "Health: "; this.mana = "Mana: "; this.armor = "Armor: "; this.level = "Level: "; this.afflictionText = "Effect: "; this.font = this.content.Load<SpriteFont>("Font"); this.EnemyCounter = this.IceMap.EnemyCounter + this.FireMap.EnemyCounter + this.PoisonMap.EnemyCounter; this.FireSpells = UIInitializer.CreateFireSpells(this.content); this.PoisonSpells = UIInitializer.CreatePoisonSpells(this.content); this.IceSpells = UIInitializer.CreateIceSpells(this.content); this.SpellsCasted = new List<SpellAnimation>(); this.ShieldsCasted = new List<SpellAnimation>(); }