Ejemplo n.º 1
0
        /// <summary>
        /// Loads content specific to the level 
        /// </summary>
        protected override void LevelSpecificContent()
        {
            ocean1 = new BackGround(Content, "Backgrounds\\Ocean1");

            birdTexture = Content.Load<Texture2D>("Backgrounds\\GreyBirdFly");
            birdAnimation.Initialize(birdTexture, Vector2.Zero, 33, 29, 4, 100, Color.White, 0.8f, true);
            bird.Initialize(birdTexture, position, birdAnimation, this);

            position.X = -150;
            position.Y = 350;

            boatTexture = Content.Load<Texture2D>("Backgrounds\\Boat");
            boatAnimation.Initialize(boatTexture, Vector2.Zero, 63, 69, 4, 100, Color.White, 0.8f, true);
            boat.Initialize(boatTexture, position, boatAnimation, this);

            position.X = 900;
            position.Y = 440;

            next1Spawn = enemy1Timer.Next(200, 500);
            next2Spawn = enemy2Timer.Next(100, 300);
        }
Ejemplo n.º 2
0
 private void LoadBackGrounds()
 {
     sun.Initialize(content.Load<Texture2D>("Backgrounds\\Sun"));
     middayLevel1 = content.Load<Texture2D>("Backgrounds\\Midday");
     sunSetLevel1 = content.Load<Texture2D>("Backgrounds\\Sunset");
     nightLevel1 = content.Load<Texture2D>("Backgrounds\\Night");
     ground = new BackGround(content, "Backgrounds\\Level1");
     stars = new BackGround(content, "Backgrounds\\Stars");
 }