; Scrolling ending credits

; This storyboard has just one scene. It makes use of a background
; with associated background controllers to scroll the credits
; upwards.
; Overlay anims are used to put the darkening bands at the top
; and bottom of the screen for a "fading text" effect.

[SceneDef]
spr = credits.sff
startscene = 0         ;Starting scene number (for debugging)

;------------------------------------
[scene 0] ;prog
fadein.time = 90
fadein.col = 0,0,0
fadeout.time = 0
fadeout.col = 0,0,0
clearcolor = 0,0,0
layerall.pos = 160,0
layer0.anim = 1
layer0.offset = 0,10
layer0.starttime = 0
layer1.anim = 2
layer1.offset = 0,150
layer1.starttime = 40
bgm = credits.ogg      ;Name of music file to play
bgm.loop = 1
end.time = 120

[begin action 1]
1,1, 0,0, -1

[begin action 2]
2,1, 0,0, -1

[scene 1] ;cyanide
fadein.time = 0
fadein.col = 0,0,0
fadeout.time = 0
fadeout.col = 0,0,0
clearcolor = 0,0,0
layerall.pos = 160,0
layer0.anim = 1
layer0.offset = 0,10
layer0.starttime = 0
layer1.anim = 3
layer1.offset = 0,157
layer1.starttime = 0
end.time = 100

[begin action 3]
2,2, 0,0, -1

[scene 2] ;concept
fadein.time = 0
fadein.col = 0,0,0
fadeout.time = 0
fadeout.col = 0,0,0
clearcolor = 0,0,0
layerall.pos = 160,0
layer0.anim = 1
layer0.offset = 0,10
layer0.starttime = 0
layer1.anim = 4
layer1.offset = 0,140
layer1.starttime = 0
end.time = 80

[begin action 4]
3,1, 0,0, -1

[scene 3] ;sonic team
fadein.time = 0
fadein.col = 0,0,0
fadeout.time = 0
fadeout.col = 0,0,0
clearcolor = 0,0,0
layerall.pos = 160,0
layer0.anim = 1
layer0.offset = 0,10
layer0.starttime = 0
layer1.anim = 5
layer1.offset = 0,155
layer1.starttime = 0
end.time = 100

[begin action 5]
3,2, 0,0, 4
3,3, 0,0, 4
3,4, 0,0, 4
3,5, 0,0, -1

[scene 4] ;with
fadein.time = 0
fadein.col = 0,0,0
fadeout.time = 0
fadeout.col = 0,0,0
clearcolor = 0,0,0
layerall.pos = 160,0
layer0.anim = 1
layer0.offset = 0,10
layer0.starttime = 0
layer1.anim = 6
layer1.offset = 0,155
layer1.starttime = 0
end.time = 80

[begin action 6]
3,6, 0,0, -1

[scene 5] ;dimps
fadein.time = 0
fadein.col = 0,0,0
fadeout.time = 0
fadeout.col = 0,0,0
clearcolor = 0,0,0
layerall.pos = 160,0
layer0.anim = 1
layer0.offset = 0,10
layer0.starttime = 0
layer1.anim = 7
layer1.offset = 0,155
layer1.starttime = 0
end.time = 100

[begin action 7]
3,7, 0,0, 4
3,8, 0,0, 4
3,9, 0,0, 4
3,10, 0,0, -1

[scene 6] ;sound
fadein.time = 0
fadein.col = 0,0,0
fadeout.time = 0
fadeout.col = 0,0,0
clearcolor = 0,0,0
layerall.pos = 160,0
layer0.anim = 1
layer0.offset = 0,10
layer0.starttime = 0
layer1.anim = 8
layer1.offset = 0,155
layer1.starttime = 0
end.time = 80

[begin action 8]
4,1, 0,0, -1

[scene 7] ;wave
fadein.time = 0
fadein.col = 0,0,0
fadeout.time = 0
fadeout.col = 0,0,0
clearcolor = 0,0,0
layerall.pos = 160,0
layer0.anim = 1
layer0.offset = 0,10
layer0.starttime = 0
layer1.anim = 9
layer1.offset = 0,150
layer1.starttime = 0
end.time = 100

[begin action 9]
4,2, 0,0, 4
4,3, 0,0, 4
4,4, 0,0, 4
4,5, 0,0, -1

;------------------------------------
[Scene 8]
; Fade
fadeout.time = 0
fadeout.col = 0,0,0    ;Use 255,255,255 for white-fade
; Screen color
clearcolor = 0,0,0
; BG
bg.name = BG8
; Overlay Anims (from 0 to 9)
layerall.pos = 160,0     ;Default position for all layers
layer0.anim =  1      ;Anim action number
layer0.offset = 0,10   ;Position offset
layer0.starttime = 0   ;Time to start display
layer1.anim =  10
layer1.offset = -100,130
layer1.starttime = 0
layer2.anim =  11
layer2.offset = 120,230
layer2.starttime = 0
layer3.anim = 14
layer3.starttime = 0
layer3.offset = -190,240
layer4.anim = 15
layer4.starttime = 180
layer4.offset = 190,240
layer5.anim = 16
layer5.starttime = 360
layer5.offset = -190,240
layer6.anim = 17
layer6.starttime = 540
layer6.offset = 190,240
layer7.anim = 23
layer7.starttime = 720
layer7.offset = 0,240
end.time = 900

;------------------------------------
;BG def for scrolling credit text
[BG8Def]

[BG8 Credits]
id = 8
type = normal
spriteno = 5,1
mask = 1
start = 0,240
window = 0,130, 319,230

;BG controller to stop text from scrolling
[BG8CtrlDef Credits]
CtrlID = 8
looptime = -1

[BG8Ctrl Start scrolling]
type = VelSet
time = 0
y = -0.6

[BG8Ctrl Stop scrolling]
type = VelSet
time = 900
y = 0

;------------------------------------
;Top fade bar
[Begin Action 10]
1,2, 0,0, -1, , S

;------------------------------------
;Bottom fade bar
[Begin Action 11]
1,2, 0,0, -1, V, S

;------------------------------------
[Scene 9]
; Fade
fadeout.time = 0
fadeout.col = 0,0,0    ;Use 255,255,255 for white-fade
; Screen color
clearcolor = 0,0,0
; BG
bg.name = BG9
; Overlay Anims (from 0 to 9)
layerall.pos = 160,0     ;Default position for all layers
layer0.anim =  1      ;Anim action number
layer0.offset = 0,10   ;Position offset
layer0.starttime = 0   ;Time to start display
layer1.anim =  10
layer1.offset = -100,130
layer1.starttime = 0
layer2.anim =  11
layer2.offset = 120,230
layer2.starttime = 0
layer3.anim = 18
layer3.starttime = 0
layer3.offset = -190,240
layer4.anim = 19
layer4.starttime = 180
layer4.offset = 190,240
layer5.anim = 20
layer5.starttime = 360
layer5.offset = -190,240
layer6.anim = 21
layer6.starttime = 540
layer6.offset = 190,240
layer7.anim = 22
layer7.starttime = 720
layer7.offset = -190,240
end.time = 900

;------------------------------------
;BG def for scrolling credit text
[BG9Def]

[BG9 Credits]
id = 9
type = normal
spriteno = 6,2
start = 0,240
mask = 1
window = 0,130, 319,230

;BG controller to stop text from scrolling
[BG9CtrlDef Credits]
CtrlID = 9
looptime = -1

[BG9Ctrl Start scrolling]
type = VelSet
time = 0
y = -0.6

[BG9Ctrl Stop scrolling]
type = VelSet
time = 900
y = 0

[scene 10]
fadein.time = 0
fadein.col = 0,0,0
fadeout.time = 0
fadeout.col = 0,0,0
clearcolor = 0,0,0
layerall.pos = 160,120
layer0.anim = 12
layer0.offset = 0,0
layer0.starttime = 0
end.time = 180

[begin action 12]
7,1, 0,0, 4
7,2, 0,0, 4
7,3, 0,0, 4
7,4, 0,0, -1

[scene 11]
fadein.time = 0
fadein.col = 0,0,0
fadeout.time = 0
fadeout.col = 0,0,0
clearcolor = 0,0,0
layerall.pos = 160,120
layer0.anim = 13
layer0.offset = 0, 0
layer0.starttime = 0
end.time = -1

[begin action 13]
8,1, 0,0, -1

;sonic
[begin action 14]
9,10, 0,0, 3
9,10, 15,0, 3
9,10, 25,0, 3
9,10, 35,0, 3
9,10, 45,0, 3
9,10, 55,0, 3
9,10, 65,0, 144
9,10, 55,0, 3
9,10, 45,0, 3
9,10, 35,0, 3
9,10, 25,0, 3
9,10, 15,0, 3
9,10, -5,0, -1

;tails
[begin action 15]
9,1, 0,0, 3,H
9,1, -15,0, 3,H
9,1, -25,0, 3,H
9,1, -35,0, 3,H
9,1, -45,0, 3,H
9,1, -55,0, 3,H
9,1, -65,0, 144,H
9,1, -55,0, 3,H
9,1, -45,0, 3,H
9,1, -35,0, 3,H
9,1, -25,0, 3,H
9,1, -15,0, 3,H
9,1, 0,0, -1,H

;knuckles
[begin action 16]
9,7, 0,0, 3
9,7, 15,0, 3
9,7, 25,0, 3
9,7, 35,0, 3
9,7, 45,0, 3
9,7, 55,0, 3
9,7, 65,0, 144
9,7, 55,0, 3
9,7, 45,0, 3
9,7, 35,0, 3
9,7, 25,0, 3
9,7, 15,0, 3
9,7, -5,0, -1

;shadow
[begin action 17]
9,9, 0,0, 3,H
9,9, -15,0, 3,H
9,9, -25,0, 3,H
9,9, -35,0, 3,H
9,9, -45,0, 3,H
9,9, -55,0, 3,H
9,9, -65,0, 144,H
9,9, -55,0, 3,H
9,9, -45,0, 3,H
9,9, -35,0, 3,H
9,9, -25,0, 3,H
9,9, -15,0, 3,H
9,9, 5,0, -1,H

;rouge
[begin action 18]
9,8, 0,0, 3
9,8, 15,0, 3
9,8, 25,0, 3
9,8, 35,0, 3
9,8, 45,0, 3
9,8, 55,0, 3
9,8, 65,0, 144
9,8, 55,0, 3
9,8, 45,0, 3
9,8, 35,0, 3
9,8, 25,0, 3
9,8, 15,0, 3
9,8, -5,0, -1

;amy
[begin action 19]
9,2, 0,0, 3,H
9,2, -15,0, 3,H
9,2, -25,0, 3,H
9,2, -35,0, 3,H
9,2, -45,0, 3,H
9,2, -55,0, 3,H
9,2, -65,0, 144,H
9,2, -55,0, 3,H
9,2, -45,0, 3,H
9,2, -35,0, 3,H
9,2, -25,0, 3,H
9,2, -15,0, 3,H
9,2, 5,0, -1,H

;cream
[begin action 20]
9,4, 0,0, 3
9,4, 15,0, 3
9,4, 25,0, 3
9,4, 35,0, 3
9,4, 45,0, 3
9,4, 55,0, 3
9,4, 65,0, 144
9,4, 55,0, 3
9,4, 45,0, 3
9,4, 35,0, 3
9,4, 25,0, 3
9,4, 15,0, 3
9,4, -5,0, -1

;gamma
[begin action 21]
9,6, 0,0, 3,H
9,6, -15,0, 3,H
9,6, -25,0, 3,H
9,6, -35,0, 3,H
9,6, -45,0, 3,H
9,6, -55,0, 3,H
9,6, -65,0, 144,H
9,6, -55,0, 3,H
9,6, -45,0, 3,H
9,6, -35,0, 3,H
9,6, -25,0, 3,H
9,6, -15,0, 3,H
9,6, -5,0, 3,H
9,6, 5,0, 3,H
9,6, 25,0, -1,H

;chaos
[begin action 22]
9,3, 0,0, 3
9,3, 15,0, 3
9,3, 25,0, 3
9,3, 35,0, 3
9,3, 45,0, 3
9,3, 55,0, 3
9,3, 65,0, 144
9,3, 55,0, 3
9,3, 45,0, 3
9,3, 35,0, 3
9,3, 25,0, 3
9,3, 15,0, 3
9,3, -5,0, -1

;emerl
[begin action 23]
9,5, 0,50, 3
9,5, 0,40, 3
9,5, 0,30, 3
9,5, 0,20, 3
9,5, 0,10, 3
9,5, 0,0, 3
9,5, 0,0, 120
9,5, 0,0, 3
9,5, 0,10, 3
9,5, 0,20, 3
9,5, 0,30, 3
9,5, 0,40, 3
9,5, 0,50, 3
9,5, 0,60, 3
9,5, 0,70, 3
9,5, 0,80, -1











