Exemple #1
0
        /// <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);

            // Load sounds
            string musicPath = @"Sounds\Music";
            string fxPath    = @"Sounds\SoundFX\";

            soundManager.LoadContent(musicPath, fxPath);

            CelCount celCount = new CelCount(5, 25);

            celAnimationManager.AddAnimation("canada", "canada test", celCount, 10);
            celAnimationManager.ResumeAnimation("canada");

            celCount = new CelCount(5, 25);
            celAnimationManager.AddAnimation("israel", "israel", celCount, 10);
            celAnimationManager.ResumeAnimation("israel");
        }
Exemple #2
0
        protected override void LoadContent()
        {
            //add our explosions
            cam.AddAnimation("explosion", "explode_1", new CelCount(4, 4), 16);
            cam.AddAnimation("explosion2", "explode_1", new CelCount(4, 4), 16);
            cam.AddAnimation("explosion3", "explode_3", new CelCount(4, 4), 12);
            cam.AddAnimation("explosion4", "explode_4", new CelCount(4, 4), 20);
            cam.AddAnimation("explosion5", "explode_3", new CelCount(4, 4), 12);
            cam.AddAnimation("explosion6", "explode_4", new CelCount(4, 4), 20);

            cam.AddAnimation("bigexplosion", "bigexplosion", new CelCount(4, 4), 18);
        }
Exemple #3
0
        /// <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);

            cam.AddAnimation("enemy1", "MrEye", new CelCount(4, 2), 8);
            cam.AddAnimation("enemy2", "MrEye", new CelCount(4, 2), 12);
            cam.AddAnimation("enemy3", "MrEye", new CelCount(4, 2), 6);

            cam.AddAnimation("complex1", "complex", new CelRange(1, 1, 2, 1), 64, 64, 2, 2);
            cam.AddAnimation("complex2", "complex", new CelRange(3, 1, 1, 3), 64, 64, 7, 8);
            cam.AddAnimation("complex3", "complex", new CelRange(2, 3, 1, 4), 64, 64, 4, 2);
            cam.AddAnimation("complex4", "complex", new CelRange(2, 4, 4, 4), 64, 64, 3, 5);
        }
Exemple #4
0
        /// <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);

            cam.AddAnimation("explosion", "explode_1", new CelCount(4, 4), 16);
            cam.AddAnimation("explosion2", "explode_1", new CelCount(4, 4), 16);
            cam.AddAnimation("explosion3", "explode_3", new CelCount(4, 4), 12);
            cam.AddAnimation("explosion4", "explode_4", new CelCount(4, 4), 20);
            cam.AddAnimation("explosion5", "explode_3", new CelCount(4, 4), 12);
            cam.AddAnimation("explosion6", "explode_4", new CelCount(4, 4), 20);

            cam.AddAnimation("bigexplosion", "bigexplosion", new CelCount(4, 4), 18);
        }
Exemple #5
0
        /// <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);
            particleService = new ParticleService(this, GraphicsDevice);
            Components.Add(particleService);

            // Load sounds
            string musicPath = @"Sounds\Music";
            string fxPath    = @"Sounds\SoundFX\";

            soundManager.LoadContent(musicPath, fxPath);

            CelCount celCount = new CelCount(5, 25);

            /* celAnimationManager.AddAnimation("Aura", "Aura", celCount, 10);
             * celAnimationManager.ResumeAnimation("Aura");*/

            countryList = new List <string>()
            {
                "Australia", "Brazil", "Canada", "China", "Ethiopia", "France", "India", "Israel",
                "Italy", "Jamaica", "Japan", "Macedonia", "North Korea", "Philippines", "South Africa",
                "South Korea", "Switzerland", "Turkey", "USA"
            };

            foreach (var country in countryList)
            {
                celCount = new CelCount(5, 25);
                celAnimationManager.AddAnimation(country, country, celCount, 10);
                celAnimationManager.ResumeAnimation(country);
            }


            font30         = Content.Load <SpriteFont>(@"Fonts\KaushanScript30");
            font30static   = font30;
            font300        = Content.Load <SpriteFont>(@"Fonts\KaushanScript300");
            button_texture = Content.Load <Texture2D>(@"Textures\Controls\Button1");
        }
 protected override void LoadContent()
 {
     cam.AddAnimation("robot", "robot", new CelCount(4, 4), 16);
 }
Exemple #7
0
 protected override void LoadContent()
 {
     cam.AddAnimation("hero", "hero", new CelCount(4, 4), 16);
     cam.AddAnimation("hero-kick", "hero-kick", new CelCount(4, 1), 8);
 }