/// <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); //metodos do fundo de tela backgroundTexture = Content.Load <Texture2D>(@"volcano"); vistaRect = new Rectangle(0, 0, graphics.GraphicsDevice.Viewport.Width, graphics.GraphicsDevice.Viewport.Height); // TODO: use this.Content to load your game content here gohan = new Animacao(Content.Load <Texture2D>("gohan3"), 3, 4); gohan.AddAnimation("Up", 1); gohan.AddAnimation("Right", 2); gohan.AddAnimation("Down", 3); gohan.AddAnimation("Left", 4); gohan.Animation = "Right"; gohan.Position = new Vector2(400, 490); gohan.IsLooping = true; gohan.FramesPerSecond = 15; //frieza FRIZA = new Animacao(Content.Load <Texture2D>("FRIEZASPRITE"), 3, 2); FRIZA.AddAnimation("Right", 1); FRIZA.AddAnimation("Left", 2); FRIZA.Animation = "Right"; FRIZA.Position = new Vector2(200, 0); FRIZA.IsLooping = true; FRIZA.FramesPerSecond = 15; //bola de Fogo bolaFogo = new Animacao(Content.Load <Texture2D>("Bolafogo1"), 2, 1); bolaFogo.AddAnimation("expl", 1); bolaFogo.Animation = "expl"; bolaFogo.Position = new Vector2(300, 390); bolaFogo.IsLooping = true; bolaFogo.FramesPerSecond = 15; //fonte Fonte = Content.Load <SpriteFont>("Courier New"); FontPos = new Vector2(graphics.GraphicsDevice.Viewport.Width / 2, graphics.GraphicsDevice.Viewport.Height / 2); }
/// <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); //metodos do fundo de tela backgroundTexture = Content.Load<Texture2D>(@"volcano"); vistaRect = new Rectangle(0, 0, graphics.GraphicsDevice.Viewport.Width, graphics.GraphicsDevice.Viewport.Height); // TODO: use this.Content to load your game content here gohan = new Animacao(Content.Load<Texture2D>("gohan3"), 3, 4); gohan.AddAnimation("Up", 1); gohan.AddAnimation("Right", 2); gohan.AddAnimation("Down", 3); gohan.AddAnimation("Left", 4); gohan.Animation = "Right"; gohan.Position = new Vector2(400, 490); gohan.IsLooping = true; gohan.FramesPerSecond = 15; //frieza FRIZA = new Animacao(Content.Load<Texture2D>("FRIEZASPRITE"), 3, 2); FRIZA.AddAnimation("Right", 1); FRIZA.AddAnimation("Left", 2); FRIZA.Animation = "Right"; FRIZA.Position = new Vector2(200, 0); FRIZA.IsLooping = true; FRIZA.FramesPerSecond = 15; //bola de Fogo bolaFogo = new Animacao(Content.Load<Texture2D>("Bolafogo1"), 2, 1); bolaFogo.AddAnimation("expl", 1); bolaFogo.Animation = "expl"; bolaFogo.Position = new Vector2(300, 390); bolaFogo.IsLooping = true; bolaFogo.FramesPerSecond = 15; //fonte Fonte = Content.Load<SpriteFont>("Courier New"); FontPos = new Vector2(graphics.GraphicsDevice.Viewport.Width / 2, graphics.GraphicsDevice.Viewport.Height / 2); }