Code: Select all
Procedure StartScreen(Delay.l)
Delay(Delay)
If UsePNGImageDecoder()
LoadSprite(#SpriteHouseCollision,"Data\Backgrounds\Koriki Forest\House - Link\LinkhouseCollision.png")
LoadSprite(#SpriteHouse0,"Data\Backgrounds\Koriki Forest\House - Link\LinkhouseBottom.png")
LoadSprite(#SpriteHouse1,"Data\Backgrounds\Koriki Forest\House - Link\LinkhouseTop.png")
EndIf
ClearScreen(0,0,0)
Repeat
FlipBuffers()
TransparentSpriteColor(#SpriteHouseCollision,255,0,255)
TransparentSpriteColor(#SpriteHouse1,255,0,255)
DisplaySprite(#SpriteHouseCollision,0,0)
DisplaySprite(#SpriteHouse0,0,0)
DisplaySprite(#SpriteHouse1,0,0)
Delay(Delay)
Until ExitRoom=1
FlipBuffers()
ClearScreen(0,0,0)
EndProcedure
Procedure StartAdvert(Delay.l)
Delay(Delay)
If UsePNGImageDecoder()
LoadSprite(#SpriteFendez,"Data\Sprites\Startup\FendezLogo.png")
LoadSprite(#SpriteLogo,"Data\Sprites\Startup\Logo2.png")
LoadSprite(#SpriteLogoBG,"Data\Sprites\Startup\TitleScreenBG.png")
LoadSprite(#SpritePressEnter,"Data\Sprites\Startup\PressEnter.png")
EndIf
DisplaySprite(#SpriteFendez,0,0)
PlayMovie(#SoundStart,WindowID())
FlipBuffers()
Delay(1200)
FreeMovie(#SoundStart)
Repeat
FlipBuffers()
TransparentSpriteColor(#SpriteLogo,255,0,255)
TransparentSpriteColor(#SpritePressEnter,255,0,255)
DisplaySprite(#SpriteLogoBG,0,0)
DisplayTransparentSprite(#SpriteLogo,75,20)
If Flash=#True
DisplayTransparentSprite(#SpritePressEnter,75,20)
Flash=#False
Else
Flash=#True
EndIf
Delay(1000)
If MovieStatus()=0
PlayMovie(#SoundIntroduction,WindowID())
EndIf
Until GameSarted=1
StopMovie()
FlipBuffers()
ClearScreen(0,0,0)
EndProcedure

