Example #1
0
 public override void LoadContent(ContentManager Content)
 {
     Texture2D text = Content.Load<Texture2D>("Data\\GFX\\Scenes\\Cactus");
     Animation = new Graphics.Animation(text, Position, text.Width, text.Height, 1, 0);
     Animation.Pause = true;
     Animation.Depth = 0.3f;
 }
Example #2
0
 public override void LoadContent(ContentManager Content)
 {
     Texture2D etex = Content.Load<Texture2D>("Data\\GFX\\alien");
     bullet = Content.Load<Texture2D>("Data\\GFX\\EyeBullet");
     animation = new Graphics.Animation(etex, Position, Entity.WIDTH, Entity.HEIGHT, 3, 150);
     animation.Depth = 0.80f;
 }
Example #3
0
 public override void LoadContent(ContentManager Content)
 {
     base.LoadContent(Content);
     animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\Star"), Position, 15, 15, 3, 250);
     //Depth = 0.51f;
     Depth = 1f;
 }
Example #4
0
        public override void LoadContent(ContentManager Content)
        {
            durTimer = new ATimer();
            durTimer.Interval = 3000;
            durTimer.TimerType = ATimerType.MilliSeconds;

            Texture2D texture = Content.Load<Texture2D>("Data\\GFX\\CheckPointText");
            Position = new Vector2(Position.X + 16 - (texture.Width / 2), Position.Y - 32);
            ScreenManagers.GameScreen gs = (ScreenManagers.GameScreen)ScreenManagers.ScreenManager.CurrentScreen;

            if(Position.X < 0 || Position.X + texture.Width > gs.level.Width)
            {
                float x = Position.X;
                float y = Position.Y;

                x = MathHelper.Clamp(x, 0, gs.level.Width * Map.Tile.WIDTH - texture.Width);
                y = MathHelper.Clamp(y, 0, gs.level.Height * Map.Tile.HEIGHT - texture.Height);

                Position = new Vector2(x, y);
            }

            originalPos = Position;
            animation = new Graphics.Animation(texture, Position, texture.Width, texture.Height, 0, 0);
            Rect = new Rectangle((int)Position.X, (int)Position.Y, texture.Width, texture.Height);
            animation.Depth = 1.0f;
        }
Example #5
0
 public override void LoadContent(ContentManager Content)
 {
     Texture2D texture = Content.Load<Texture2D>("Data\\GFX\\LifeIcon");
     Position = new Vector2(Position.X + 16 - (texture.Width / 2), Position.Y);
     animation = new Graphics.Animation(texture, Position, texture.Width, texture.Height, 0, 1);
     Rect = new Rectangle((int)Position.X, (int)Position.Y, texture.Width, texture.Height);
     Depth = 0.60f;
 }
Example #6
0
        public override void LoadContent(ContentManager Content)
        {
            Texture2D texture = Content.Load<Texture2D>("Data\\GFX\\ExitPortal");

            Position = new Vector2(Position.X, Position.Y - (texture.Height - 32));
            animation = new Graphics.Animation(texture, Position, texture.Width, texture.Height, 0, 0);
            Rect = new Rectangle((int)Position.X, (int)Position.Y, texture.Width, texture.Height);
            animation.Depth = 0.59f;
        }
Example #7
0
        public override void LoadContent(ContentManager Content)
        {
            Texture2D player = Content.Load<Texture2D>("Data\\GFX\\NPCTemp");
            gossipTexture = Content.Load<Texture2D>("Data\\GFX\\GossipBubble");
            animation = new Graphics.Animation(player, Position, 32, 48, 7, 75);
            animation.Depth = 0.89f;
            CollisionRectangle = new Rectangle((int)Position.X, (int)Position.Y, 32, 48);

            idleLoopTimer = new ATimer();
            idleLoopTimer.Interval = 3000;
            idleLoopTimer.Start();
        }
Example #8
0
 public override void LoadContent(ContentManager Content)
 {
     if (Style == GrassWallStyle.Long)
     {
         animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\GrassWall"), Position, DEFAULT_WIDTH, 64, 0, 0);
     }
     else if(Style == GrassWallStyle.Short)
     {
         animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\GrassWallShort"), Position, DEFAULT_WIDTH, 64, 0, 0);
     }
     animation.Depth = 0.18f;
 }
Example #9
0
        public override void LoadContent(ContentManager Content)
        {
            int t = Engine.Randomizer.Next(0, 3);
            Texture2D etex;
            if (t == 0)
                etex = Content.Load<Texture2D>("Data\\GFX\\FlubbsPurple");
            else if(t == 1)
                etex = Content.Load<Texture2D>("Data\\GFX\\FlubbsRed");
            else
                etex = Content.Load<Texture2D>("Data\\GFX\\FlubbsYellow");

            animation = new Graphics.Animation(etex, Position, Entity.WIDTH, Entity.HEIGHT, 0, 0);
            animation.Depth = 0.791f;
        }
Example #10
0
        public override void LoadContent(ContentManager Content)
        {
            if(Piece == WoodFencePiece.Center)
            {
                animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\WoodFenceCenter"), Position, DEFAULT_WIDTH, DEFAULT_HEIGHT, 0, 0);
            }
            else if(Piece == WoodFencePiece.Left)
            {
                animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\WoodFenceLeft"), Position, DEFAULT_WIDTH, DEFAULT_HEIGHT, 0, 0);
            }
            else if(Piece == WoodFencePiece.Right)
            {
                animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\WoodFenceRight"), Position, DEFAULT_WIDTH, DEFAULT_HEIGHT, 0, 0);
            }

            animation.Depth = 0.15f;
        }
Example #11
0
        public override void LoadContent(ContentManager Content)
        {
            int val = 1;

            if (Style == GrassStyle.One)
                val = 1;
            else if (Style == GrassStyle.Two)
                val = 2;
            else if (Style == GrassStyle.Three)
                val = 3;
            else if (Style == GrassStyle.Four)
                val = 4;
            else
                val = 5;

            animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\Grass0" + val), Position, DEFAULT_WIDTH, DEFAULT_HEIGHT, 0, 0);
            animation.Depth = 0.42f;
        }
Example #12
0
        public override void LoadContent(ContentManager Content)
        {
            base.LoadContent(Content);

            Texture2D flameBurst = Content.Load<Texture2D>("Data\\GFX\\Forest\\FlameBowlFireBurst");
            Texture2D flameTop = Content.Load<Texture2D>("Data\\GFX\\Forest\\FlameBowlTop");
            Texture2D flameBottom = Content.Load<Texture2D>("Data\\GFX\\Forest\\FlameBowlBottom");
            Texture2D flameIdle = Content.Load<Texture2D>("Data\\GFX\\Forest\\FlameBowlFireIdle");
            burstGraphics = new Graphics.Animation(flameBurst, new Vector2(Position.X + 16 - 10, Position.Y - flameBurst.Height + 1), 20, flameBurst.Height, 2, 150);
            idleGraphics = new Graphics.Animation(flameIdle, new Vector2(Position.X, Position.Y - 7), 32, flameIdle.Height, 2, 150);
            bowlTop = new Graphics.Animation(flameTop, new Vector2(Position.X, Position.Y - flameTop.Height), 32, flameTop.Height, 0, 0);
            bowlBottom = new Graphics.Animation(flameBottom, Position, flameBottom.Width, flameBottom.Height, 0, 0);

            bowlTop.Visible = true;
            bowlBottom.Visible = true;
            idleGraphics.Visible = true;
            burstGraphics.Visible = false;

            bowlBottom.Depth = 0.75f;
            bowlTop.Depth = 0.75f;
            idleGraphics.Depth = 0.751f;
            burstGraphics.Depth = 0.751f;
        }
        public override void LoadContent(ContentManager Content)
        {
            base.LoadContent(Content);

            Texture2D woodBG = Content.Load<Texture2D>("Data\\GFX\\WoodStocksBackground");

            ScreenManagers.GameScreen gs = (ScreenManagers.GameScreen)ScreenManagers.ScreenManager.CurrentScreen;

            int difference = (int)(gs.level.Height * 32 - Position.Y);
            float amount = difference / 32;

            amount++;

            for(int i = 0; i < amount; i++)
            {
                Graphics.Animation woodenBG;
                woodenBG = new Graphics.Animation(woodBG, new Vector2(Position.X - 8, Position.Y + i * 64 + 32), woodBG.Width, woodBG.Height, 0, 0);
                woodenBG.Visible = true;
                woodenBG.Depth = 0.1f;

                backgrounds.Add(woodenBG);
            }
        }
        public override void LoadContent(ContentManager Content)
        {
            base.LoadContent(Content);

            Texture2D woodTop = Content.Load<Texture2D>("Data\\GFX\\WoodStocksTop");
            Texture2D woodBottom = Content.Load<Texture2D>("Data\\GFX\\WoodStocksGround");
            woodenTop = new Graphics.Animation(woodTop, new Vector2(Position.X, Position.Y - 30), 32, woodTop.Height, 0, 0);
            woodenBottom = new Graphics.Animation(woodBottom, new Vector2(Position.X, Position.Y + 2), woodBottom.Width, woodBottom.Height, 0, 0);

            woodenTop.Visible = true;
            woodenBottom.Visible = true;

            woodenBottom.Depth = 0.73f;
            woodenTop.Depth = 0.331f;

            if(HasBackground)
            {
                Texture2D woodBG = Content.Load<Texture2D>("Data\\GFX\\WoodStocksBackground");
                woodenBG = new Graphics.Animation(woodBG, new Vector2(Position.X - 8, Position.Y), woodBG.Width, woodBG.Height, 0, 0);
                woodenBG.Visible = true;
                woodenBG.Depth = 0.1f;
            }
        }
Example #15
0
 public override void LoadContent(ContentManager Content)
 {
     animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\Mushroom01"), Position, DEFAULT_WIDTH, DEFAULT_HEIGHT, 1, Engine.Randomizer.Next(250, 350));
     animation.Depth = 0.41f;
 }
Example #16
0
 public override void LoadContent(ContentManager Content)
 {
     animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\" + FlowerColor.ToString() + "Flower"), Position, DEFAULT_WIDTH, 16, 0, 1);
     animation.Depth = 0.40f;
 }
Example #17
0
 public override void LoadContent(ContentManager Content)
 {
     animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\Lamp01"), Position, DEFAULT_WIDTH, DEFAULT_HEIGHT, 2, 650);
     lightGraphics = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\LongLight01"), new Vector2(Position.X - 16, Position.Y + 13), 64, 56, 1, 100);
 }
Example #18
0
 public override void LoadContent(ContentManager Content)
 {
     Animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\Scenes\\Alien1Shadow"), Position, 32, 32, 3, 150);
     Animation.Depth = 0.4f;
 }
Example #19
0
 public override void LoadContent(ContentManager Content)
 {
     Texture2D etex = Content.Load<Texture2D>("Data\\GFX\\Squidien");
     animation = new Graphics.Animation(etex, Position, 40, 40, 3, 150);
     animation.Depth = 0.81f;
 }
Example #20
0
 public override void LoadContent(ContentManager Content)
 {
     animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\DoubleJumpIcon"), Position, DEFAULT_WIDTH, DEFAULT_HEIGHT, 0, 1);
     animation.Depth = 0.53f;
 }
Example #21
0
 public override void LoadContent(ContentManager Content)
 {
     Animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\Scenes\\Zzz"), Position, 14, 17, 2, 150f);
     Animation.Depth = 0.3f;
 }
Example #22
0
 public override void LoadContent(ContentManager Content)
 {
     Animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\Scenes\\Star"), Position, 15, 15, 0, (float)Engine.Randomizer.Next(300, 400));
     Animation.Depth = 0.1f;
 }
Example #23
0
        public override void LoadContent(ContentManager Content)
        {
            string val = "";
            if (Type == ItemCrateType.Standard)
                val = "Box01";
            else if (Type == ItemCrateType.Life)
                val = "Box02";
            else if (Type == ItemCrateType.CheckPoint)
                val = "Box03";
            else if (Type == ItemCrateType.Trash)
                val = "BoxTrash";

            TrashTexture = Content.Load<Texture2D>("Data\\GFX\\BoxTrash");
            animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\" + val), Position, DEFAULT_WIDTH, DEFAULT_HEIGHT, 0, 0);
            animation.Depth = 0.43f;

            // TODO: If a crate has been destroyed before reaching a checkpoint,
            // do not spawn it again, but spawn a broken crate.
        }
Example #24
0
 public override void LoadContent(ContentManager Content)
 {
     animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\BurningBarrel"), Position, DEFAULT_WIDTH, DEFAULT_HEIGHT, 2, 150);
 }
Example #25
0
 public override void LoadContent(ContentManager Content)
 {
     Texture2D mangor = Content.Load<Texture2D>("Data\\GFX\\Mangorra");
     animation = new Graphics.Animation(mangor, Position, Entity.WIDTH, Entity.HEIGHT, 3, 300);
 }
Example #26
0
 public override void LoadContent(ContentManager Content)
 {
     Animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\Scenes\\SpaceShipShadow"), Position, 129, 91, 1, 0);
     Animation.Depth = 0.35f;
 }
Example #27
0
 public override void LoadContent(ContentManager Content)
 {
     animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\BackgroundFlower" + FlowerColor.ToString()), Position, Rect.Width, Rect.Height, 0, 1);
     stalk = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\BackgroundFlower" + FlowerColor.ToString() + "Stalk"), Position, Rect.Width, Rect.Height, 0, 1);
 }
Example #28
0
 public override void LoadContent(ContentManager Content)
 {
     animation = new Graphics.Animation(Content.Load<Texture2D>("Data\\GFX\\Goal"), Position, DEFAULT_WIDTH, DEFAULT_HEIGHT, 2, 100);
     animation.Depth = 0.8f;
 }