protected override void LoadContent() { message = Game.Content.Load<Texture2D>("images/messages"); scott = new Scott(Game.Content.Load<Texture2D>("images/walkinghectoredit"), position, new Point(18, 49), 0, new Point(0, 0), new Point(8, 4), new Vector2(2, 2), 50); MapLoader.LoadContent(Game.Content); scott.position = new Vector2(600, 540); spriteBatch = new SpriteBatch(Game.GraphicsDevice); Item.loaditems(Game.Content); sf = Game.Content.Load<SpriteFont>("Font/Descrip"); base.LoadContent(); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(Game.GraphicsDevice); select = new button(Game.Content.Load<Texture2D>("images/menu select"), new Vector2(45, 420), 0, new Point(0, 0), new Point(1, 1), new Point(121, 30)); background = Game.Content.Load<Texture2D>("images/battlebgdummy"); menu = Game.Content.Load<Texture2D>("images/Fight menu"); sf = Game.Content.Load<SpriteFont>("Font/SpriteFont1"); scott = new Scott(Game.Content.Load<Texture2D>("images/Scottbattle"), new Vector2(50, 335), new Point(35, 57), 16, new Point(0, 0), new Point(1, 1), new Vector2(0, 0), 0); if(Game1.boss_npc == false) npc_sprite = new NPC(Game.Content.Load<Texture2D>("images/enemyintern"), new Vector2(600, 235), new Point(108, 156), 16, new Point(0, 0), new Point(1, 1), new Vector2(0, 0), 0); else npc_sprite = new NPC(Game.Content.Load<Texture2D>("images/JonHoo"), new Vector2(600, 235), new Point(144, 167), 16, new Point(0, 0), new Point(1, 1), new Vector2(0, 0), 0); hp= Game.Content.Load<Texture2D>("images/npc_hp1"); hpt = Game.Content.Load<Texture2D>("images/npc_hp2"); //image for npc health is "npc_hp1" when full //and image for npc health when empty is "npc_hp2" select.height = 30; base.LoadContent(); }