public static void Initialize(GraphicsDevice gd, Microsoft.Xna.Framework.Content.ContentManager content)
 {
     DirtCloud = new AnimatedSprite(content.Load<Texture2D>("Art/Z3 Art/Dirt Particle"));
     DirtCloud.DrawArgs.Scale = new Vector2(Scale * 0.25f);
     DirtCloud.SetOriginToCenter();
     DirtCloud.StartAnimation();
 }
示例#2
0
        public static void Initialize(GraphicsDevice device, ContentManager content)
        {
            HillSprite = new AnimatedSprite(content.Load<Texture2D>("Art/Z3 Art/Hill"));
            HillSprite.SetOriginToCenter();
            HillSprite.StartAnimation();
            HillSprite.DrawArgs.Scale *= 0.5f;

            ConfusedSprite = new AnimatedSprite(content.Load<Texture2D>("Art/Z3 Art/Stunned"), 2, TimeSpan.FromSeconds(0.25), true, -1, 0);
            ConfusedSprite.SetOriginToCenter();
            ConfusedSprite.StartAnimation();

            DogHouseSprite = new AnimatedSprite(content.Load<Texture2D>("Art/Z3 Art/doghouse"));
            DogHouseSprite.SetOriginToCenter();
            DogHouseLowerSprite = new AnimatedSprite(content.Load<Texture2D>("Art/Z3 Art/doghouse lower"));
            DogHouseLowerSprite.SetOriginToCenter();

            HarmonyJousterStill = new AnimatedSprite(content.Load<Texture2D>("Art/Z3 Art/dog_still"), 8, TimeSpan.FromSeconds(0.1), true);
            HarmonyJousterStill.SetOriginToCenter();
            HarmonyJousterStill.StartAnimation();

            DischordJousterStill = new AnimatedSprite(content.Load<Texture2D>("Art/Z3 Art/baddog_still"), 8, TimeSpan.FromSeconds(0.1), true);
            DischordJousterStill.SetOriginToCenter();
            DischordJousterStill.StartAnimation();

            TennisBall = new AnimatedSprite(content.Load<Texture2D>("Art/Z3 Art/tennisball"));
            TennisBall.SetOriginToCenter();
            TennisBall.StartAnimation();
        }
示例#3
0
        public static void Initialize(GraphicsDevice device, ContentManager content)
        {
            BlackHole = new AnimatedSprite(content.Load<Texture2D>("Art/Z5 Art/Black Hole"), 6, TimeSpan.FromSeconds(0.1), true);
            BlackHole.SetOriginToCenter();
            BlackHole.StartAnimation();

            Ring = new AnimatedSprite(content.Load<Texture2D>("Art/Z5 Art/Ring"));
            Ring.SetOriginToCenter();
            Ring.StartAnimation();
        }
示例#4
0
        public static void Initialize(GraphicsDevice device, ContentManager content)
        {
            GoodBacteria = new AnimatedSprite(content.Load<Texture2D>("Art/Z1 Art/Pickup Good"), 8, TimeSpan.FromSeconds(0.1), true);
            GoodBacteria.SetOriginToCenter();
            GoodBacteria.StartAnimation();

            InfectedBacteria = new AnimatedSprite(content.Load<Texture2D>("Art/Z1 Art/Pickup Infected"), 8, TimeSpan.FromSeconds(0.1), true);
            InfectedBacteria.SetOriginToCenter();
            InfectedBacteria.StartAnimation();

            Spikes = new AnimatedSprite(content.Load<Texture2D>("Art/Z1 Art/amoeba_spikes"), 8, ArtAssets.PlayerSprites[ZoomLevels.One][Jousting.Jousters.Harmony].FrameLength, true);
            Spikes.SetOriginToCenter();
            Spikes.StartAnimation();

            Aura = new AnimatedSprite(content.Load<Texture2D>("Art/Z1 Art/aura"));
            Aura.DrawArgs.Scale *= 2.0f;
            Aura.SetOriginToCenter();
            Aura.StartAnimation();
        }
        public static void Initialize(GraphicsDevice gd, Microsoft.Xna.Framework.Content.ContentManager content)
        {
            GoodParticle = new AnimatedSprite(content.Load<Texture2D>("Art/Z1 Art/GoodParticle"));
            GoodParticle.SetOriginToCenter();
            GoodParticle.StartAnimation();
            GoodParticle.DrawArgs.Scale = new Vector2(Scale * 0.25f);

            BadParticle = new AnimatedSprite(content.Load<Texture2D>("Art/Z1 Art/InfectedParticle"));
            BadParticle.SetOriginToCenter();
            BadParticle.StartAnimation();
            BadParticle.DrawArgs.Scale = new Vector2(Scale * 0.25f);

            CollectGoodParticle = new AnimatedSprite(content.Load<Texture2D>("Art/Z1 Art/Collected Particle Good"));
            CollectGoodParticle.SetOriginToCenter();
            CollectGoodParticle.DrawArgs.Scale = new Vector2(Scale);

            CollectBadParticle = new AnimatedSprite(content.Load<Texture2D>("Art/Z1 Art/Collected Particle Bad"));
            CollectBadParticle.SetOriginToCenter();
            CollectBadParticle.DrawArgs.Scale = new Vector2(Scale);

            InfectBacteriaParticle = new AnimatedSprite(content.Load<Texture2D>("Art/Z1 Art/MadeInfectedParticle"));
            InfectBacteriaParticle.SetOriginToCenter();
            InfectBacteriaParticle.DrawArgs.Scale = new Vector2(Scale * 0.65f);
        }
示例#6
0
        public static void Initialize(GraphicsDevice gd, ContentManager content)
        {
            EmptySprite = AnimatedSprite.Empty(gd);

            foreach (ZoomLevels zoom in WorldData.AscendingZooms)
            {
                string zoomS = WorldData.ZoomToInt(zoom).ToString();

                WorldBackgrounds[zoom] = content.Load<Texture2D>("Art/Z" + zoomS);

                foreach (Jousting.Jousters jouster in Utilities.OtherFunctions.GetValues<Jousting.Jousters>())
                {
                    string jousterS = (jouster == Jousting.Jousters.Dischord ? "C" : "H");
                    switch (zoom)
                    {
                        case ZoomLevels.One:
                            PlayerSprites[zoom][jouster] = new AnimatedSprite(content.Load<Texture2D>("Art/Player" + jousterS + " " + zoomS),
                                                                              8, TimeSpan.FromSeconds(0.15), true, -1, 1);
                            break;
                        case ZoomLevels.Three:
                            PlayerSprites[zoom][jouster] = new AnimatedSprite(content.Load<Texture2D>("Art/Player" + jousterS + " " + zoomS),
                                                                              14, TimeSpan.FromSeconds(0.1), true, -1, 1);
                            break;
                        default:
                            PlayerSprites[zoom][jouster] = new AnimatedSprite(content.Load<Texture2D>("Art/Player" + jousterS + " " + zoomS));
                            break;
                    }
                    PlayerSprites[zoom][jouster].SetOriginToCenter();
                    PlayerSprites[zoom][jouster].StartAnimation();
                }
            }

            SpecialUIAlert[Jousting.Jousters.Harmony] = new AnimatedSprite(content.Load<Texture2D>("Art/Special H"));
            SpecialUIAlert[Jousting.Jousters.Harmony].DrawArgs.Origin = new Vector2(0.0f, SpecialUIAlert[Jousting.Jousters.Harmony].ExactHeight);
            SpecialUIAlert[Jousting.Jousters.Harmony].DrawArgs.Scale *= 1.0f;
            SpecialUIAlert[Jousting.Jousters.Dischord] = new AnimatedSprite(content.Load<Texture2D>("Art/Special C"));
            SpecialUIAlert[Jousting.Jousters.Dischord].DrawArgs.Origin = new Vector2(SpecialUIAlert[Jousting.Jousters.Dischord].ExactWidth,
                                                                                     SpecialUIAlert[Jousting.Jousters.Dischord].ExactHeight);
            SpecialUIAlert[Jousting.Jousters.Dischord].DrawArgs.Scale *= 1.0f;

            SpecialUIAlert[Jousting.Jousters.Harmony].StartAnimation();
            SpecialUIAlert[Jousting.Jousters.Dischord].StartAnimation();

            Arrow = new AnimatedSprite(content.Load<Texture2D>("Art/direction_arrow"));
            Arrow.SetOriginToCenter();
            Arrow.DrawArgs.Origin.X = 0.0f;
            Arrow.DrawArgs.Color.A = 128;

            DebugFont = content.Load<SpriteFont>("DebugFont");
            WorldFont = content.Load<SpriteFont>("WorldFont");
        }