protected override void LoadContent() { spriteBatch = new SpriteBatch(Game.GraphicsDevice); select = new button(Game.Content.Load<Texture2D>("images/menu select"), new Vector2(5, 10), 0, new Point(0, 0), new Point(1, 1), new Point(121, 30)); background = Game.Content.Load<Texture2D>("images/pauseback"); menu = Game.Content.Load<Texture2D>("images/pause menu"); sf = Game.Content.Load<SpriteFont>("Font/SpriteFont1"); select.height = 40; select.wide = 400; base.LoadContent(); }
public virtual void Load() { names = null; namesbt = null; spriteBatch = new SpriteBatch(Game.GraphicsDevice); trim = new button(Game.Content.Load<Texture2D>("images/butnselec"), new Vector2(334, 52), 0, new Point(0, 0), new Point(1, 1), new Point(121, 30)); back = new button(Game.Content.Load<Texture2D>("images/ButtonSet"), new Vector2(600, 52), 0, new Point(0, 2), new Point(1, 1), new Point(121, 30)); names = save_game.continuegame(ref snumber); namesbt = new continueslec[(int)snumber]; for (int x = 0; x < snumber; x++) { namesbt[x] = new continueslec(Game.Content.Load<Texture2D>("images/button"), new Vector2(350, (50 * x) + 50), new Point(121, 30), 0, new Point(0, 0), new Point(1, 1), Vector2.Zero, 0); } sf = Game.Content.Load<SpriteFont>("Font/SpriteFont1"); }
/// <summary> /// Allows the game component to perform any initialization it needs to before starting /// to run. This is where it can query for any required services and load content. /// </summary> public override void Initialize() { spriteBatch = new SpriteBatch(Game.GraphicsDevice); trim = new button(Game.Content.Load<Texture2D>("images/butnselec"), new Vector2(334, 52), 0, new Point(0, 0), new Point(1, 1), new Point(121, 30)); back = new button(Game.Content.Load<Texture2D>("images/ButtonSet"), new Vector2(600, 52), 0, new Point(0, 2), new Point(1, 1), new Point(121, 30)); names = save_game.continuegame(ref snumber); namesbt = new continueslec[(int)snumber]; for (int x = 0; x < snumber; x++) { namesbt[x] = new continueslec(Game.Content.Load<Texture2D>("images/button"), new Vector2(350, (50 * x) + 50), new Point(121, 30), 0, new Point(0, 0), new Point(1, 1), Vector2.Zero, 0); } sf = Game.Content.Load<SpriteFont>("Font/SpriteFont1"); trim.position.X = 375 - sf.MeasureString(names[0]).X / 2; base.Initialize(); }
public virtual void Load() { name = null; spriteBatch = new SpriteBatch(Game.GraphicsDevice); x = 0; keyboard_screen = Game.Content.Load<Texture2D>("images/keyboard"); sf = Game.Content.Load<SpriteFont>("Font/SpriteFont1"); back = new button(Game.Content.Load<Texture2D>("images/BuTTonSet"), new Vector2(70, 248), 0, new Point(0, 2), new Point(1, 1), new Point(121, 30)); name = "Enter your name"; }
protected override void LoadContent() { spriteBatch = new SpriteBatch(Game.GraphicsDevice); selec = new keyboardslct(Game.Content.Load<Texture2D>("images/letterslct"), new Vector2(70, 278), 0, new Point(0, 0), new Point(1, 1), new Point(77, 86)); keyboard_screen = Game.Content.Load<Texture2D>("images/keyboard"); sf = Game.Content.Load<SpriteFont>("Font/SpriteFont1"); names = save_game.continuegame(ref des); back = new button(Game.Content.Load<Texture2D>("images/BuTTonSet"), new Vector2(70, 248), 0, new Point(0, 2), new Point(1, 1), new Point(121, 30)); name = "Enter your name"; base.LoadContent(); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(Game.GraphicsDevice); menu = Game.Content.Load<Texture2D>("images/pause menu"); sf = Game.Content.Load<SpriteFont>("Font/SpriteFont1"); ds = Game.Content.Load<SpriteFont>("Font/Descrip"); select = new button(Game.Content.Load<Texture2D>("images/menu select"), new Vector2(xpos + 135, 110), 0, new Point(0, 0), new Point(1, 1), new Point(121, 30)); select.height = 35; //select.wide = 80; base.LoadContent(); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(Game.GraphicsDevice); background = Game.Content.Load<Texture2D>("images/Title Banner"); btns[0] = new button(Game.Content.Load<Texture2D>("images/ButtonSet"), new Vector2(278, 378), 0, new Point(0, 0), new Point(1, 2), new Point(121, 30)); btns[1] = new button(Game.Content.Load<Texture2D>("images/ButtonSet"), new Vector2(278, 460), 0, new Point(0, 1), new Point(1, 2), new Point(121, 30)); poin = new pointer(Game.Content.Load<Texture2D>("images/scott2"), new Vector2(398,335), new Point(100, 100), 0, new Point(0, 0), new Point(1, 1), Vector2.Zero, 0); sf = Game.Content.Load<SpriteFont>("Font/SpriteFont1"); audioframe.LoadContent(Game.Content); audioframe.playsong(); 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(); }