--// Local auxiliary functions - - - - - - - - - - - - - - - - - - - - - - - -

--// 1.	rename:					" -> '
--// 2. comment root composition routine "createCompositionPalatka = function()"
--// 5. add auxiliaru routines for managing animations: auxPlayDinoAnimation(), auxGetDinoAnimation(), auxCreateDinoAnimations()

------------------------------------------------------------------------------
--
function auxPlayAtCollapsedAirshipAnimation(compositionName)
    local composition = auxGetAtCollapsedAirshipAnimation(compositionName);
    composition:SetVisible(true);
    composition:Play();
end

------------------------------------------------------------------------------
--
function auxGetAtCollapsedAirshipAnimation(compositionName)
    assert(atCollapsedAirshipCompositions ~= nil and compositionName ~= nil);
	assert(atCollapsedAirshipCompositions[compositionName] ~= nil and 'Composition with specified name not exists !');

    return atCollapsedAirshipCompositions[compositionName];
end

-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--

function CreateComposition(parent, compositionRoutine, name, x,y,z, hotSpotX,hotSpotY, duration, isCyclic)
    assert(parent ~= nil and compositionRoutine ~= nil and name ~= nil and z ~= nil and duration ~= nil);

    local element = compositionRoutine();
    element:SetName(name);
    element:SetHotSpot(hotSpotX,hotSpotY);
    element:SetXY(x, y);
    assert(z - parent:GetZ());
    element:SetZ(z - parent:GetZ());
    element:AttachTo(parent);

    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetAngle(0);
    element:SetOpacity(1);
    
    if (isCyclic == true) then
        element:SetDuration(duration);
        element:SetCyclic(true);
    end
	element:Stop();
    element:SetVisible(false);
    element:AssignClippingRect(parent);
	element:SetConsiderParentOpacity(true);

	return element;
end

------------------------------------------------------------------------------
--
function auxCreateAtCollapsedAirshipAnimations(parent)
    assert(parent ~= nil);
    atCollapsedAirshipCompositions = {};
    local CreateAndRegisterComposition = function (parent, compositionRoutine, name, x,y,z, hotSpotX,hotSpotY, duration, isCyclic)
        local element = CreateComposition(parent, compositionRoutine, name, x,y,z, hotSpotX,hotSpotY, duration, isCyclic);
        atCollapsedAirshipCompositions[element:GetName()] = element;
    end
    
    CreateAndRegisterComposition(parent, createCompositionSpider2, 'Spider2', 0,0,103.5, 512,384, 12, true);
    CreateAndRegisterComposition(parent, createCompositiondust_cycle, 'Dust', 0,0,110.0, 512,384, 10.79166, true);
    CreateAndRegisterComposition(parent, createCompositionSpider1, 'Spider1', 0,0,105.0, 512,384, 10.5, true);

    CreateAndRegisterComposition(parent, createCompositionsvet_cycle, 'Light1', 379.09-512,505.14-384,102.0, 512,384, 2.0, true);
    CreateAndRegisterComposition(parent, createCompositionsvet_cycle, 'Light2', 522.58-512,515.72-384,102.5, 512,384, 2.0, true);
	do
		local lightComposition1 = atCollapsedAirshipCompositions['Light1'];
		local lightComposition2 = atCollapsedAirshipCompositions['Light2'];

		assert(lightComposition1 ~= nil and lightComposition2 ~= nil);

		lightComposition1:SetAngle(-0.6427);
		lightComposition2:SetAngle(-0.8698);
	end
end

------------------------------------------------------------------------------
--
--createCompositionPalatka = function()
--
--    local compositionPalatka = CreateCompositionSequence();
--    local compositionDuration = 11.92;
--    compositionPalatka:SetDuration(compositionDuration);
--
--
--    -- Layer Layer_1
--    local element = createCompositionSpider2();
--    element:SetName('Layer_1');
--    compositionPalatka:AddElement(element);
--    element:SetHotSpot(512, 384);
--    element:SetParentElement(compositionPalatka);
--    element:SetXY(512, 384);
--
--    element:SetScaleX(1);
--    element:SetScaleY(1);
--    element:SetAngle(0);
--    element:SetOpacity(1);
--
--    effector = element:GetEffector();
--    effector:SetLifeTime(0, 12);
--
--
--    effector:Play();
--
--
--    -- Layer Layer_2
--    local element = createCompositiondust_cycle();
--    element:SetName('Layer_2');
--    compositionPalatka:AddElement(element);
--    element:SetHotSpot(512, 384);
--    element:SetParentElement(compositionPalatka);
--    element:SetXY(512, 384);
--
--    element:SetScaleX(1);
--    element:SetScaleY(1);
--    element:SetAngle(0);
--    element:SetOpacity(1);
--
--    effector = element:GetEffector();
--    effector:SetLifeTime(0, 10.7916666666667);
--
--
--    effector:Play();
--
--
--    -- Layer Layer_3
--    local element = createCompositionSpider1();
--    element:SetName('Layer_3');
--    compositionPalatka:AddElement(element);
--    element:SetHotSpot(512, 384);
--    element:SetParentElement(compositionPalatka);
--    element:SetXY(512, 384);
--
--    element:SetScaleX(1);
--    element:SetScaleY(1);
--    element:SetAngle(0);
--    element:SetOpacity(1);
--
--    effector = element:GetEffector();
--    effector:SetLifeTime(0, 10.5);
--
--
--    effector:Play();
--
--
--    -- Layer Layer_4
--    local element = createCompositionsvet_cycle();
--    element:SetName('Layer_4');
--    compositionPalatka:AddElement(element);
--    element:SetHotSpot(512, 384);
--    element:SetParentElement(compositionPalatka);
--    element:SetXY(379.099563598633, 505.139358520508);
--
--    element:SetScaleX(1);
--    element:SetScaleY(1);
--    element:SetAngle(-0.64271778422554);
--    element:SetOpacity(1);
--
--    effector = element:GetEffector();
--    effector:SetLifeTime(0, 2);
--
--
--    effector:Play();
--
--
--    -- Layer Layer_5
--    local element = createCompositionsvet_cycle();
--    element:SetName('Layer_5');
--    compositionPalatka:AddElement(element);
--    element:SetHotSpot(512, 384);
--    element:SetParentElement(compositionPalatka);
--    element:SetXY(522.584991455078, 515.724349975586);
--
--    element:SetScaleX(1);
--    element:SetScaleY(1);
--    element:SetAngle(-0.86983038617411);
--    element:SetOpacity(1);
--
--    effector = element:GetEffector();
--    effector:SetLifeTime(0, 2);
--
--
--    effector:Play();
--
--
--    -- Layer Layer_6
--    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/bg.png');
--    element:SetName('Layer_6');
--    compositionPalatka:AddElement(element);
--    element:SetHotSpot(512, 384);
--    element:SetParentElement(compositionPalatka);
--    element:SetXY(512, 384);
--
--    element:SetScaleX(1);
--    element:SetScaleY(1);
--    element:SetAngle(0);
--    element:SetOpacity(1);
--
--    effector = element:GetEffector();
--    effector:SetLifeTime(0, 120);
--
--
--    effector:Play();
--
--    compositionPalatka:Play();
--
--    return compositionPalatka;
--end

createCompositiondust_cycle = function()

    local compositiondust_cycle = CreateCompositionSequence();
    local compositionDuration = 10.76;
    compositiondust_cycle:SetDuration(compositionDuration);


    -- Layer Layer_1
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/dust.png');
    element:SetName('Layer_1');
    compositiondust_cycle:AddElement(element);
    element:SetHotSpot(514, 514);
    element:SetParentElement(compositiondust_cycle);
    element:SetXY(514, 254);

    element:SetAngle(0);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 1.66);

    effector:SetKey(_TRACK_SX, -5.48, 1);
    effector:SetKey(_TRACK_SY, -5.48, 1);
    effector:SetKey(_TRACK_SX, 1.64, 1.38);
    effector:SetKey(_TRACK_SY, 1.64, 1.38);
    effector:SetKey(_TRACK_O, -5.48, 0);
    effector:SetKey(_TRACK_O, -3.84, 1);
    effector:SetKey(_TRACK_O, -0.04, 1);
    effector:SetKey(_TRACK_O, 1.64, 0);

    effector:Play();


    -- Layer Layer_2
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/dust.png');
    element:SetName('Layer_2');
    compositiondust_cycle:AddElement(element);
    element:SetHotSpot(514, 514);
    element:SetParentElement(compositiondust_cycle);
    element:SetXY(514, 254);

    element:SetAngle(0);

    effector = element:GetEffector();
    effector:SetLifeTime(5.36, 10.8);

    effector:SetKey(_TRACK_SX, 5.36, 1);
    effector:SetKey(_TRACK_SY, 5.36, 1);
    effector:SetKey(_TRACK_SX, 10.8, 1.29033707865169);
    effector:SetKey(_TRACK_SY, 10.8, 1.29033707865169);
    effector:SetKey(_TRACK_O, 5.36, 0);
    effector:SetKey(_TRACK_O, 7, 1);
    effector:SetKey(_TRACK_O, 10.8, 1);

    effector:Play();


    -- Layer Layer_3
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/dust.png');
    element:SetName('Layer_3');
    compositiondust_cycle:AddElement(element);
    element:SetHotSpot(514, 514);
    element:SetParentElement(compositiondust_cycle);
    element:SetXY(514, 254);

    element:SetAngle(0);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 7.14);

    effector:SetKey(_TRACK_SX, 0, 1);
    effector:SetKey(_TRACK_SY, 0, 1);
    effector:SetKey(_TRACK_SX, 7.12, 1.38);
    effector:SetKey(_TRACK_SY, 7.12, 1.38);
    effector:SetKey(_TRACK_O, 0, 0);
    effector:SetKey(_TRACK_O, 1.64, 1);
    effector:SetKey(_TRACK_O, 5.44, 1);
    effector:SetKey(_TRACK_O, 7.12, 0);

    effector:Play();

    compositiondust_cycle:Play();

    return compositiondust_cycle;
end

createCompositionFire_dust_cycle = function()

    local compositionFire_dust_cycle = CreateCompositionSequence();
    local compositionDuration = 3.8;
    compositionFire_dust_cycle:SetDuration(compositionDuration);

    compositionFire_dust_cycle:Play();

    return compositionFire_dust_cycle;
end

createCompositionsmoke_cycle = function()

    local compositionsmoke_cycle = CreateCompositionSequence();
    local compositionDuration = 2.08;
    compositionsmoke_cycle:SetDuration(compositionDuration);


    -- Layer Layer_1
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/smoke3.png');
    element:SetName('Layer_1');
    compositionsmoke_cycle:AddElement(element);
    element:SetHotSpot(155.5, 480);
    element:SetParentElement(compositionsmoke_cycle);
    element:SetXY(531, 644);

    element:SetAngle(0);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 1);

    effector:SetKey(_TRACK_SX, -1.08, 1);
    effector:SetKey(_TRACK_SY, -1.08, 0.72708333333333);
    effector:SetKey(_TRACK_SX, 0.96, 1);
    effector:SetKey(_TRACK_SY, 0.96, 1.37083333333333);
    effector:SetKey(_TRACK_O, -1.08, 0);
    effector:SetKey(_TRACK_O, -0.08, 1);
    effector:SetKey(_TRACK_O, 0.96, 0);

    effector:Play();


    -- Layer Layer_2
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/smoke3.png');
    element:SetName('Layer_2');
    compositionsmoke_cycle:AddElement(element);
    element:SetHotSpot(155.5, 480);
    element:SetParentElement(compositionsmoke_cycle);
    element:SetXY(531, 644);

    element:SetAngle(0);

    effector = element:GetEffector();
    effector:SetLifeTime(1, 2.08);

    effector:SetKey(_TRACK_SX, 1, 1);
    effector:SetKey(_TRACK_SY, 1, 0.72708333333333);
    effector:SetKey(_TRACK_SX, 3.04, 1);
    effector:SetKey(_TRACK_SY, 3.04, 1.37083333333333);
    effector:SetKey(_TRACK_O, 1, 0);
    effector:SetKey(_TRACK_O, 2, 1);
    effector:SetKey(_TRACK_O, 3.04, 0);

    effector:Play();


    -- Layer Layer_3
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/smoke3.png');
    element:SetName('Layer_3');
    compositionsmoke_cycle:AddElement(element);
    element:SetHotSpot(155.5, 480);
    element:SetParentElement(compositionsmoke_cycle);
    element:SetXY(531, 644);

    element:SetAngle(0);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 2.08);

    effector:SetKey(_TRACK_SX, 0, 1);
    effector:SetKey(_TRACK_SY, 0, 0.72708333333333);
    effector:SetKey(_TRACK_SX, 2.04, 1);
    effector:SetKey(_TRACK_SY, 2.04, 1.37083333333333);
    effector:SetKey(_TRACK_O, 0, 0);
    effector:SetKey(_TRACK_O, 1, 1);
    effector:SetKey(_TRACK_O, 2.04, 0);

    effector:Play();

    compositionsmoke_cycle:Play();

    return compositionsmoke_cycle;
end

createCompositionSpider1 = function()

    local compositionSpider1 = CreateCompositionSequence();
    local compositionDuration = 10.16;
    compositionSpider1:SetDuration(compositionDuration);


    -- Layer Layer_1
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/blic.png');
    element:SetName('Layer_1');
    compositionSpider1:AddElement(element);
    element:SetHotSpot(18.5, 9.5);
    compositionSpider1:RegisterParentInfo('Layer_1', 'Layer_3');
    element:SetXY(35.25, 33.25);

    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetAngle(0);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10.52);


    effector:Play();


    -- Layer Layer_2
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/eyes.png');
    element:SetName('Layer_2');
    compositionSpider1:AddElement(element);
    element:SetHotSpot(16, 20);
    compositionSpider1:RegisterParentInfo('Layer_2', 'Layer_3');
    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetAngle(0);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10.52);

    effector:SetKey(_TRACK_X, 0, 34);
    effector:SetKey(_TRACK_Y, 0, 32.25);
    effector:SetKey(_TRACK_X, 0.2, 35.732963042085);
    effector:SetKey(_TRACK_Y, 0.2, 30.2201528977325);
    effector:SetKey(_TRACK_X, 0.4, 33.8781701101718);
    effector:SetKey(_TRACK_Y, 0.4, 30.5707495345927);
    effector:SetKey(_TRACK_X, 0.6, 33.2254402294992);
    effector:SetKey(_TRACK_Y, 0.6, 34.410222174749);
    effector:SetKey(_TRACK_X, 0.8, 37.5225684377575);
    effector:SetKey(_TRACK_Y, 0.8, 30.4249931333354);
    effector:SetKey(_TRACK_X, 1, 36.119571520127);
    effector:SetKey(_TRACK_Y, 1, 35.6664860988189);
    effector:SetKey(_TRACK_X, 1.2, 34.4087038789026);
    effector:SetKey(_TRACK_Y, 1.2, 33.2215872676778);
    effector:SetKey(_TRACK_X, 1.4, 33.2471694082461);
    effector:SetKey(_TRACK_Y, 1.4, 29.5360499893185);
    effector:SetKey(_TRACK_X, 1.6, 30.4802392651143);
    effector:SetKey(_TRACK_Y, 1.6, 31.5319605090487);
    effector:SetKey(_TRACK_X, 1.8, 31.1666615802484);
    effector:SetKey(_TRACK_Y, 1.8, 30.2620242927335);
    effector:SetKey(_TRACK_X, 2, 36.0221564378796);
    effector:SetKey(_TRACK_Y, 2, 29.5030899990844);
    effector:SetKey(_TRACK_X, 2.2, 34.7413556321909);
    effector:SetKey(_TRACK_Y, 2.2, 32.9708471938231);
    effector:SetKey(_TRACK_X, 2.4, 37.092135380108);
    effector:SetKey(_TRACK_Y, 2.4, 30.7698522904141);
    effector:SetKey(_TRACK_X, 2.6, 34.7275612659078);
    effector:SetKey(_TRACK_Y, 2.6, 29.2407528916288);
    effector:SetKey(_TRACK_X, 2.8, 30.5877864925077);
    effector:SetKey(_TRACK_Y, 2.8, 32.3382595294046);
    effector:SetKey(_TRACK_X, 3, 33.7117831965087);
    effector:SetKey(_TRACK_Y, 3, 35.5447782830287);
    effector:SetKey(_TRACK_X, 3.2, 34.7066866054262);
    effector:SetKey(_TRACK_Y, 3.2, 29.2750556962798);
    effector:SetKey(_TRACK_X, 3.4, 36.3924069948424);
    effector:SetKey(_TRACK_Y, 3.4, 31.3656956694235);
    effector:SetKey(_TRACK_X, 3.6, 32.5584276863918);
    effector:SetKey(_TRACK_Y, 3.6, 36.1129108554338);
    effector:SetKey(_TRACK_X, 3.8, 30.314096499527);
    effector:SetKey(_TRACK_Y, 3.8, 28.8662297433393);
    effector:SetKey(_TRACK_X, 4, 36.8131962034974);
    effector:SetKey(_TRACK_Y, 4, 29.6423764763329);
    effector:SetKey(_TRACK_X, 4.2, 37.7955259865108);
    effector:SetKey(_TRACK_Y, 4.2, 33.4216666158025);
    effector:SetKey(_TRACK_X, 4.4, 35.1510361033967);
    effector:SetKey(_TRACK_Y, 4.4, 34.1117511520737);
    effector:SetKey(_TRACK_X, 4.6, 33.1382793664357);
    effector:SetKey(_TRACK_Y, 4.6, 31.2139576403088);
    effector:SetKey(_TRACK_X, 4.8, 34.8600115970336);
    effector:SetKey(_TRACK_Y, 4.8, 31.5342799157689);
    effector:SetKey(_TRACK_X, 5, 34.4220099490341);
    effector:SetKey(_TRACK_Y, 5, 31.1492584002197);
    effector:SetKey(_TRACK_X, 5.2, 34.0256355479598);
    effector:SetKey(_TRACK_Y, 5.2, 32.691175572985);
    effector:SetKey(_TRACK_X, 5.4, 31.2300180059206);
    effector:SetKey(_TRACK_Y, 5.4, 29.0842539750359);
    effector:SetKey(_TRACK_X, 5.6, 36.8097781304361);
    effector:SetKey(_TRACK_Y, 5.6, 28.790421765801);
    effector:SetKey(_TRACK_X, 5.8, 30.0831324198126);
    effector:SetKey(_TRACK_Y, 5.8, 31.6635563219092);
    effector:SetKey(_TRACK_X, 6, 34);
    effector:SetKey(_TRACK_Y, 6, 32.25);

    effector:Play();


    -- Layer Layer_3
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/telo.png');
    element:SetName('Layer_3');
    compositionSpider1:AddElement(element);
    element:SetHotSpot(34.5, 38.5);
    element:SetParentElement(compositionSpider1);
    element:SetScaleX(0.3342518351214);
    element:SetScaleY(0.3342518351214);
    element:SetAngle(0);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10.52);

    effector:SetKey(_TRACK_X, 0, 990.75);
    effector:SetKey(_TRACK_Y, 0, -26.25);
    effector:SetKey(_TRACK_X, 0.24, 990.75);
    effector:SetKey(_TRACK_Y, 0.24, 115.221788868509);
    effector:SetKey(_TRACK_X, 0.68, 990.75);
    effector:SetKey(_TRACK_Y, 0.68, 204.998446704651);
    effector:SetKey(_TRACK_X, 0.88, 990.75);
    effector:SetKey(_TRACK_Y, 0.88, 286.615609648803);
    effector:SetKey(_TRACK_X, 1.36, 990.75);
    effector:SetKey(_TRACK_Y, 1.36, 343.75);
    effector:SetKey(_TRACK_X, 3.04, 990.75);
    effector:SetKey(_TRACK_Y, 3.04, 343.75);
    effector:SetKey(_TRACK_X, 3.64, 990.75);
    effector:SetKey(_TRACK_Y, 3.64, 263.75);
    effector:SetKey(_TRACK_X, 4.04, 990.75);
    effector:SetKey(_TRACK_Y, 4.04, 244.75);
    effector:SetKey(_TRACK_X, 4.68, 990.75);
    effector:SetKey(_TRACK_Y, 4.68, 134.75);
    effector:SetKey(_TRACK_X, 5.32, 990.75);
    effector:SetKey(_TRACK_Y, 5.32, 104.75);
    effector:SetKey(_TRACK_X, 6, 990.75);
    effector:SetKey(_TRACK_Y, 6, -35.25);

    effector:Play();


    -- Layer Layer_4
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/pautikka.png');
    element:SetName('Layer_4');
    compositionSpider1:AddElement(element);
    element:SetHotSpot(5.5, 270.5);
    compositionSpider1:RegisterParentInfo('Layer_4', 'Layer_3');
    element:SetXY(33.1939528023578, -293.671337266424);

    element:SetScaleX(1.74139626352016);
    element:SetScaleY(3.19139626352016);
    element:SetAngle(0);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10.52);


    effector:Play();


    -- Layer Layer_5
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/lapa.png');
    element:SetName('Layer_5');
    compositionSpider1:AddElement(element);
    element:SetHotSpot(5, 41);
    compositionSpider1:RegisterParentInfo('Layer_5', 'Layer_3');
    element:SetXY(23.5, 44.25);

    element:SetScaleX(-1.16666666666667);
    element:SetScaleY(0.977587343441);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10.52);

    effector:SetKey(_TRACK_A, 0, -0.36392289896542);
    effector:SetKey(_TRACK_A, 0.2, -0.37487415156102);
    effector:SetKey(_TRACK_A, 0.4, -0.44582292810449);
    effector:SetKey(_TRACK_A, 0.6, -0.11890460159306);
    effector:SetKey(_TRACK_A, 0.8, 0.04898619695426);
    effector:SetKey(_TRACK_A, 1, 0.27664015412153);
    effector:SetKey(_TRACK_A, 1.2, -0.41380010193487);
    effector:SetKey(_TRACK_A, 1.4, -0.97131260518204);
    effector:SetKey(_TRACK_A, 1.6, 0.08305439325847);
    effector:SetKey(_TRACK_A, 1.8, -0.43926069892269);
    effector:SetKey(_TRACK_A, 2, -0.9775126334025);
    effector:SetKey(_TRACK_A, 2.2, -0.11888329565416);
    effector:SetKey(_TRACK_A, 2.4, -0.50417989475692);
    effector:SetKey(_TRACK_A, 2.6, -0.45536798873256);
    effector:SetKey(_TRACK_A, 2.8, 0.30778943679617);
    effector:SetKey(_TRACK_A, 3, -0.39385774312265);
    effector:SetKey(_TRACK_A, 3.2, -1.01980492212286);
    effector:SetKey(_TRACK_A, 3.4, -0.29425247875606);
    effector:SetKey(_TRACK_A, 3.6, -0.17355433487655);
    effector:SetKey(_TRACK_A, 3.8, 0.00965543374127);
    effector:SetKey(_TRACK_A, 4, -0.04075441770073);
    effector:SetKey(_TRACK_A, 4.2, -0.98914567604297);
    effector:SetKey(_TRACK_A, 4.4, 0.00006776123539);
    effector:SetKey(_TRACK_A, 4.6, 0.17311459699698);
    effector:SetKey(_TRACK_A, 4.8, 0.23809771064791);
    effector:SetKey(_TRACK_A, 5, 0.32858403316447);
    effector:SetKey(_TRACK_A, 5.2, -0.34025200084536);
    effector:SetKey(_TRACK_A, 5.4, -0.83574291594897);
    effector:SetKey(_TRACK_A, 5.6, 0.25092388586688);
    effector:SetKey(_TRACK_A, 5.8, 0.26732945882138);
    effector:SetKey(_TRACK_A, 6, -0.36392289896542);

    effector:Play();


    -- Layer Layer_6
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/lapa.png');
    element:SetName('Layer_6');
    compositionSpider1:AddElement(element);
    element:SetHotSpot(5, 41);
    compositionSpider1:RegisterParentInfo('Layer_6', 'Layer_3');
    element:SetXY(22.25, 32.25);

    element:SetScaleX(-1.16666666666667);
    element:SetScaleY(0.977587343441);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10.52);

    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.2, 0.49291289649648);
    effector:SetKey(_TRACK_A, 0.4, 0.18389155866268);
    effector:SetKey(_TRACK_A, 0.6, -0.51362226910916);
    effector:SetKey(_TRACK_A, 0.8, -0.25688570534074);
    effector:SetKey(_TRACK_A, 1, 0.27171463881649);
    effector:SetKey(_TRACK_A, 1.2, 0.36011297932066);
    effector:SetKey(_TRACK_A, 1.4, 0.06975564396496);
    effector:SetKey(_TRACK_A, 1.6, -0.30678421424909);
    effector:SetKey(_TRACK_A, 1.8, 0.6192358082461);
    effector:SetKey(_TRACK_A, 2, -0.17234373977783);
    effector:SetKey(_TRACK_A, 2.2, 0.11447680972015);
    effector:SetKey(_TRACK_A, 2.4, 0.28179234791711);
    effector:SetKey(_TRACK_A, 2.6, -0.5095954466567);
    effector:SetKey(_TRACK_A, 2.8, -0.09110419474471);
    effector:SetKey(_TRACK_A, 3, -0.02441660598163);
    effector:SetKey(_TRACK_A, 3.2, 0.39179491046785);
    effector:SetKey(_TRACK_A, 3.4, -0.220324714185);
    effector:SetKey(_TRACK_A, 3.6, 0.35144146218757);
    effector:SetKey(_TRACK_A, 3.8, 0.48358089525742);
    effector:SetKey(_TRACK_A, 4, -0.10271593144627);
    effector:SetKey(_TRACK_A, 4.2, -0.57675176607562);
    effector:SetKey(_TRACK_A, 4.4, -0.39390419841914);
    effector:SetKey(_TRACK_A, 4.6, 0.15357320760521);
    effector:SetKey(_TRACK_A, 4.8, 0.2389674107242);
    effector:SetKey(_TRACK_A, 5, 0.53865674731895);
    effector:SetKey(_TRACK_A, 5.2, 0.13799856626789);
    effector:SetKey(_TRACK_A, 5.4, -0.45971824368725);
    effector:SetKey(_TRACK_A, 5.6, 0.63542832181158);
    effector:SetKey(_TRACK_A, 5.8, 0.11000256255074);
    effector:SetKey(_TRACK_A, 6, 0);

    effector:Play();


    -- Layer Layer_7
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/lapa.png');
    element:SetName('Layer_7');
    compositionSpider1:AddElement(element);
    element:SetHotSpot(5, 41);
    compositionSpider1:RegisterParentInfo('Layer_7', 'Layer_3');
    element:SetXY(26, 21.25);

    element:SetScaleX(-0.7948717948718);
    element:SetScaleY(0.77027027027027);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10.52);

    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.2, 0.32016434387951);
    effector:SetKey(_TRACK_A, 0.4, 0.19452322217475);
    effector:SetKey(_TRACK_A, 0.6, 0.33011421734672);
    effector:SetKey(_TRACK_A, 0.8, -0.51392055225379);
    effector:SetKey(_TRACK_A, 1, 0.2279522403119);
    effector:SetKey(_TRACK_A, 1.2, -0.09479012217475);
    effector:SetKey(_TRACK_A, 1.4, 0.33708125936766);
    effector:SetKey(_TRACK_A, 1.6, -0.48914174531083);
    effector:SetKey(_TRACK_A, 1.8, 0.0668154243965);
    effector:SetKey(_TRACK_A, 2, 0.33490805359966);
    effector:SetKey(_TRACK_A, 2.2, -0.57636825917539);
    effector:SetKey(_TRACK_A, 2.4, -0.21857762719504);
    effector:SetKey(_TRACK_A, 2.6, -0.50782705372784);
    effector:SetKey(_TRACK_A, 2.8, 0.3342688754326);
    effector:SetKey(_TRACK_A, 3, -0.03828677220679);
    effector:SetKey(_TRACK_A, 3.2, -0.08036600153813);
    effector:SetKey(_TRACK_A, 3.4, 0.22624776519974);
    effector:SetKey(_TRACK_A, 3.6, -0.00828801023286);
    effector:SetKey(_TRACK_A, 3.8, -0.33582420897244);
    effector:SetKey(_TRACK_A, 4, 0.60378900254219);
    effector:SetKey(_TRACK_A, 4.2, 0.36036865058748);
    effector:SetKey(_TRACK_A, 4.4, 0.40941492193976);
    effector:SetKey(_TRACK_A, 4.6, -0.25837712106388);
    effector:SetKey(_TRACK_A, 4.8, 0.53563130399487);
    effector:SetKey(_TRACK_A, 5, 0.33081731333048);
    effector:SetKey(_TRACK_A, 5.2, -0.61529420954924);
    effector:SetKey(_TRACK_A, 5.4, -0.53616395246742);
    effector:SetKey(_TRACK_A, 5.6, 0.2301680579577);
    effector:SetKey(_TRACK_A, 5.8, 0.37950138372143);
    effector:SetKey(_TRACK_A, 6, 0);

    effector:Play();


    -- Layer Layer_8
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/lapa.png');
    element:SetName('Layer_8');
    compositionSpider1:AddElement(element);
    element:SetHotSpot(5, 41);
    compositionSpider1:RegisterParentInfo('Layer_8', 'Layer_3');
    element:SetXY(43.25, 20.5);

    element:SetScaleX(0.76282051282051);
    element:SetScaleY(0.77027027027027);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10.52);

    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.2, 0.58810783151036);
    effector:SetKey(_TRACK_A, 0.4, -0.35604354499039);
    effector:SetKey(_TRACK_A, 0.6, -0.58531675351421);
    effector:SetKey(_TRACK_A, 0.8, -0.34458094986114);
    effector:SetKey(_TRACK_A, 1, 0.33778435535142);
    effector:SetKey(_TRACK_A, 1.2, -0.33686819997864);
    effector:SetKey(_TRACK_A, 1.4, 0.24621142995087);
    effector:SetKey(_TRACK_A, 1.6, -0.68464504067507);
    effector:SetKey(_TRACK_A, 1.8, 0.03583658923307);
    effector:SetKey(_TRACK_A, 2, 0.28426383682974);
    effector:SetKey(_TRACK_A, 2.2, -0.52536184144414);
    effector:SetKey(_TRACK_A, 2.4, 0.2224340021363);
    effector:SetKey(_TRACK_A, 2.6, -0.22089997453536);
    effector:SetKey(_TRACK_A, 2.8, 0.14185494120914);
    effector:SetKey(_TRACK_A, 3, -0.41467748884854);
    effector:SetKey(_TRACK_A, 3.2, -0.48253690425123);
    effector:SetKey(_TRACK_A, 3.4, -0.00368592743004);
    effector:SetKey(_TRACK_A, 3.6, -0.36641953723563);
    effector:SetKey(_TRACK_A, 3.8, 0.6893110412946);
    effector:SetKey(_TRACK_A, 4, -0.09236124513993);
    effector:SetKey(_TRACK_A, 4.2, 0.28232499638966);
    effector:SetKey(_TRACK_A, 4.4, 0.10337641555223);
    effector:SetKey(_TRACK_A, 4.6, -0.35972947242042);
    effector:SetKey(_TRACK_A, 4.8, -0.50639955582141);
    effector:SetKey(_TRACK_A, 5, -0.41248297714164);
    effector:SetKey(_TRACK_A, 5.2, 0.68577425543687);
    effector:SetKey(_TRACK_A, 5.4, 0.54151174313181);
    effector:SetKey(_TRACK_A, 5.6, 0.29838967432173);
    effector:SetKey(_TRACK_A, 5.8, 0.20085108602863);
    effector:SetKey(_TRACK_A, 6, 0);

    effector:Play();


    -- Layer Layer_9
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/lapa.png');
    element:SetName('Layer_9');
    compositionSpider1:AddElement(element);
    element:SetHotSpot(5, 41);
    compositionSpider1:RegisterParentInfo('Layer_9', 'Layer_3');
    element:SetXY(48.5, 43.75);

    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10.52);

    effector:SetKey(_TRACK_A, 0, 0.45866733925171);
    effector:SetKey(_TRACK_A, 0.2, 0.09676466106329);
    effector:SetKey(_TRACK_A, 0.4, 0.69942444884368);
    effector:SetKey(_TRACK_A, 0.6, 0.43529472427628);
    effector:SetKey(_TRACK_A, 0.8, 0.87355788748927);
    effector:SetKey(_TRACK_A, 1, 0.93008254339612);
    effector:SetKey(_TRACK_A, 1.2, -0.13063362483716);
    effector:SetKey(_TRACK_A, 1.4, 0.87181080049931);
    effector:SetKey(_TRACK_A, 1.6, 0.50149227644462);
    effector:SetKey(_TRACK_A, 1.8, -0.01004201065216);
    effector:SetKey(_TRACK_A, 2, -0.12061983355325);
    effector:SetKey(_TRACK_A, 2.2, 0.76736908800198);
    effector:SetKey(_TRACK_A, 2.4, 0.83518589152687);
    effector:SetKey(_TRACK_A, 2.6, -0.03045310012022);
    effector:SetKey(_TRACK_A, 2.8, 0.92236979351362);
    effector:SetKey(_TRACK_A, 3, 0.31076151139442);
    effector:SetKey(_TRACK_A, 3.2, 0.9626806299161);
    effector:SetKey(_TRACK_A, 3.4, 0.68664088550251);
    effector:SetKey(_TRACK_A, 3.6, 0.45291473574819);
    effector:SetKey(_TRACK_A, 3.8, 1.0568954917405);
    effector:SetKey(_TRACK_A, 4, 0.94802214395156);
    effector:SetKey(_TRACK_A, 4.2, 0.49829638560933);
    effector:SetKey(_TRACK_A, 4.4, 0.16081031340253);
    effector:SetKey(_TRACK_A, 4.6, 0.42466306076421);
    effector:SetKey(_TRACK_A, 4.8, -0.15860832261541);
    effector:SetKey(_TRACK_A, 5, 0.83710342602804);
    effector:SetKey(_TRACK_A, 5.2, 0.89045349703851);
    effector:SetKey(_TRACK_A, 5.4, 0.58848442498126);
    effector:SetKey(_TRACK_A, 5.6, 0.83458932523761);
    effector:SetKey(_TRACK_A, 5.8, 0.73835039921753);
    effector:SetKey(_TRACK_A, 6, 0.45866733925171);

    effector:Play();


    -- Layer Layer_10
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/lapa.png');
    element:SetName('Layer_10');
    compositionSpider1:AddElement(element);
    element:SetHotSpot(5, 41);
    compositionSpider1:RegisterParentInfo('Layer_10', 'Layer_3');
    element:SetXY(50.25, 32);

    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 10.52);

    effector:SetKey(_TRACK_A, 0, 0);
    effector:SetKey(_TRACK_A, 0.2, 0.6685377508652);
    effector:SetKey(_TRACK_A, 0.4, 0.4657904362743);
    effector:SetKey(_TRACK_A, 0.6, 0.38325122896817);
    effector:SetKey(_TRACK_A, 0.8, 0.67887113123264);
    effector:SetKey(_TRACK_A, 1, 0.17824548485366);
    effector:SetKey(_TRACK_A, 1.2, 0.60560000734886);
    effector:SetKey(_TRACK_A, 1.4, -0.127111231489);
    effector:SetKey(_TRACK_A, 1.6, 0.63547093368938);
    effector:SetKey(_TRACK_A, 1.8, -0.5468595337962);
    effector:SetKey(_TRACK_A, 2, -0.50064695231788);
    effector:SetKey(_TRACK_A, 2.2, 0.14912026637471);
    effector:SetKey(_TRACK_A, 2.4, -0.53693096626789);
    effector:SetKey(_TRACK_A, 2.6, -0.12157168737449);
    effector:SetKey(_TRACK_A, 2.8, 0.31147152080752);
    effector:SetKey(_TRACK_A, 3, 0.24203546592608);
    effector:SetKey(_TRACK_A, 3.2, 0.4428013281991);
    effector:SetKey(_TRACK_A, 3.4, -0.00639178167058);
    effector:SetKey(_TRACK_A, 3.6, 0.52227248030335);
    effector:SetKey(_TRACK_A, 3.8, 0.64697614069643);
    effector:SetKey(_TRACK_A, 4, 0.35853633984191);
    effector:SetKey(_TRACK_A, 4.2, 0.07793712450331);
    effector:SetKey(_TRACK_A, 4.4, 0.24721280907926);
    effector:SetKey(_TRACK_A, 4.6, -0.38169589542833);
    effector:SetKey(_TRACK_A, 4.8, 0.50537687075411);
    effector:SetKey(_TRACK_A, 5, -0.32434030790429);
    effector:SetKey(_TRACK_A, 5.2, -0.1622234187994);
    effector:SetKey(_TRACK_A, 5.4, -0.19405449151891);
    effector:SetKey(_TRACK_A, 5.6, -0.63057056774194);
    effector:SetKey(_TRACK_A, 5.8, -0.52623538493912);
    effector:SetKey(_TRACK_A, 6, 0);

    effector:Play();

    compositionSpider1:Play();

    return compositionSpider1;
end

createCompositionSpider2 = function()

    local compositionSpider2 = CreateCompositionSequence();
    local compositionDuration = 11.92;
    compositionSpider2:SetDuration(compositionDuration);


    -- Layer Layer_1
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/blic.png');
    element:SetName('Layer_1');
    compositionSpider2:AddElement(element);
    element:SetHotSpot(18.5, 9.5);
    compositionSpider2:RegisterParentInfo('Layer_1', 'Layer_3');
    element:SetXY(35.2499999999995, 33.25);

    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetAngle(0);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 12);


    effector:Play();


    -- Layer Layer_2
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/eyes.png');
    element:SetName('Layer_2');
    compositionSpider2:AddElement(element);
    element:SetHotSpot(16, 20);
    compositionSpider2:RegisterParentInfo('Layer_2', 'Layer_3');
    element:SetScaleX(1);
    element:SetScaleY(1);
    element:SetAngle(0);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 6.68);

    effector:SetKey(_TRACK_X, 0, 33.9999999999995);
    effector:SetKey(_TRACK_Y, 0, 32.25);
    effector:SetKey(_TRACK_X, 0.2, 35.7329630420846);
    effector:SetKey(_TRACK_Y, 0.2, 30.2201528977325);
    effector:SetKey(_TRACK_X, 0.4, 33.8781701101714);
    effector:SetKey(_TRACK_Y, 0.4, 30.5707495345927);
    effector:SetKey(_TRACK_X, 0.6, 33.2254402294987);
    effector:SetKey(_TRACK_Y, 0.6, 34.410222174749);
    effector:SetKey(_TRACK_X, 0.8, 37.522568437757);
    effector:SetKey(_TRACK_Y, 0.8, 30.4249931333354);
    effector:SetKey(_TRACK_X, 1, 36.1195715201265);
    effector:SetKey(_TRACK_Y, 1, 35.6664860988189);
    effector:SetKey(_TRACK_X, 1.2, 34.4087038789021);
    effector:SetKey(_TRACK_Y, 1.2, 33.2215872676778);
    effector:SetKey(_TRACK_X, 1.4, 33.2471694082456);
    effector:SetKey(_TRACK_Y, 1.4, 29.5360499893185);
    effector:SetKey(_TRACK_X, 1.6, 30.4802392651138);
    effector:SetKey(_TRACK_Y, 1.6, 31.5319605090487);
    effector:SetKey(_TRACK_X, 1.8, 31.166661580248);
    effector:SetKey(_TRACK_Y, 1.8, 30.2620242927335);
    effector:SetKey(_TRACK_X, 2, 36.0221564378791);
    effector:SetKey(_TRACK_Y, 2, 29.5030899990844);
    effector:SetKey(_TRACK_X, 2.2, 34.7413556321905);
    effector:SetKey(_TRACK_Y, 2.2, 32.9708471938231);
    effector:SetKey(_TRACK_X, 2.4, 37.0921353801076);
    effector:SetKey(_TRACK_Y, 2.4, 30.7698522904141);
    effector:SetKey(_TRACK_X, 2.6, 34.7275612659073);
    effector:SetKey(_TRACK_Y, 2.6, 29.2407528916288);
    effector:SetKey(_TRACK_X, 2.8, 30.5877864925073);
    effector:SetKey(_TRACK_Y, 2.8, 32.3382595294046);
    effector:SetKey(_TRACK_X, 3, 33.7117831965082);
    effector:SetKey(_TRACK_Y, 3, 35.5447782830287);
    effector:SetKey(_TRACK_X, 3.2, 34.7066866054257);
    effector:SetKey(_TRACK_Y, 3.2, 29.2750556962798);
    effector:SetKey(_TRACK_X, 3.4, 36.3924069948419);
    effector:SetKey(_TRACK_Y, 3.4, 31.3656956694235);
    effector:SetKey(_TRACK_X, 3.6, 32.5584276863913);
    effector:SetKey(_TRACK_Y, 3.6, 36.1129108554338);
    effector:SetKey(_TRACK_X, 3.8, 30.3140964995265);
    effector:SetKey(_TRACK_Y, 3.8, 28.8662297433393);
    effector:SetKey(_TRACK_X, 4, 36.813196203497);
    effector:SetKey(_TRACK_Y, 4, 29.6423764763329);
    effector:SetKey(_TRACK_X, 4.2, 37.7955259865104);
    effector:SetKey(_TRACK_Y, 4.2, 33.4216666158025);
    effector:SetKey(_TRACK_X, 4.4, 35.1510361033963);
    effector:SetKey(_TRACK_Y, 4.4, 34.1117511520737);
    effector:SetKey(_TRACK_X, 4.6, 33.1382793664353);
    effector:SetKey(_TRACK_Y, 4.6, 31.2139576403088);
    effector:SetKey(_TRACK_X, 4.8, 34.8600115970331);
    effector:SetKey(_TRACK_Y, 4.8, 31.5342799157689);
    effector:SetKey(_TRACK_X, 5, 34.4220099490336);
    effector:SetKey(_TRACK_Y, 5, 31.1492584002197);
    effector:SetKey(_TRACK_X, 5.2, 34.0256355479594);
    effector:SetKey(_TRACK_Y, 5.2, 32.691175572985);
    effector:SetKey(_TRACK_X, 5.4, 31.2300180059201);
    effector:SetKey(_TRACK_Y, 5.4, 29.0842539750359);
    effector:SetKey(_TRACK_X, 5.6, 36.8097781304357);
    effector:SetKey(_TRACK_Y, 5.6, 28.790421765801);
    effector:SetKey(_TRACK_X, 5.8, 30.0831324198122);
    effector:SetKey(_TRACK_Y, 5.8, 31.6635563219092);
    effector:SetKey(_TRACK_X, 6, 33.9999999999995);
    effector:SetKey(_TRACK_Y, 6, 32.25);

    effector:Play();


    -- Layer Layer_3
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/telo.png');
    element:SetName('Layer_3');
    compositionSpider2:AddElement(element);
    element:SetHotSpot(34.5, 38.5);
    element:SetParentElement(compositionSpider2);
    element:SetAngle(0);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 6.68);

    effector:SetKey(_TRACK_X, 0.05238437280059, 1047.75);
    effector:SetKey(_TRACK_Y, 0.05238437280059, 656.75);
    effector:SetKey(_TRACK_X, 0.73361557722092, 881.350175353545);
    effector:SetKey(_TRACK_Y, 0.73361557722092, 646.390040420478);
    effector:SetKey(_TRACK_X, 1.36238431930542, 752.75);
    effector:SetKey(_TRACK_Y, 1.36238431930542, 588.75);
    effector:SetKey(_TRACK_X, 1.99119210243225, 600.75);
    effector:SetKey(_TRACK_Y, 1.99119210243225, 592.75);
    effector:SetKey(_TRACK_X, 2.51519203186035, 474.75);
    effector:SetKey(_TRACK_Y, 2.51519203186035, 638.75);
    effector:SetKey(_TRACK_X, 4.24438428878784, 95.75);
    effector:SetKey(_TRACK_Y, 4.24438428878784, 790.75);
    effector:SetKey(_TRACK_SX, 0, 0.3342518351214);
    effector:SetKey(_TRACK_SY, 0, 0.3342518351214);
    effector:SetKey(_TRACK_SX, 0.83998596668243, 0.3342518351214);
    effector:SetKey(_TRACK_SY, 0.83998596668243, 0.3342518351214);
    effector:SetKey(_TRACK_SX, 1.48000502586365, 0.2342518351214);
    effector:SetKey(_TRACK_SY, 1.48000502586365, 0.2342518351214);
    effector:SetKey(_TRACK_SX, 1.99998140335083, 0.2342518351214);
    effector:SetKey(_TRACK_SY, 1.99998140335083, 0.2342518351214);
    effector:SetKey(_TRACK_SX, 4.28001022338867, 0.4642518351214);
    effector:SetKey(_TRACK_SY, 4.28001022338867, 0.4642518351214);

    effector:Play();


    -- Layer Layer_4
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/lapa.png');
    element:SetName('Layer_4');
    compositionSpider2:AddElement(element);
    element:SetHotSpot(5, 41);
    compositionSpider2:RegisterParentInfo('Layer_4', 'Layer_3');
    element:SetXY(23.4999999999995, 44.25);

    element:SetScaleX(-1.79012137559002);
    element:SetScaleY(1.5);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 6.68);

    effector:SetKey(_TRACK_A, 0, -1.08407862374975);
    effector:SetKey(_TRACK_A, 0.14400000572205, -1.10651412382843);
    effector:SetKey(_TRACK_A, 0.28800001144409, -1.25189751430572);
    effector:SetKey(_TRACK_A, 0.43200001716614, -0.58201898759113);
    effector:SetKey(_TRACK_A, 0.57600002288818, -0.2379078842655);
    effector:SetKey(_TRACK_A, 0.72000002861023, 0.22847989460754);
    effector:SetKey(_TRACK_A, 0.86400003433228, -1.18600418233767);
    effector:SetKey(_TRACK_A, 1.00800004005432, -2.32866263310712);
    effector:SetKey(_TRACK_A, 1.15200004577637, -0.16819087531743);
    effector:SetKey(_TRACK_A, 1.29600005149841, -1.23866646078588);
    effector:SetKey(_TRACK_A, 1.44000005722046, -2.34136692476992);
    effector:SetKey(_TRACK_A, 1.5840000629425, -0.58231896140227);
    effector:SetKey(_TRACK_A, 1.72800006866455, -1.3714750224308);
    effector:SetKey(_TRACK_A, 1.8720000743866, -1.27145601143607);
    effector:SetKey(_TRACK_A, 2.01600008010864, 0.29202614893752);
    effector:SetKey(_TRACK_A, 2.16000008583069, -1.14541721408043);
    effector:SetKey(_TRACK_A, 2.30400009155273, -2.42777627402529);
    effector:SetKey(_TRACK_A, 2.44800009727478, -0.94131905764204);
    effector:SetKey(_TRACK_A, 2.59200010299683, -0.69400011513434);
    effector:SetKey(_TRACK_A, 2.73600010871887, -0.31861065384188);
    effector:SetKey(_TRACK_A, 2.88000011444092, -0.42188379233637);
    effector:SetKey(_TRACK_A, 3.02400012016296, -2.36482428845011);
    effector:SetKey(_TRACK_A, 3.16800012588501, -0.33823629121637);
    effector:SetKey(_TRACK_A, 3.31200013160706, 0.01634878399061);
    effector:SetKey(_TRACK_A, 3.4560001373291, 0.14953994441057);
    effector:SetKey(_TRACK_A, 3.60000014305115, 0.33491653747316);
    effector:SetKey(_TRACK_A, 3.74400014877319, -1.03530762297441);
    effector:SetKey(_TRACK_A, 3.88800015449524, -2.05087085355257);
    effector:SetKey(_TRACK_A, 4.03200016021728, 0.17578546149072);
    effector:SetKey(_TRACK_A, 4.17600016593933, 0.20914899557175);
    effector:SetKey(_TRACK_A, 4.32000017166138, -1.08407862374975);

    effector:Play();


    -- Layer Layer_5
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/lapa.png');
    element:SetName('Layer_5');
    compositionSpider2:AddElement(element);
    element:SetHotSpot(5, 41);
    compositionSpider2:RegisterParentInfo('Layer_5', 'Layer_3');
    element:SetXY(22.2499999999995, 32.25);

    element:SetScaleX(-1.43209710047202);
    element:SetScaleY(1.2);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 6.68);

    effector:SetKey(_TRACK_A, 0, -0.3383751387292);
    effector:SetKey(_TRACK_A, 0.14400000572205, 0.67144060897577);
    effector:SetKey(_TRACK_A, 0.28800001144409, 0.03843153254775);
    effector:SetKey(_TRACK_A, 0.43200001716614, -1.39082310819666);
    effector:SetKey(_TRACK_A, 0.57600002288818, -0.8645403736176);
    effector:SetKey(_TRACK_A, 0.72000002861023, 0.21838716909087);
    effector:SetKey(_TRACK_A, 0.86400003433228, 0.39948617653534);
    effector:SetKey(_TRACK_A, 1.00800004005432, -0.19544094318283);
    effector:SetKey(_TRACK_A, 1.15200004577637, -0.96699746055945);
    effector:SetKey(_TRACK_A, 1.29600005149841, 0.93016556535954);
    effector:SetKey(_TRACK_A, 1.44000005722046, -0.69151952106721);
    effector:SetKey(_TRACK_A, 1.5840000629425, -0.10391893340331);
    effector:SetKey(_TRACK_A, 1.72800006866455, 0.23903710021287);
    effector:SetKey(_TRACK_A, 1.8720000743866, -1.38257186721979);
    effector:SetKey(_TRACK_A, 2.01600008010864, -0.52502731968905);
    effector:SetKey(_TRACK_A, 2.16000008583069, -0.3884064729064);
    effector:SetKey(_TRACK_A, 2.30400009155273, 0.46427347658211);
    effector:SetKey(_TRACK_A, 2.44800009727478, -0.78983589503496);
    effector:SetKey(_TRACK_A, 2.59200010299683, 0.38175300896091);
    effector:SetKey(_TRACK_A, 2.73600010871887, 0.65228131235469);
    effector:SetKey(_TRACK_A, 2.88000011444092, -0.54884726967883);
    effector:SetKey(_TRACK_A, 3.02400012016296, -1.51999015148941);
    effector:SetKey(_TRACK_A, 3.16800012588501, -1.14551240423359);
    effector:SetKey(_TRACK_A, 3.31200013160706, -0.02369289025692);
    effector:SetKey(_TRACK_A, 3.4560001373291, 0.15140574564777);
    effector:SetKey(_TRACK_A, 3.60000014305115, 0.76537022834576);
    effector:SetKey(_TRACK_A, 3.74400014877319, -0.05544607317107);
    effector:SetKey(_TRACK_A, 3.88800015449524, -1.28036998824176);
    effector:SetKey(_TRACK_A, 4.03200016021728, 0.96366195594858);
    effector:SetKey(_TRACK_A, 4.17600016593933, -0.11301621478709);
    effector:SetKey(_TRACK_A, 4.32000017166138, -0.3383751387292);

    effector:Play();


    -- Layer Layer_6
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/lapa.png');
    element:SetName('Layer_6');
    compositionSpider2:AddElement(element);
    element:SetHotSpot(5, 41);
    compositionSpider2:RegisterParentInfo('Layer_6', 'Layer_3');
    element:SetXY(25.9999999999995, 21.25);

    element:SetScaleX(-0.7948717948718);
    element:SetScaleY(0.77027027027027);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 6.68);

    effector:SetKey(_TRACK_A, 0, -0.3383751387292);
    effector:SetKey(_TRACK_A, 0.14400000572205, 0.31753587232602);
    effector:SetKey(_TRACK_A, 0.28800001144409, 0.06021655502107);
    effector:SetKey(_TRACK_A, 0.43200001716614, 0.33805199193528);
    effector:SetKey(_TRACK_A, 0.57600002288818, -1.39113740707894);
    effector:SetKey(_TRACK_A, 0.72000002861023, 0.12871495233697);
    effector:SetKey(_TRACK_A, 0.86400003433228, -0.53247756749164);
    effector:SetKey(_TRACK_A, 1.00800004005432, 0.35232794854605);
    effector:SetKey(_TRACK_A, 1.15200004577637, -1.34066080194046);
    effector:SetKey(_TRACK_A, 1.29600005149841, -0.20135836573926);
    effector:SetKey(_TRACK_A, 1.44000005722046, 0.34787489786012);
    effector:SetKey(_TRACK_A, 1.5840000629425, -1.51902933144998);
    effector:SetKey(_TRACK_A, 1.72800006866455, -0.78625599154235);
    effector:SetKey(_TRACK_A, 1.8720000743866, -1.37894830636751);
    effector:SetKey(_TRACK_A, 2.01600008010864, 0.34641607695469);
    effector:SetKey(_TRACK_A, 2.16000008583069, -0.41682741404894);
    effector:SetKey(_TRACK_A, 2.30400009155273, -0.50303385890381);
    effector:SetKey(_TRACK_A, 2.44800009727478, 0.1252223635637);
    effector:SetKey(_TRACK_A, 2.59200010299683, -0.35535785163926);
    effector:SetKey(_TRACK_A, 2.73600010871887, -1.0261264001399);
    effector:SetKey(_TRACK_A, 2.88000011444092, 0.89883077684462);
    effector:SetKey(_TRACK_A, 3.02400012016296, 0.40014286167154);
    effector:SetKey(_TRACK_A, 3.16800012588501, 0.50054468461201);
    effector:SetKey(_TRACK_A, 3.31200013160706, -0.86780793939838);
    effector:SetKey(_TRACK_A, 3.4560001373291, 0.75908891487506);
    effector:SetKey(_TRACK_A, 3.60000014305115, 0.33949268480426);
    effector:SetKey(_TRACK_A, 3.74400014877319, -1.59877738619583);
    effector:SetKey(_TRACK_A, 3.88800015449524, -1.43701259472325);
    effector:SetKey(_TRACK_A, 4.03200016021728, 0.13325531774223);
    effector:SetKey(_TRACK_A, 4.17600016593933, 0.43909787177959);
    effector:SetKey(_TRACK_A, 4.32000017166138, -0.3383751387292);

    effector:Play();


    -- Layer Layer_7
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/lapa.png');
    element:SetName('Layer_7');
    compositionSpider2:AddElement(element);
    element:SetHotSpot(5, 41);
    compositionSpider2:RegisterParentInfo('Layer_7', 'Layer_3');
    element:SetXY(43.2499999999995, 20.5);

    element:SetScaleX(0.76282051282051);
    element:SetScaleY(0.77027027027027);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 6.68);

    effector:SetKey(_TRACK_A, 0, -0.3383751387292);
    effector:SetKey(_TRACK_A, 0.14400000572205, 0.86646359409554);
    effector:SetKey(_TRACK_A, 0.28800001144409, -1.06793327610717);
    effector:SetKey(_TRACK_A, 0.43200001716614, -1.53773012347263);
    effector:SetKey(_TRACK_A, 0.57600002288818, -1.04417252788461);
    effector:SetKey(_TRACK_A, 0.72000002861023, 0.35376864141503);
    effector:SetKey(_TRACK_A, 0.86400003433228, -1.02837165039729);
    effector:SetKey(_TRACK_A, 1.00800004005432, 0.16612930957071);
    effector:SetKey(_TRACK_A, 1.15200004577637, -1.74126073423537);
    effector:SetKey(_TRACK_A, 1.29600005149841, -0.26484403695587);
    effector:SetKey(_TRACK_A, 1.44000005722046, 0.24410135393412);
    effector:SetKey(_TRACK_A, 1.5840000629425, -1.41455429390633);
    effector:SetKey(_TRACK_A, 1.72800006866455, 0.11740769618349);
    effector:SetKey(_TRACK_A, 1.8720000743866, -0.79101464374594);
    effector:SetKey(_TRACK_A, 2.01600008010864, -0.04792716734895);
    effector:SetKey(_TRACK_A, 2.16000008583069, -1.18807832990791);
    effector:SetKey(_TRACK_A, 2.30400009155273, -1.32709986249664);
    effector:SetKey(_TRACK_A, 2.44800009727478, -0.34592786195142);
    effector:SetKey(_TRACK_A, 2.59200010299683, -1.0891944102645);
    effector:SetKey(_TRACK_A, 2.73600010871887, 1.07375858627596);
    effector:SetKey(_TRACK_A, 2.88000011444092, -0.52762979288117);
    effector:SetKey(_TRACK_A, 3.02400012016296, 0.23997858140626);
    effector:SetKey(_TRACK_A, 3.16800012588501, -0.12654962962993);
    effector:SetKey(_TRACK_A, 3.31200013160706, -1.07548599932938);
    effector:SetKey(_TRACK_A, 3.4560001373291, -1.37598567701181);
    effector:SetKey(_TRACK_A, 3.60000014305115, -1.18358162186231);
    effector:SetKey(_TRACK_A, 3.74400014877319, 1.06638476443327);
    effector:SetKey(_TRACK_A, 3.88800015449524, 0.771220314541);
    effector:SetKey(_TRACK_A, 4.03200016021728, 0.27304618339266);
    effector:SetKey(_TRACK_A, 4.17600016593933, 0.07310240843374);
    effector:SetKey(_TRACK_A, 4.32000017166138, -0.3383751387292);

    effector:Play();


    -- Layer Layer_8
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/lapa.png');
    element:SetName('Layer_8');
    compositionSpider2:AddElement(element);
    element:SetHotSpot(5, 41);
    compositionSpider2:RegisterParentInfo('Layer_8', 'Layer_3');
    element:SetXY(48.4999999999995, 43.75);

    element:SetScaleX(1.2);
    element:SetScaleY(1.2);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 6.68);

    effector:SetKey(_TRACK_A, 0, 0.60146633405925);
    effector:SetKey(_TRACK_A, 0.14400000572205, -0.13995274052544);
    effector:SetKey(_TRACK_A, 0.28800001144409, 1.09479449828467);
    effector:SetKey(_TRACK_A, 0.43200001716614, 0.55357421050568);
    effector:SetKey(_TRACK_A, 0.57600002288818, 1.45162872050946);
    effector:SetKey(_TRACK_A, 0.72000002861023, 1.56742907402842);
    effector:SetKey(_TRACK_A, 0.86400003433228, -0.60562806880677);
    effector:SetKey(_TRACK_A, 1.00800004005432, 1.448026195342);
    effector:SetKey(_TRACK_A, 1.15200004577637, 0.68921762698784);
    effector:SetKey(_TRACK_A, 1.29600005149841, -0.35899617546998);
    effector:SetKey(_TRACK_A, 1.44000005722046, -0.58553361789872);
    effector:SetKey(_TRACK_A, 1.5840000629425, 1.23366243711956);
    effector:SetKey(_TRACK_A, 1.72800006866455, 1.37297919407621);
    effector:SetKey(_TRACK_A, 1.8720000743866, -0.40077567179235);
    effector:SetKey(_TRACK_A, 2.01600008010864, 1.55138033870306);
    effector:SetKey(_TRACK_A, 2.16000008583069, 0.29839694325811);
    effector:SetKey(_TRACK_A, 2.30400009155273, 1.63396393043238);
    effector:SetKey(_TRACK_A, 2.44800009727478, 1.06860008248509);
    effector:SetKey(_TRACK_A, 2.59200010299683, 0.58967884694944);
    effector:SetKey(_TRACK_A, 2.73600010871887, 1.82723410666887);
    effector:SetKey(_TRACK_A, 2.88000011444092, 1.60418857086717);
    effector:SetKey(_TRACK_A, 3.02400012016296, 0.68284900732463);
    effector:SetKey(_TRACK_A, 3.16800012588501, -0.00886355407096);
    effector:SetKey(_TRACK_A, 3.31200013160706, 0.53178918803236);
    effector:SetKey(_TRACK_A, 3.4560001373291, -0.66297619740059);
    effector:SetKey(_TRACK_A, 3.60000014305115, 1.37690835644615);
    effector:SetKey(_TRACK_A, 3.74400014877319, 1.48620503387226);
    effector:SetKey(_TRACK_A, 3.88800015449524, 0.86747062650398);
    effector:SetKey(_TRACK_A, 4.03200016021728, 1.37175678800556);
    effector:SetKey(_TRACK_A, 4.17600016593933, 1.17444456272245);
    effector:SetKey(_TRACK_A, 4.32000017166138, 0.60146633405925);

    effector:Play();


    -- Layer Layer_9
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/lapa.png');
    element:SetName('Layer_9');
    compositionSpider2:AddElement(element);
    element:SetHotSpot(5, 41);
    compositionSpider2:RegisterParentInfo('Layer_9', 'Layer_3');
    element:SetXY(50.2499999999995, 32);

    element:SetScaleX(1.5);
    element:SetScaleY(1.5);
    element:SetOpacity(1);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 6.68);

    effector:SetKey(_TRACK_A, 0, -0.3383751387292);
    effector:SetKey(_TRACK_A, 0.14400000572205, 1.03123793805864);
    effector:SetKey(_TRACK_A, 0.28800001144409, 0.61606205828816);
    effector:SetKey(_TRACK_A, 0.43200001716614, 0.4469334469422);
    effector:SetKey(_TRACK_A, 0.57600002288818, 1.05247895742857);
    effector:SetKey(_TRACK_A, 0.72000002861023, 0.02686233223627);
    effector:SetKey(_TRACK_A, 0.86400003433228, 0.90237062129901);
    effector:SetKey(_TRACK_A, 1.00800004005432, -0.59883494649636);
    effector:SetKey(_TRACK_A, 1.15200004577637, 0.96374927066791);
    effector:SetKey(_TRACK_A, 1.29600005149841, -1.4589100945855);
    effector:SetKey(_TRACK_A, 1.44000005722046, -1.36423577616008);
    effector:SetKey(_TRACK_A, 1.5840000629425, -0.03307732110244);
    effector:SetKey(_TRACK_A, 1.72800006866455, -1.43858425967123);
    effector:SetKey(_TRACK_A, 1.8720000743866, -0.58748403298321);
    effector:SetKey(_TRACK_A, 2.01600008010864, 0.29982401329491);
    effector:SetKey(_TRACK_A, 2.16000008583069, 0.15757246707618);
    effector:SetKey(_TRACK_A, 2.30400009155273, 0.56887541890777);
    effector:SetKey(_TRACK_A, 2.44800009727478, -0.35147234662899);
    effector:SetKey(_TRACK_A, 2.59200010299683, 0.73179771876263);
    effector:SetKey(_TRACK_A, 2.73600010871887, 0.98720880868926);
    effector:SetKey(_TRACK_A, 2.88000011444092, 0.39629090972968);
    effector:SetKey(_TRACK_A, 3.02400012016296, -0.17856421874555);
    effector:SetKey(_TRACK_A, 3.16800012588501, 0.16818120547501);
    effector:SetKey(_TRACK_A, 3.31200013160706, -1.12049673714499);
    effector:SetKey(_TRACK_A, 3.4560001373291, 0.69684537228239);
    effector:SetKey(_TRACK_A, 3.60000014305115, -1.00297112492421);
    effector:SetKey(_TRACK_A, 3.74400014877319, -0.67084715586058);
    effector:SetKey(_TRACK_A, 3.88800015449524, -0.73600637056683);
    effector:SetKey(_TRACK_A, 4.03200016021728, -1.63045835540315);
    effector:SetKey(_TRACK_A, 4.17600016593933, -1.41645766099266);
    effector:SetKey(_TRACK_A, 4.32000017166138, -0.3383751387292);

    effector:Play();

    compositionSpider2:Play();

    return compositionSpider2;
end

createCompositionsvet_cycle = function()

    local compositionsvet_cycle = CreateCompositionSequence();
    local compositionDuration = 2;
    compositionsvet_cycle:SetDuration(compositionDuration);


    -- Layer Layer_1
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/Svet_iz_okna2.png');
    element:SetName('Layer_1');
    compositionsvet_cycle:AddElement(element);
    element:SetHotSpot(376, 303.5);
    element:SetParentElement(compositionsvet_cycle);
    element:SetXY(650.5, 371);

    element:SetScaleX(0.44654165463018);
    element:SetScaleY(0.44654165463018);
    element:SetAngle(0);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 1);

    effector:SetKey(_TRACK_O, -1, 0);
    effector:SetKey(_TRACK_O, 0, 1);
    effector:SetKey(_TRACK_O, 1, 0);

    effector:Play();


    -- Layer Layer_2
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/Svet_iz_okna2.png');
    element:SetName('Layer_2');
    compositionsvet_cycle:AddElement(element);
    element:SetHotSpot(376, 303.5);
    element:SetParentElement(compositionsvet_cycle);
    element:SetXY(650.5, 371);

    element:SetScaleX(0.44654165463018);
    element:SetScaleY(0.44654165463018);
    element:SetAngle(0);

    effector = element:GetEffector();
    effector:SetLifeTime(1, 2);

    effector:SetKey(_TRACK_O, 1, 0);
    effector:SetKey(_TRACK_O, 2.04, 1);

    effector:Play();


    -- Layer Layer_3
    local element = CreateCompositionElement('data/Texture/Scenes/06_AtCollapsedAirship/Animations/Scene/Svet_iz_okna2.png');
    element:SetName('Layer_3');
    compositionsvet_cycle:AddElement(element);
    element:SetHotSpot(376, 303.5);
    element:SetParentElement(compositionsvet_cycle);
    element:SetXY(650.5, 353);

    element:SetScaleX(0.44654165463018);
    element:SetScaleY(0.44654165463018);
    element:SetAngle(0);

    effector = element:GetEffector();
    effector:SetLifeTime(0, 2);

    effector:SetKey(_TRACK_O, 0, 0);
    effector:SetKey(_TRACK_O, 1, 1);
    effector:SetKey(_TRACK_O, 2.04, 0);

    effector:Play();

    compositionsvet_cycle:Play();

    return compositionsvet_cycle;
end    
