Exemplo n.º 1
0
        public BackGround(asd.Vector2DF pos, Player player)
        {
            bgTexture1 = new BackGroundTexture(pos, "Resources/background_01.png", 10, player);
            bgTexture2 = new BackGroundTexture(pos, "Resources/background_02.png", 8, player);
            bgTexture3 = new BackGroundTexture(pos, "Resources/background_03.png", 5, player);

            bgTexture1.DrawingPriority = 1;
            bgTexture2.DrawingPriority = 2;
            bgTexture3.DrawingPriority = 3;
        }
Exemplo n.º 2
0
        protected override void OnRegistered()
        {
            isFever = false;

            BackGround bg1 = new BackGround(new asd.Vector2DF(0.0f, 0.0f), player);
            BackGround bg2 = new BackGround(new asd.Vector2DF(0.0f, -bg1.bgTexture1.Texture.Size.Y), player);

            AddLayer(backLayer);
            backLayer.DrawingPriority = 10;
            backLayer.AddObject(bg1.bgTexture1);
            backLayer.AddObject(bg1.bgTexture2);
            backLayer.AddObject(bg1.bgTexture3);
            backLayer.AddObject(bg2.bgTexture1);
            backLayer.AddObject(bg2.bgTexture2);
            backLayer.AddObject(bg2.bgTexture3);

            bg3 = new BackGroundTexture(new asd.Vector2DF(0.0f, 0.0f), "Resources/background_fevermode0.png", 40.0f, player);
            bg4 = new BackGroundTexture(new asd.Vector2DF(0.0f, -bg3.Texture.Size.Y), "Resources/background_fevermode0.png", 40.0f, player);
            AddLayer(feverLayer);
            feverLayer.DrawingPriority = 1;
            feverLayer.AddObject(bg3);
            feverLayer.AddObject(bg4);

            AddLayer(layer);
            layer.DrawingPriority = 100;
            layer.AddObject(player);
            player.DrawingPriority = 110;

            AddLayer(scoreWindow);
            scoreWindow.DrawingPriority = 1000;
            scoreWindow.AddObject(scoreWindow.window);
            scoreWindow.AddObject(scoreWindow.score);
            scoreWindow.AddObject(scoreWindow.point);

            wSize = asd.Engine.WindowSize.To2DF();

            count      = 0;
            feverCount = 0;
        }