---------------------------------------------------------------------------------------
local PREFIX_PATH = "Data/Textures/Scenes/02_Mountain_path/Animation/bg_layer_1/"
---------------------------------------------------------------------------------------
createCompositionBG = nil
createCompositionList = nil
createCompositionRaine = nil
createCompositionvetki = nil
createCompositionTree = nil
---------------------------------------------------------------------------------------
createCompositionBG = function()
	local compositionBG = CreateCompositionSequence()
	local compositionDuration = 8
	compositionBG:setDuration(compositionDuration)
	compositionBG:setName("compositionBG" )
	--compositionBG:setBoundingBox( Rectanglef(-110, 0, 1366,768) )
 
	local element
	local effector
 
	-- Layer Raine/1
	element = createCompositionRaine()
	element:setName("Raine/1")
	compositionBG:addElement(element)
	element:setHotSpot(683, 384)
	element:setParentElement(compositionBG)
	element:setXY(683, 384)
 
 
	effector = element:getEffector()
	effector:setLifeTime(0, 8)
	effector:play()
 
 
	-- Layer List/2
	element = createCompositionList()
	element:setName("List/2")
	compositionBG:addElement(element)
	element:setHotSpot(683, 384)
	element:setParentElement(compositionBG)
	element:setXY(683, 384)
 
 
	effector = element:getEffector()
	effector:setLifeTime(0, 8)
	effector:play()
 
 
	-- Layer vetki/3
	element = createCompositionvetki()
	element:setName("vetki/3")
	compositionBG:addElement(element)
	element:setHotSpot(683, 384)
	element:setParentElement(compositionBG)
	element:setXY(683, 384)
 
 
	effector = element:getEffector()
	effector:setLifeTime(0, 8)
	effector:play()
 
	compositionBG:play()
 
	return compositionBG
end
 
createCompositionList = function()
	local compositionList = CreateCompositionSequence()
	local compositionDuration = 8
	compositionList:setDuration(compositionDuration)
	compositionList:setName("compositionList" )
	compositionList:setBoundingBox( Rectanglef(0, 0, 1366,768) )
 
	local element
	local effector
 
	-- Layer list3/1
	element = CreateCompositionElement(PREFIX_PATH.."list_4_1.png")
	element:setName("list3/1")
	compositionList:addElement(element)
	element:setHotSpot(20, 17.5)
	element:setParentElement(compositionList)
 
	effector = element:getEffector()
	effector:setLifeTime(0, 6.79166666666667)
	effector:setKey(_TRACK_X, 2.16666666666667, 273)
	effector:setKey(_TRACK_Y, 2.16666666666667, 788)
	effector:setKey(_TRACK_X, 2.72664388020833, 397.194331401055)
	effector:setKey(_TRACK_Y, 2.72664388020833, 703.69138880102)
	effector:setKey(_TRACK_X, 2.890380859375, 454.804287967263)
	effector:setKey(_TRACK_Y, 2.890380859375, 661.511184097961)
	effector:setKey(_TRACK_X, 3.0970458984375, 531.048384799639)
	effector:setKey(_TRACK_Y, 3.0970458984375, 618.474651179075)
	effector:setKey(_TRACK_X, 3.30379231770833, 604.161360082788)
	effector:setKey(_TRACK_Y, 3.30379231770833, 609.658717600314)
	effector:setKey(_TRACK_X, 3.510498046875, 679.866456294558)
	effector:setKey(_TRACK_Y, 3.510498046875, 604.366928220695)
	effector:setKey(_TRACK_X, 3.7171630859375, 755.109142625869)
	effector:setKey(_TRACK_Y, 3.7171630859375, 594.698455126119)
	effector:setKey(_TRACK_X, 3.9239501953125, 826.073802628593)
	effector:setKey(_TRACK_Y, 3.9239501953125, 577.0167067055)
	effector:setKey(_TRACK_X, 4.13069661458333, 875.363444595506)
	effector:setKey(_TRACK_Y, 4.13069661458333, 579.301895338905)
	effector:setKey(_TRACK_X, 4.33740234375, 913.960494102796)
	effector:setKey(_TRACK_Y, 4.33740234375, 610.131868120205)
	effector:setKey(_TRACK_X, 4.54410807291667, 927.556985945847)
	effector:setKey(_TRACK_Y, 4.54410807291667, 657.441282172154)
	effector:setKey(_TRACK_X, 4.64754231770833, 920.186018003504)
	effector:setKey(_TRACK_Y, 4.64754231770833, 681.199285598756)
	effector:setKey(_TRACK_X, 4.75081380208333, 903.164403945318)
	effector:setKey(_TRACK_Y, 4.75081380208333, 699.348391876274)
	effector:setKey(_TRACK_X, 4.95756022135417, 856.067172432057)
	effector:setKey(_TRACK_Y, 4.95756022135417, 715.060388214567)
	effector:setKey(_TRACK_X, 5.164306640625, 788.716463441433)
	effector:setKey(_TRACK_Y, 5.164306640625, 708.311590402071)
	effector:setKey(_TRACK_X, 5.2677001953125, 755.064235127219)
	effector:setKey(_TRACK_Y, 5.2677001953125, 688.067913345375)
	effector:setKey(_TRACK_X, 5.37105305989583, 753.012373424727)
	effector:setKey(_TRACK_Y, 5.37105305989583, 653.103790405552)
	effector:setKey(_TRACK_X, 5.47444661458333, 779.678333379451)
	effector:setKey(_TRACK_Y, 5.47444661458333, 614.601799909022)
	effector:setKey(_TRACK_X, 5.68115234375, 823.654967064592)
	effector:setKey(_TRACK_Y, 5.68115234375, 583.208810845591)
	effector:setKey(_TRACK_X, 5.79781087239583, 874.55559410827)
	effector:setKey(_TRACK_Y, 5.79781087239583, 562.859717955443)
	effector:setKey(_TRACK_X, 5.88789876302083, 926.747312482113)
	effector:setKey(_TRACK_Y, 5.88789876302083, 544.023758847507)
	effector:setKey(_TRACK_X, 5.99125162760417, 983.104109488805)
	effector:setKey(_TRACK_Y, 5.99125162760417, 538.172567294734)
	effector:setKey(_TRACK_X, 6.0946044921875, 1033.06743739598)
	effector:setKey(_TRACK_Y, 6.0946044921875, 542.362590211903)
	effector:setKey(_TRACK_X, 6.197998046875, 1097.59499300647)
	effector:setKey(_TRACK_Y, 6.197998046875, 551.103917480837)
	effector:setKey(_TRACK_X, 6.30126953125, 1148.07809575569)
	effector:setKey(_TRACK_Y, 6.30126953125, 560.66007509921)
	effector:setKey(_TRACK_X, 6.40470377604167, 1196.43165594637)
	effector:setKey(_TRACK_Y, 6.40470377604167, 571.67037032215)
	effector:setKey(_TRACK_X, 6.49161783854167, 1243.22835127264)
	effector:setKey(_TRACK_Y, 6.49161783854167, 578.16942751577)
	effector:setKey(_TRACK_X, 6.57767740885417, 1284.92581046141)
	effector:setKey(_TRACK_Y, 6.57767740885417, 585.748408522005)
	effector:setKey(_TRACK_X, 6.66385904947917, 1320.61832795363)
	effector:setKey(_TRACK_Y, 6.66385904947917, 592.331369522218)
	effector:setKey(_TRACK_X, 6.75, 1392)
	effector:setKey(_TRACK_Y, 6.75, 605.5)
	effector:setKey(_TRACK_SX, 2.16666666666667, 0.75)
	effector:setKey(_TRACK_SY, 2.16666666666667, 0.75)
	effector:setKey(_TRACK_SX, 2.72664388020833, 0.65)
	effector:setKey(_TRACK_SY, 2.72664388020833, 0.4993223205225)
	effector:setKey(_TRACK_SX, 3.02815755208333, 0.6)
	effector:setKey(_TRACK_SY, 3.02815755208333, 0.36505879801339)
	effector:setKey(_TRACK_SX, 3.74674479166667, 0.6)
	effector:setKey(_TRACK_SY, 3.74674479166667, 0.72341742571991)
	effector:setKey(_TRACK_SX, 4.1871337890625, 0.5)
	effector:setKey(_TRACK_SY, 4.1871337890625, 0.1818230291616)
	effector:setKey(_TRACK_SX, 4.4202880859375, 0.55)
	effector:setKey(_TRACK_SY, 4.4202880859375, -0.68891237914433)
	effector:setKey(_TRACK_SX, 4.54976399739583, 0.5)
	effector:setKey(_TRACK_SY, 4.54976399739583, -0.74977765147078)
	effector:setKey(_TRACK_SX, 5.3787841796875, 0.4)
	effector:setKey(_TRACK_SY, 5.3787841796875, -0.88768450978567)
	effector:setKey(_TRACK_A, 2.16666666666667, -0.90757121)
	effector:setKey(_TRACK_A, 3.03145345052083, 3.6477381325)
	effector:setKey(_TRACK_A, 3.74674479166667, -1.11701072)
	effector:setKey(_TRACK_A, 4.42720540364583, -5.37561409)
	effector:setKey(_TRACK_A, 5.3787841796875, -1.082104135)
	effector:play()
 
 
	-- Layer list3/2
	element = CreateCompositionElement(PREFIX_PATH.."list_4_1.png")
	element:setName("list3/2")
	compositionList:addElement(element)
	element:setHotSpot(20, 17.5)
	element:setParentElement(compositionList)
 
	effector = element:getEffector()
	effector:setLifeTime(0, 6.79166666666667)
	effector:setKey(_TRACK_X, 1.125, 273)
	effector:setKey(_TRACK_Y, 1.125, 788)
	effector:setKey(_TRACK_X, 1.7572021484375, 397.194331401055)
	effector:setKey(_TRACK_Y, 1.7572021484375, 703.69138880102)
	effector:setKey(_TRACK_X, 1.9420166015625, 454.804287967263)
	effector:setKey(_TRACK_Y, 1.9420166015625, 661.511184097961)
	effector:setKey(_TRACK_X, 2.17537434895833, 531.048384799639)
	effector:setKey(_TRACK_Y, 2.17537434895833, 618.474651179075)
	effector:setKey(_TRACK_X, 2.40877278645833, 604.161360082788)
	effector:setKey(_TRACK_Y, 2.40877278645833, 609.658717600314)
	effector:setKey(_TRACK_X, 2.64217122395833, 679.866456294558)
	effector:setKey(_TRACK_Y, 2.64217122395833, 604.366928220695)
	effector:setKey(_TRACK_X, 2.87552897135417, 755.109142625869)
	effector:setKey(_TRACK_Y, 2.87552897135417, 594.698455126119)
	effector:setKey(_TRACK_X, 3.10896809895833, 826.073802628593)
	effector:setKey(_TRACK_Y, 3.10896809895833, 577.0167067055)
	effector:setKey(_TRACK_X, 3.34236653645833, 875.363444595506)
	effector:setKey(_TRACK_Y, 3.34236653645833, 579.301895338905)
	effector:setKey(_TRACK_X, 3.57576497395833, 913.960494102796)
	effector:setKey(_TRACK_Y, 3.57576497395833, 610.131868120205)
	effector:setKey(_TRACK_X, 3.80912272135417, 927.556985945847)
	effector:setKey(_TRACK_Y, 3.80912272135417, 657.441282172154)
	effector:setKey(_TRACK_X, 3.92586263020833, 920.186018003504)
	effector:setKey(_TRACK_Y, 3.92586263020833, 681.199285598756)
	effector:setKey(_TRACK_X, 4.04252115885417, 903.164403945318)
	effector:setKey(_TRACK_Y, 4.04252115885417, 699.348391876274)
	effector:setKey(_TRACK_X, 4.27596028645833, 856.067172432057)
	effector:setKey(_TRACK_Y, 4.27596028645833, 715.060388214567)
	effector:setKey(_TRACK_X, 4.50931803385417, 788.716463441433)
	effector:setKey(_TRACK_Y, 4.50931803385417, 708.311590402071)
	effector:setKey(_TRACK_X, 4.62601725260417, 755.064235127219)
	effector:setKey(_TRACK_Y, 4.62601725260417, 688.067913345375)
	effector:setKey(_TRACK_X, 4.74271647135417, 753.012373424727)
	effector:setKey(_TRACK_Y, 4.74271647135417, 653.103790405552)
	effector:setKey(_TRACK_X, 4.85945638020833, 779.678333379451)
	effector:setKey(_TRACK_Y, 4.85945638020833, 614.601799909022)
	effector:setKey(_TRACK_X, 5.09281412760417, 823.654967064592)
	effector:setKey(_TRACK_Y, 5.09281412760417, 583.208810845591)
	effector:setKey(_TRACK_X, 5.22452799479167, 874.55559410827)
	effector:setKey(_TRACK_Y, 5.22452799479167, 562.859717955443)
	effector:setKey(_TRACK_X, 5.32621256510417, 926.747312482113)
	effector:setKey(_TRACK_Y, 5.32621256510417, 544.023758847507)
	effector:setKey(_TRACK_X, 5.44291178385417, 983.104109488805)
	effector:setKey(_TRACK_Y, 5.44291178385417, 538.172567294734)
	effector:setKey(_TRACK_X, 5.55961100260417, 1033.06743739598)
	effector:setKey(_TRACK_Y, 5.55961100260417, 542.362590211903)
	effector:setKey(_TRACK_X, 5.67631022135417, 1097.59499300647)
	effector:setKey(_TRACK_Y, 5.67631022135417, 551.103917480837)
	effector:setKey(_TRACK_X, 5.79296875, 1148.07809575569)
	effector:setKey(_TRACK_Y, 5.79296875, 560.66007509921)
	effector:setKey(_TRACK_X, 5.90970865885417, 1196.43165594637)
	effector:setKey(_TRACK_Y, 5.90970865885417, 571.67037032215)
	effector:setKey(_TRACK_X, 6.0078125, 1243.22835127264)
	effector:setKey(_TRACK_Y, 6.0078125, 578.16942751577)
	effector:setKey(_TRACK_X, 6.10506184895833, 1284.92581046141)
	effector:setKey(_TRACK_Y, 6.10506184895833, 585.748408522005)
	effector:setKey(_TRACK_X, 6.20231119791667, 1320.61832795363)
	effector:setKey(_TRACK_Y, 6.20231119791667, 592.331369522218)
	effector:setKey(_TRACK_X, 6.33333333333333, 1391)
	effector:setKey(_TRACK_Y, 6.33333333333333, 605.5)
	effector:setKey(_TRACK_SX, 1.125, 1)
	effector:setKey(_TRACK_SY, 1.125, 1)
	effector:setKey(_TRACK_SX, 1.7572021484375, 0.8)
	effector:setKey(_TRACK_SY, 1.7572021484375, 0.61455054833539)
	effector:setKey(_TRACK_SX, 2.09757486979167, 0.8)
	effector:setKey(_TRACK_SY, 2.09757486979167, 0.48674506401786)
	effector:setKey(_TRACK_SX, 2.90889485677083, 0.8)
	effector:setKey(_TRACK_SY, 2.90889485677083, 0.96455656762655)
	effector:setKey(_TRACK_SX, 3.40608723958333, 0.7)
	effector:setKey(_TRACK_SY, 3.40608723958333, 0.25455224082624)
	effector:setKey(_TRACK_SX, 3.66927083333333, 0.68)
	effector:setKey(_TRACK_SY, 3.66927083333333, -0.85174621421481)
	effector:setKey(_TRACK_SX, 3.81551106770833, 0.65)
	effector:setKey(_TRACK_SY, 3.81551106770833, -0.97471094691202)
	effector:setKey(_TRACK_SX, 4.75146484375, 0.6)
	effector:setKey(_TRACK_SY, 4.75146484375, -1.33152676467851)
	effector:setKey(_TRACK_A, 1.125, -0.90757121)
	effector:setKey(_TRACK_A, 2.101318359375, 3.6477381325)
	effector:setKey(_TRACK_A, 2.90889485677083, -1.11701072)
	effector:setKey(_TRACK_A, 3.67708333333333, -5.37561409)
	effector:setKey(_TRACK_A, 4.75146484375, -1.082104135)
	effector:play()
 
	compositionList:play()
 
	return compositionList
end
 
createCompositionRaine = function()
	local compositionRaine = CreateCompositionSequence()
	local compositionDuration = 8
	compositionRaine:setDuration(compositionDuration)
	compositionRaine:setName("compositionRaine" )
	compositionRaine:setBoundingBox( Rectanglef(0, 0, 1366,768) )
 
	local element
	local effector
 
	-- Layer rain.png/1
	element = CreateCompositionElement(PREFIX_PATH.."rain.png")
	element:setName("rain.png/1")
	compositionRaine:addElement(element)
	element:setHotSpot(5, 14)
	element:setParentElement(compositionRaine)
	element:setScale(0.890625,2.2)
	element:setRotationRad(0.20943951)
 
	effector = element:getEffector()
	effector:setLifeTime(6.54166666666667, 7.45833333333333)
	effector:setKey(_TRACK_X, 6.54166666666667, 850)
	effector:setKey(_TRACK_Y, 6.54166666666667, -187)
	effector:setKey(_TRACK_X, 7.375, 738)
	effector:setKey(_TRACK_Y, 7.375, 560.5)
	effector:setKey(_TRACK_O, 7.33333333333333, 0.5)
	effector:setKey(_TRACK_O, 7.41666666666667, 0)
	effector:play()
 
 
	-- Layer k[1-6].png/2
	element = CreateCompositionElement(PREFIX_PATH.."k[].png")
	element:setName("k[1-6].png/2")
	compositionRaine:addElement(element)
	element:setHotSpot(27, 26)
	element:setParentElement(compositionRaine)
	element:setXY(734.5, 567)
 
					local anim = element
					anim:setAnimationSize(54,52)
					anim:setFramesCount(6)
					anim:setFPS(9)
					anim:setMode(_ANIM_FWD)
					anim:setBlend(_EBlendModeColorAdd)
					anim:play()
 
	effector = element:getEffector()
	effector:setLifeTime(7.33333333333333, 8)
	effector:setKey(_TRACK_O, 7.79166666666667, 1)
	effector:setKey(_TRACK_O, 8, 0)
	effector:play()
 
 
	-- Layer rain.png/3
	element = CreateCompositionElement(PREFIX_PATH.."rain.png")
	element:setName("rain.png/3")
	compositionRaine:addElement(element)
	element:setHotSpot(5, 14)
	element:setParentElement(compositionRaine)
	element:setScale(0.890625,2.2)
	element:setRotationRad(0.20943951)
 
	effector = element:getEffector()
	effector:setLifeTime(5.04166666666667, 5.95833333333333)
	effector:setKey(_TRACK_X, 5.04166666666667, 856)
	effector:setKey(_TRACK_Y, 5.04166666666667, -333)
	effector:setKey(_TRACK_X, 5.875, 744)
	effector:setKey(_TRACK_Y, 5.875, 414.5)
	effector:setKey(_TRACK_O, 5.83333333333333, 0.5)
	effector:setKey(_TRACK_O, 5.91666666666667, 0)
	effector:play()
 
 
	-- Layer k[1-6].png/4
	element = CreateCompositionElement(PREFIX_PATH.."k[].png")
	element:setName("k[1-6].png/4")
	compositionRaine:addElement(element)
	element:setHotSpot(27, 26)
	element:setParentElement(compositionRaine)
	element:setXY(735.5, 423)
 
					local anim = element
					anim:setAnimationSize(54,52)
					anim:setFramesCount(6)
					anim:setFPS(9)
					anim:setMode(_ANIM_FWD)
					anim:setBlend(_EBlendModeColorAdd)
					anim:play()
 
	effector = element:getEffector()
	effector:setLifeTime(5.83333333333333, 6.5)
	effector:setKey(_TRACK_O, 6.29166666666667, 1)
	effector:setKey(_TRACK_O, 6.5, 0)
	effector:play()
 
 
	-- Layer rain.png/5
	element = CreateCompositionElement(PREFIX_PATH.."rain.png")
	element:setName("rain.png/5")
	compositionRaine:addElement(element)
	element:setHotSpot(5, 14)
	element:setParentElement(compositionRaine)
	element:setScale(0.890625,2.2)
	element:setRotationRad(0.20943951)
 
	effector = element:getEffector()
	effector:setLifeTime(6.08333333333333, 6.91666666666667)
	effector:setKey(_TRACK_X, 6.08333333333333, 1261.5)
	effector:setKey(_TRACK_Y, 6.08333333333333, -432.5)
	effector:setKey(_TRACK_X, 6.83333333333333, 1149.5)
	effector:setKey(_TRACK_Y, 6.83333333333333, 315)
	effector:setKey(_TRACK_O, 6.79166666666667, 0.5)
	effector:setKey(_TRACK_O, 6.875, 0)
	effector:play()
 
 
	-- Layer rain.png/6
	element = CreateCompositionElement(PREFIX_PATH.."rain.png")
	element:setName("rain.png/6")
	compositionRaine:addElement(element)
	element:setHotSpot(5, 14)
	element:setParentElement(compositionRaine)
	element:setScale(0.890625,2.2)
	element:setRotationRad(0.20943951)
 
	effector = element:getEffector()
	effector:setLifeTime(4.25, 5.08333333333333)
	effector:setKey(_TRACK_X, 4.25, 671.5)
	effector:setKey(_TRACK_Y, 4.25, -302.5)
	effector:setKey(_TRACK_X, 5, 559.5)
	effector:setKey(_TRACK_Y, 5, 445)
	effector:setKey(_TRACK_O, 4.95833333333333, 0.5)
	effector:setKey(_TRACK_O, 5.04166666666667, 0)
	effector:play()
 
 
	-- Layer rain.png/7
	element = CreateCompositionElement(PREFIX_PATH.."rain.png")
	element:setName("rain.png/7")
	compositionRaine:addElement(element)
	element:setHotSpot(5, 14)
	element:setParentElement(compositionRaine)
	element:setScale(0.890625,2.2)
	element:setRotationRad(0.20943951)
 
	effector = element:getEffector()
	effector:setLifeTime(2.25, 3.08333333333333)
	effector:setKey(_TRACK_X, 2.25, 975.5)
	effector:setKey(_TRACK_Y, 2.25, -369.5)
	effector:setKey(_TRACK_X, 3, 863.5)
	effector:setKey(_TRACK_Y, 3, 378)
	effector:setKey(_TRACK_O, 2.95833333333333, 0.5)
	effector:setKey(_TRACK_O, 3.04166666666667, 0)
	effector:play()
 
 
	-- Layer rain.png/8
	element = CreateCompositionElement(PREFIX_PATH.."rain.png")
	element:setName("rain.png/8")
	compositionRaine:addElement(element)
	element:setHotSpot(5, 14)
	element:setParentElement(compositionRaine)
	element:setScale(0.890625,2.2)
	element:setRotationRad(0.20943951)
 
	effector = element:getEffector()
	effector:setLifeTime(0.79166666666667, 1.625)
	effector:setKey(_TRACK_X, 0.79166666666667, 665.5)
	effector:setKey(_TRACK_Y, 0.79166666666667, -299.5)
	effector:setKey(_TRACK_X, 1.54166666666667, 553.5)
	effector:setKey(_TRACK_Y, 1.54166666666667, 448)
	effector:setKey(_TRACK_O, 1.5, 0.5)
	effector:setKey(_TRACK_O, 1.58333333333333, 0)
	effector:play()
 
 
	-- Layer rain.png/9
	element = CreateCompositionElement(PREFIX_PATH.."rain.png")
	element:setName("rain.png/9")
	compositionRaine:addElement(element)
	element:setHotSpot(5, 14)
	element:setParentElement(compositionRaine)
	element:setScale(0.890625,2.2)
	element:setRotationRad(0.20943951)
 
	effector = element:getEffector()
	effector:setLifeTime(3.25, 4.16666666666667)
	effector:setKey(_TRACK_X, 3.25, 1116)
	effector:setKey(_TRACK_Y, 3.25, -105)
	effector:setKey(_TRACK_X, 4.08333333333333, 1004)
	effector:setKey(_TRACK_Y, 4.08333333333333, 642.5)
	effector:setKey(_TRACK_O, 4.04166666666667, 0.5)
	effector:setKey(_TRACK_O, 4.125, 0)
	effector:play()
 
 
	-- Layer k[1-6].png/10
	element = CreateCompositionElement(PREFIX_PATH.."k[].png")
	element:setName("k[1-6].png/10")
	compositionRaine:addElement(element)
	element:setHotSpot(27, 26)
	element:setParentElement(compositionRaine)
	element:setXY(991.5, 658)
 
					local anim = element
					anim:setAnimationSize(54,52)
					anim:setFramesCount(6)
					anim:setFPS(9)
					anim:setMode(_ANIM_FWD)
					anim:setBlend(_EBlendModeColorAdd)
					anim:play()
 
	effector = element:getEffector()
	effector:setLifeTime(4.04166666666667, 4.70833333333333)
	effector:setKey(_TRACK_O, 4.5, 1)
	effector:setKey(_TRACK_O, 4.70833333333333, 0)
	effector:play()
 
 
	-- Layer rain.png/11
	element = CreateCompositionElement(PREFIX_PATH.."rain.png")
	element:setName("rain.png/11")
	compositionRaine:addElement(element)
	element:setHotSpot(5, 14)
	element:setParentElement(compositionRaine)
	element:setScale(0.890625,2.2)
	element:setRotationRad(0.20943951)
 
	effector = element:getEffector()
	effector:setLifeTime(1.45833333333333, 2.375)
	effector:setKey(_TRACK_X, 1.45833333333333, 290)
	effector:setKey(_TRACK_Y, 1.45833333333333, -59)
	effector:setKey(_TRACK_X, 2.29166666666667, 178)
	effector:setKey(_TRACK_Y, 2.29166666666667, 688.5)
	effector:setKey(_TRACK_O, 2.25, 0.5)
	effector:setKey(_TRACK_O, 2.33333333333333, 0)
	effector:play()
 
 
	-- Layer k[1-6].png/12
	element = CreateCompositionElement(PREFIX_PATH.."k[].png")
	element:setName("k[1-6].png/12")
	compositionRaine:addElement(element)
	element:setHotSpot(27, 26)
	element:setParentElement(compositionRaine)
	element:setXY(173.5, 689)
 
					local anim = element
					anim:setAnimationSize(54,52)
					anim:setFramesCount(6)
					anim:setFPS(9)
					anim:setMode(_ANIM_FWD)
					anim:setBlend(_EBlendModeColorAdd)
					anim:play()
 
	effector = element:getEffector()
	effector:setLifeTime(2.25, 2.91666666666667)
	effector:setKey(_TRACK_O, 2.70833333333333, 1)
	effector:setKey(_TRACK_O, 2.91666666666667, 0)
	effector:play()
 
 
	-- Layer rain.png/13
	element = CreateCompositionElement(PREFIX_PATH.."rain.png")
	element:setName("rain.png/13")
	compositionRaine:addElement(element)
	element:setHotSpot(5, 14)
	element:setParentElement(compositionRaine)
	element:setScale(0.890625,2.2)
	element:setRotationRad(0.20943951)
 
	effector = element:getEffector()
	effector:setLifeTime(0, 0.91666666666667)
	effector:setKey(_TRACK_X, 0, 712)
	effector:setKey(_TRACK_Y, 0, -59)
	effector:setKey(_TRACK_X, 0.83333333333333, 610)
	effector:setKey(_TRACK_Y, 0.83333333333333, 654.5)
	effector:setKey(_TRACK_O, 0.79166666666667, 0.5)
	effector:setKey(_TRACK_O, 0.875, 0)
	effector:play()
 
 
	-- Layer k[1-6].png/14
	element = CreateCompositionElement(PREFIX_PATH.."k[].png")
	element:setName("k[1-6].png/14")
	compositionRaine:addElement(element)
	element:setHotSpot(27, 26)
	element:setParentElement(compositionRaine)
	element:setXY(608.5, 663)
 
					local anim = element
					anim:setAnimationSize(54,52)
					anim:setFramesCount(6)
					anim:setFPS(9)
					anim:setMode(_ANIM_FWD)
					anim:setBlend(_EBlendModeColorAdd)
					anim:play()
 
	effector = element:getEffector()
	effector:setLifeTime(0.79166666666667, 1.45833333333333)
	effector:setKey(_TRACK_O, 1.25, 1)
	effector:setKey(_TRACK_O, 1.45833333333333, 0)
	effector:play()
 
	compositionRaine:play()
 
	return compositionRaine
end
 
createCompositionvetki = function()
	local compositionvetki = CreateCompositionSequence()
	local compositionDuration = 8
	compositionvetki:setDuration(compositionDuration)
	compositionvetki:setName("compositionvetki" )
	--compositionvetki:setBoundingBox( Rectanglef(-110, 0, 1366,768) )
 
	local element
	local effector
 
	-- Layer layer_vetka.PNG/1
	element = CreateCompositionElement(PREFIX_PATH.."layer_vetka.PNG")
	element:setName("layer_vetka.PNG/1")
	compositionvetki:addElement(element)
	element:setHotSpot(171.952941176471, 173.238095238095)
	element:setParentElement(compositionvetki)
	element:setXY(1406, 194)
 
 
	effector = element:getEffector()
	effector:setLifeTime(0, 8)
	effector:setKey(_TRACK_A, 0, 0.05388153788453)
	effector:setKey(_TRACK_A, 0.125, 0.05786543827229)
	effector:setKey(_TRACK_A, 0.25, 0.06173391639231)
	effector:setKey(_TRACK_A, 1.41666666666667, 0.08626613614548)
	effector:setKey(_TRACK_A, 1.54166666666667, 0.08701088461215)
	effector:setKey(_TRACK_A, 1.66666666666667, 0.0872664625)
	effector:setKey(_TRACK_A, 1.79166666666667, 0.08701612535335)
	effector:setKey(_TRACK_A, 1.91666666666667, 0.08628641920418)
	effector:setKey(_TRACK_A, 5.41666666666667, 0.0009800432957)
	effector:setKey(_TRACK_A, 5.54166666666667, 0.00025033714668)
	effector:setKey(_TRACK_A, 5.66666666666667, 0)
	effector:setKey(_TRACK_A, 5.79166666666667, 0.00025557788749)
	effector:setKey(_TRACK_A, 5.91666666666667, 0.00100032635345)
	effector:setKey(_TRACK_A, 7.70833333333333, 0.04569938147227)
	effector:setKey(_TRACK_A, 7.83333333333333, 0.04981519302143)
	effector:setKey(_TRACK_A, 7.95833333333333, 0.05388153788453)
	effector:play()

	-- Layer Raine/1
	element = createCompositionTree()
	element:setName("tree_2")
	compositionvetki:addElement(element)
	element:setHotSpot(683, 384)
	element:setParentElement(compositionvetki)
	element:setXY(633, 384)
 
 
	effector = element:getEffector()
	effector:setLifeTime(0, 8)
	effector:play()
 
	compositionvetki:play()
 
	return compositionvetki
end

createCompositionTree = function()
	local compositionTree = CreateCompositionSequence()
	local compositionDuration = 8
	compositionTree:setDuration(compositionDuration)
	compositionTree:setName("compositionTree" )
	--compositionTree:setBoundingBox( Rectanglef(-110, 0, 1366,768) )
 
	local element
	local effector

-- Layer vetka4.png/2
	element = CreateCompositionElement(PREFIX_PATH.."vetka4.png")
	element:setName("vetka4.png/2")
	compositionTree:addElement(element)
	element:setHotSpot(18.637037037037, 73.7888198757764)
	compositionTree:registerParentInfo("vetka4.png/2", "vetka5.png/3")
	element:setXY(211.693629599151, 93.0666746962194)
 
 
	effector = element:getEffector()
	effector:setLifeTime(0, 8)
	effector:play()
 
 
	-- Layer vetka5.png/3
	element = CreateCompositionElement(PREFIX_PATH.."vetka5.png")
	element:setName("vetka5.png/3")
	compositionTree:addElement(element)
	element:setHotSpot(104, 120)
	compositionTree:registerParentInfo("vetka5.png/3", "layer_tree1.png/8")
	element:setXY(78, 43)
 
 
	effector = element:getEffector()
	effector:setLifeTime(0, 8)
	effector:setKey(_TRACK_A, 0, -0.04264031728157)
	effector:setKey(_TRACK_A, 0.125, -0.04244004756425)
	effector:setKey(_TRACK_A, 0.25, -0.04185628264492)
	effector:setKey(_TRACK_A, 3.66666666666667, 0.02579921393652)
	effector:setKey(_TRACK_A, 3.83333333333333, 0.02681934273693)
	effector:setKey(_TRACK_A, 4, 0.02717285271843)
	effector:setKey(_TRACK_A, 4.16666666666667, 0.02681196982023)
	effector:setKey(_TRACK_A, 4.33333333333333, 0.02577101157231)
	effector:setKey(_TRACK_A, 7.625, -0.04123847613572)
	effector:setKey(_TRACK_A, 7.79166666666667, -0.0422794343835)
	effector:setKey(_TRACK_A, 7.95833333333333, -0.04264031728157)
	effector:play()
 
 
	-- Layer vetka3.png/4
	element = CreateCompositionElement(PREFIX_PATH.."vetka3.png")
	element:setName("vetka3.png/4")
	compositionTree:addElement(element)
	element:setHotSpot(7.5, 118)
	compositionTree:registerParentInfo("vetka3.png/4", "layer_tree1.png/8")
	element:setXY(-22.5, 200)
 
 
	effector = element:getEffector()
	effector:setLifeTime(0, 8)
	effector:setKey(_TRACK_A, 0, 0.01842839236498)
	effector:setKey(_TRACK_A, 0.125, 0.01793382171419)
	effector:setKey(_TRACK_A, 0.25, 0.01651005772476)
	effector:setKey(_TRACK_A, 2.58333333333333, -0.06691973549523)
	effector:setKey(_TRACK_A, 2.70833333333333, -0.06834349948442)
	effector:setKey(_TRACK_A, 2.83333333333333, -0.06883807013502)
	effector:setKey(_TRACK_A, 2.95833333333333, -0.068684862228)
	effector:setKey(_TRACK_A, 3.08333333333333, -0.06823536795642)
	effector:setKey(_TRACK_A, 7.625, 0.01736892709854)
	effector:setKey(_TRACK_A, 7.79166666666667, 0.01815752341175)
	effector:setKey(_TRACK_A, 7.95833333333333, 0.01842839236498)
	effector:play()
 
 
	-- Layer vetka2.png/5
	element = CreateCompositionElement(PREFIX_PATH.."vetka2.png")
	element:setName("vetka2.png/5")
	compositionTree:addElement(element)
	element:setHotSpot(53, 128.5)
	compositionTree:registerParentInfo("vetka2.png/5", "layer_tree1.png/8")
	element:setXY(138, 216.5)
 
 
	effector = element:getEffector()
	effector:setLifeTime(0, 8)
	effector:setKey(_TRACK_A, 0, 0)
	effector:setKey(_TRACK_A, 0.125, -0.00025033714665)
	effector:setKey(_TRACK_A, 0.25, -0.00098004329582)
	effector:setKey(_TRACK_A, 3.75, -0.0862864192043)
	effector:setKey(_TRACK_A, 3.875, -0.08701612535332)
	effector:setKey(_TRACK_A, 4, -0.0872664625)
	effector:setKey(_TRACK_A, 4.125, -0.08701088461253)
	effector:setKey(_TRACK_A, 4.25, -0.0862661361466)
	effector:setKey(_TRACK_A, 7.625, -0.00175230143226)
	effector:setKey(_TRACK_A, 7.79166666666667, -0.00045110362266)
	effector:setKey(_TRACK_A, 7.95833333333333, 0)
	effector:play()
 
 
	-- Layer vetka1.png/6
	element = CreateCompositionElement(PREFIX_PATH.."vetka1.png")
	element:setName("vetka1.png/6")
	compositionTree:addElement(element)
	element:setHotSpot(52.5, 125.5)
	compositionTree:registerParentInfo("vetka1.png/6", "vetka2.png/5")
	element:setXY(190.5, 123.5)
 
 
	effector = element:getEffector()
	effector:setLifeTime(0, 8)
	effector:setKey(_TRACK_A, 0, 0.174532925)
	effector:setKey(_TRACK_A, 0.125, 0.17378191356004)
	effector:setKey(_TRACK_A, 0.25, 0.17159279511254)
	effector:setKey(_TRACK_A, 3.75, -0.08432633261291)
	effector:setKey(_TRACK_A, 3.875, -0.08651545105997)
	effector:setKey(_TRACK_A, 4, -0.0872664625)
	effector:setKey(_TRACK_A, 4.125, -0.08649972883759)
	effector:setKey(_TRACK_A, 4.25, -0.08426548343981)
	effector:setKey(_TRACK_A, 7.625, 0.16927602070322)
	effector:setKey(_TRACK_A, 7.79166666666667, 0.17317961413203)
	effector:setKey(_TRACK_A, 7.95833333333333, 0.174532925)
	effector:play()
 
 
	-- Layer layer_tree2.png/7
	element = CreateCompositionElement(PREFIX_PATH.."layer_tree2.png")
	element:setName("layer_tree2.png/7")
	compositionTree:addElement(element)
	element:setHotSpot(22, 28)
	element:setParentElement(compositionTree)
	element:setXY(25, 438)
 
 
	effector = element:getEffector()
	effector:setLifeTime(0, 8)
	effector:play()
 
 
	-- Layer layer_tree1.png/8
	element = CreateCompositionElement(PREFIX_PATH.."layer_tree1.png")
	element:setName("layer_tree1.png/8")
	compositionTree:addElement(element)
	element:setHotSpot(42.5, 406.5)
	element:setParentElement(compositionTree)
	element:setXY(48.5, 457.5)
 
 
	effector = element:getEffector()
	effector:setLifeTime(0, 8)
	effector:setKey(_TRACK_A, 0, 0.0174532925)
	effector:setKey(_TRACK_A, 0.125, 0.01735315764134)
	effector:setKey(_TRACK_A, 0.29166666666667, 0.01692357988809)
	effector:setKey(_TRACK_A, 3.75, -0.01706127518172)
	effector:setKey(_TRACK_A, 3.875, -0.01735315764135)
	effector:setKey(_TRACK_A, 4, -0.0174532925)
	effector:setKey(_TRACK_A, 4.125, -0.01735106134501)
	effector:setKey(_TRACK_A, 4.29166666666667, -0.01691266028028)
	effector:setKey(_TRACK_A, 7.625, 0.0167523719271)
	effector:setKey(_TRACK_A, 7.79166666666667, 0.01727285105096)
	effector:setKey(_TRACK_A, 7.95833333333333, 0.0174532925)
	effector:play()

	compositionTree:play()
 
	return compositionTree
end

 
