Ejemplo n.º 1
0
 public void Load(ContentManager content)
 {
     //bulletTexture = content.Load<Texture2D>("PNG/Lasers/laserBlue01");
     animationBullet.Load(content, bulletTexture.ToString(), 1, 1);
     animationBullet.Origin   = new Vector2(bulletTexture.Width / 2, bulletTexture.Height / 2);
     animationBullet.Rotation = rotation;
     sprite.Add(animationBullet, bulletTexture.Width / 2, bulletTexture.Height / 2);
     sprite.Pause();
 }
Ejemplo n.º 2
0
        public void Load(ContentManager content)
        {
            bulletTexture = content.Load <Texture2D>("PNG/Lasers/laserBlue01");
            playerTexture = content.Load <Texture2D>("PNG/playerShip1_blue");
            animationPlayer.Load(content, "PNG/playerShip1_blue", 1, 1);
            animationPlayer.Origin = new Vector2(playerTexture.Width / 2, playerTexture.Height / 2);
            sprite.Add(animationPlayer, playerTexture.Width / 2, playerTexture.Height / 2);
            sprite.Pause();

            pewSound = content.Load <SoundEffect>("Bonus/sfx_laser1");
            pew      = pewSound.CreateInstance();
        }
Ejemplo n.º 3
0
        public void Load(ContentManager content)
        {
            bulletTexture = content.Load <Texture2D>("PNG/Lasers/laserRed01");
            enemyTexture  = content.Load <Texture2D>("PNG/Enemies/enemyRed1");
            enemyAnimTexture.Load(content, "PNG/Enemies/enemyRed1", 1, 1);
            enemyAnimTexture.Origin = new Vector2(enemyTexture.Width / 2, enemyTexture.Height / 2);
            enemyAnimTexture.Depth  = 1;
            enemySprite.Add(enemyAnimTexture, enemyTexture.Width / 2, enemyTexture.Height / 2);
            enemySprite.Pause();

            pewSound = content.Load <SoundEffect>("Bonus/sfx_laser2");
            pew      = pewSound.CreateInstance();
        }