<ActorFrame><children>

	<Layer
		Type="Quad"
		InitCommand="%function(self)
		self:hidden(1)
		self:queuecommand('WAITToNewScreen')
		end"
		WAITToNewScreenCommand="%function(self)
		self:sleep(12)
		self:queuecommand('SendToNewScreen')
		end"
		SendToNewScreenCommand="%function(self)
		SCREENMAN:SetNewScreen('MASTER_LOADING')
		end"
		/>

	<Layer
		File="@ThemeFile('CS_Intro/Balrog')"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X-150)
		self:y(SCREEN_CENTER_Y- (8 * 3.5 / 1.2 ) )
		self:bob()
		self:effectmagnitude(0,5,0)
		self:effectperiod(3)
		self:zoom(2)
		self:SetTextureFiltering(false)
		end"
	/>
	<Layer
		File="@ThemeFile('CS_Intro/Misery')"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X+150)
		self:y(SCREEN_CENTER_Y- (8 * 3.5 / 1.2 ) )
		self:bob()
		self:effectmagnitude(0,5,0)
		self:effectoffset(0.1)
		self:effectperiod(3)
		self:zoom(2)
		self:SetTextureFiltering(false)
		end"
	/>
	<Layer
		File="@ThemeFile('CS_Intro/Seat')"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X)
		self:y(SCREEN_CENTER_Y+58)
		self:zoom(1)
		end"
	/>
	<Layer
		File="@ThemeFile('CS_Intro/Crown')"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X)
		self:y(SCREEN_CENTER_Y+70)
		self:zoom(0.25)
		end"
	/>
	<Layer
		Type="Quad"
		OnCommand="%function(self)
		self:x(SCREEN_CENTER_X+math.random(-10,10))
		self:y(SCREEN_CENTER_Y+60)
		self:rotationz(0)
		self:zoom(3)
		self:diffusealpha(1)
		self:linear(1)
		self:rotationz(90)
		self:y(SCREEN_CENTER_Y-50)
		self:diffusealpha(0)
		self:queuecommand('loop')
		end"
		loopcommand="%function(self)
		self:x(SCREEN_CENTER_X+math.random(-10,10))
		self:y(SCREEN_CENTER_Y+60)
		self:rotationz(0)
		self:diffusealpha(1)
		self:linear(1)
		self:y(SCREEN_CENTER_Y-50)
		self:rotationz(90)
		self:diffusealpha(0)
		self:queuecommand('loop')
		end" />
	<Layer
		Type="Quad"
		OnCommand="%function(self)
		self:x(SCREEN_CENTER_X+math.random(-10,10))
		self:y(SCREEN_CENTER_Y+60)
		self:rotationz(0)
		self:zoom(3)
		self:diffusealpha(1)
		self:sleep(0.2)
		self:linear(1)
		self:rotationz(90)
		self:y(SCREEN_CENTER_Y-50)
		self:diffusealpha(0)
		self:queuecommand('loop')
		end"
		loopcommand="%function(self)
		self:x(SCREEN_CENTER_X+math.random(-10,10))
		self:y(SCREEN_CENTER_Y+50)
		self:rotationz(0)
		self:diffusealpha(1)
		self:linear(1)
		self:y(SCREEN_CENTER_Y-50)
		self:rotationz(90)
		self:diffusealpha(0)
		self:queuecommand('loop')
		end" />
	<Layer
		Type="Quad"
		OnCommand="%function(self)
		self:x(SCREEN_CENTER_X+math.random(-10,10))
		self:y(SCREEN_CENTER_Y+60)
		self:rotationz(0)
		self:zoom(3)
		self:diffusealpha(1)
		self:sleep(0.4)
		self:linear(1)
		self:rotationz(90)
		self:y(SCREEN_CENTER_Y-50)
		self:diffusealpha(0)
		self:queuecommand('loop')
		end"
		loopcommand="%function(self)
		self:x(SCREEN_CENTER_X+math.random(-10,10))
		self:y(SCREEN_CENTER_Y+50)
		self:rotationz(0)
		self:diffusealpha(1)
		self:linear(1)
		self:y(SCREEN_CENTER_Y-50)
		self:rotationz(90)
		self:diffusealpha(0)
		self:queuecommand('loop')
		end" />
	<Layer
		File="@ThemeFile('CS_Intro/Doctor.sprite')"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X-200)
		self:y(SCREEN_CENTER_Y+70)
		self:zoom(0.5)
		self:sleep(0.5)
		self:linear(5.5)
		self:x(SCREEN_CENTER_X-40)
		self:sleep(0.01)
		self:diffusealpha(0)
		end"
	/>
	<Layer
		File="@ThemeFile('CS_Intro/DoctorIdle.sprite')"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X-40)
		self:y(SCREEN_CENTER_Y+70)
		self:zoom(0.5)
		self:diffusealpha(0)
		self:sleep(6.01)
		self:diffusealpha(1)
		self:sleep(1)
		self:diffusealpha(0)
		end"
	/>
	<Layer
		File="@ThemeFile('CS_Intro/DoctorFrontIdle.sprite')"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X-40)
		self:y(SCREEN_CENTER_Y+70)
		self:zoom(0.5)
		self:diffusealpha(0)
		self:sleep(7.01)
		self:diffusealpha(1)
		self:sleep(2)
		self:diffusealpha(0)
		end"
	/>
	<Layer
		File="@ThemeFile('CS_Intro/DoctorFrontIaugh.sprite')"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X-40)
		self:y(SCREEN_CENTER_Y+70)
		self:zoom(0.5)
		self:diffusealpha(0)
		self:sleep(9.01)
		self:diffusealpha(1)
		end"
	/>
	<Layer
		File="@ThemeFile('CS_Intro/Ground')"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X)
		self:y(SCREEN_CENTER_Y+120)
		self:zoom(1)
		end"
	/>
	<Layer
		File="@ThemeFile('CS_Intro/Stand')"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X+150)
		self:y(SCREEN_CENTER_Y+59)
		end"
	/>
	<Layer
		File="@ThemeFile('CS_Intro/Stand')"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X-150)
		self:y(SCREEN_CENTER_Y+59)
		end"
	/>
	<Layer
		File="@ThemeFile('CS_Intro/Pilar')"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X+230)
		self:y(SCREEN_CENTER_Y+59)
		end"
	/>
	<Layer
		File="@ThemeFile('CS_Intro/Pilar')"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X-230)
		self:y(SCREEN_CENTER_Y+59)
		end"
	/>

	<Layer
		Type="Quad"
		OnCommand="%function(self)
		self:x(SCREEN_CENTER_X)
		self:y(SCREEN_CENTER_Y)
		self:diffuse(0.05,0.05,0.05,1)
		self:zoom(1200)
		self:sleep(3)
		self:diffusealpha(0)
		end" />

	<Layer File="../Animations/Fade/FadeDownIn.xml" OnCommand="hibernate,3" />
			<Layer
		Type="BitmapText"
		Text="Jose_Varela Presents"
		File="Common Normal"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X)
		self:y(SCREEN_CENTER_Y-160)
		self:zoom(0.5)
		self:shadowlength(0)
		self:sleep(3)
		self:diffusealpha(0)

		self:settext( CaveStoryTextBank['Intro']['Text1'] )
		end"
	/>
		<Layer
		Type="BitmapText"
		Text="A theme for NotITG::::Based on a game by Studio Pixel"
		File="Common Normal"
		InitCommand="%function(self)
		self:x(SCREEN_CENTER_X)
		self:y(SCREEN_CENTER_Y-160)
		self:zoom(0.5)
		self:shadowlength(0)
		self:diffusealpha(0)
		self:sleep(4)
		self:diffusealpha(1)
		self:sleep(3)
		self:diffusealpha(0)

		self:settext( CaveStoryTextBank['Intro']['Text2'] )
		end"
	/>



</children></ActorFrame>