public Hanzo(int x, int y, int hp, int play, Texture2D color, Projectile proj, Projectile proj2, Projectile proj3, Projectile proj4) : base(x, y, hp, play, color, proj) { seekingKunai = proj2; sunderingStrike = proj3; deathSent = proj4; }
public Ignis(int x, int y, int hp, int play, Texture2D color, Projectile proj, Projectile proj2, Projectile proj3, Projectile proj4) : base(x, y, hp, play, color, proj) { fireBall = proj2; stalkingFlare = proj3; explosiveBlaze = proj4; }
//constructor public Character(int x, int y, int hp, int play, Texture2D color, Projectile proj) { xPos = x;//xposition which corresponds to the 2D array in gameboard yPos = y;//y position which corresponds to the 2d array in gameboard health = hp;//health points maxHealth = hp;//beginning health points player = play; //owner of the character bullet1 = proj; //player's projectile skin = color; // sets skin for character }
/// <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 // stage stuff tile = Content.Load<Texture2D>("Panels HD.png"); board = new GameBoard(tile); //External Tool Values ---------------------------------------------- //Ignis //Read in Health Damage string inputLine = ignisInput.ReadLine(); int.TryParse(inputLine, out ignisHealth); //Read in Projectile Damage inputLine = ignisInput.ReadLine(); int.TryParse(inputLine, out ignisProjDmg); //Read in FPB inputLine = ignisInput.ReadLine(); int.TryParse(inputLine, out ignisFPB); ignisInput.Close(); //Hanzo //Read in Health Damage inputLine = hanzoInput.ReadLine(); int.TryParse(inputLine, out hanzoHealth); //Read in Projectile Damage inputLine = hanzoInput.ReadLine(); int.TryParse(inputLine, out hanzoProjDmg); //Read in FPB inputLine = hanzoInput.ReadLine(); int.TryParse(inputLine, out hanzoFPB); hanzoInput.Close(); //Steve //Read in Health Damage inputLine = steveInput.ReadLine(); int.TryParse(inputLine, out steveHealth); //Read in Projectile Damage inputLine = steveInput.ReadLine(); int.TryParse(inputLine, out steveProjDmg); //Read in FPB inputLine = steveInput.ReadLine(); int.TryParse(inputLine, out steveFPB); steveInput.Close(); //------------------------------------------------------------------- // character stuff hanzoSprite = Content.Load<Texture2D>("Standing Sprite.png"); ignisSprite = Content.Load<Texture2D>("Scaled Character 1 Standing Sprite.png"); steveSprite = Content.Load<Texture2D>("Steve Standing.png"); projectile = Content.Load<Texture2D>("Projectile Sprite.png"); invisibleProj = Content.Load<Texture2D>("Invisible Projectile.png"); ignisProj = Content.Load<Texture2D>("Ignis Projectile.png"); hanzoProj = Content.Load<Texture2D>("Hanzo Projectile.png"); steveProj = Content.Load<Texture2D>("St3v3 Projectile.png"); igProj2 = Content.Load<Texture2D>("Ignis Projectile 2.png"); hzProj2 = Content.Load<Texture2D>("Hanzo Projectile 2.png"); stProj2 = Content.Load<Texture2D>("St3v3 Projectile 2.png"); stProj3 = Content.Load<Texture2D>("St3v3 Projectile 3.png"); //Dazed Stars dazedStars = Content.Load<Texture2D>("Dazed Stars.png"); characterPos = new Vector2(7, 75); time = new GameTime(); //Character Projectiles char1Proj1 = new Projectile(10, 1, 8, 0, projectile, time); char2Proj1 = new Projectile(10, 2, -1, 7, projectile, time); //Ignis igFireBall1 = new Projectile(25, 1, 8, 0, igProj2, time); igFireBall2 = new Projectile(25, 2, -1, 7, igProj2, time); igStalk1 = new Projectile(15, 1, 8, 0, igProj2, time); igStalk2 = new Projectile(15, 2, -1, 7, igProj2, time); igBlaze1 = new Projectile(0, 1, 8, 0, projectile, time); igBlaze2 = new Projectile(0, 2, -1, 7, projectile, time); //Hanzo hzSeeking1 = new Projectile(5, 1, 8, 0, hzProj2, time); hzSeeking2 = new Projectile(5, 2, -1, 7, hzProj2, time); hzSunder1 = new Projectile(0, 1, 8, 0, invisibleProj, time); hzSunder2 = new Projectile(0, 2, -1, 7, invisibleProj, time); hzDeath1 = new Projectile(0, 1, 8, 0, hzProj2, time); hzDeath2 = new Projectile(0, 2, -1, 7, hzProj2, time); //Steve stTrav1 = new Projectile(40, 1, 8, 0, stProj2, time); stTrav2 = new Projectile(40, 2, -1, 7, stProj2, time); stDolt1 = new Projectile(10, 1, 8, 0, stProj3, time); stDolt2 = new Projectile(10, 2, -1, 7, stProj3, time); ignisTN = Content.Load<Texture2D>("IgnisThumbnail.png"); hanzoTN = Content.Load<Texture2D>("Character 2 Thumbnail.png"); steveTN = Content.Load<Texture2D>("St3v3Thumbnail.png"); // STEVEN PLEASE CHANGE THIS OR WE LOSE // screen stuff titleScreen = Content.Load<Texture2D>("TitleScreen.png"); // loads the title screen titleSize = new Rectangle(0, 0, GraphicsDevice.Viewport.Width, GraphicsDevice.Viewport.Height); // creates a Rectangle object to set the size of the title screen to the size of the screen pauseScreen = Content.Load<Texture2D>("PauseScreenTemp.png"); // loads the pause screen pauseSize = new Rectangle(0, 0, GraphicsDevice.Viewport.Width, (GraphicsDevice.Viewport.Height)); // creates a Rectangle object to set the size of the pause screen to the size of the screen background = Content.Load<Texture2D>("Character Select Screen.png"); // loads the background screen gameBackground = Content.Load<Texture2D>("Stage Background.png"); //Loads main game background backgroundSize = new Rectangle(0, 0, GraphicsDevice.Viewport.Width, (GraphicsDevice.Viewport.Height)); // creates a Rectangle object to set the size of the background screen to the size of the screen ignisWin = Content.Load<Texture2D>("Ignis Win Screen.png"); // Ignis win screen hanzoWin = Content.Load<Texture2D>("Hanzo Win Screen.png"); // Hanzo win screen steveWin = Content.Load<Texture2D>("St3v3 Win Screen.png"); // Steve win screen // projectile stuff projSkin = Content.Load<Texture2D>("Proj1Fireball.png"); // health bar stuff healthBar = Content.Load<Texture2D>("HealthBar.png"); // loads the health bar healthBarSize = new Rectangle(0, 0, GraphicsDevice.Viewport.Width, (GraphicsDevice.Viewport.Height)); // creates a Rectangle object to set the size of the title screen to healthBarSize = new Rectangle(0, 0, GraphicsDevice.Viewport.Width, (GraphicsDevice.Viewport.Height)); // creates a Rectangle object to set the size of the title screen to the size of the screen health = Content.Load<Texture2D>("Health.png"); // loads the player health hbP1 = new HealthBar(char1, health); // creates the health bar object for player 1 ignis hbP2 = new HealthBar(char2, health); // creates the health bar object for player 2 ignis // character select stuff frame = Content.Load<Texture2D>("CharFrame.png"); // loads the character selector frame sel1 = Content.Load<Texture2D>("CharSel1.png"); // loads the character selector for player 1 sel2 = Content.Load<Texture2D>("CharSel2.png"); // loads the character selector for player 2 selector1 = new SelectScreen(ignisTN, hanzoTN, steveTN, 1); // creates the character selector object for player 1 selector2 = new SelectScreen(ignisTN, hanzoTN, steveTN, 2); // creates the character selecter object for player 2 }
public Steve(int x, int y, int hp, int play, Texture2D color, Projectile proj, Projectile proj2, Projectile proj3) : base(x, y, hp, play, color, proj) { travesty = proj2; doltBolt = proj3; }