[Info]
 ;Name of the stage.
name = "Gen Stage"

[Camera]
startx = 0
starty = 0
boundleft = -224
boundright = 224
boundhigh = -16
boundlow = 0
verticalfollow = .2
tension = 60

[PlayerInfo]
p1startx = -70          ;Starting x coordinates
p1starty = 0            ;Starting y coordinates
p1startz = 0            ;Starting z coordinates
p1facing = 1            ;Direction player faces: 1=right, -1=left
p2startx = 70
p2starty = 0
p2startz = 0
p2facing = -1

leftbound  = -1000 ;Left bound (x-movement)
rightbound =  1000 ;Right bound
topbound  =  0     ;Top bound (z-movement)
botbound  =  0     ;Bottom bound

[Scaling]
topz     = 0       ;Top z-coordinate for scaling
botz     = 50      ;Bottom z-coordinate for scaling
topscale = 1       ;Scale to use at top
botscale = 1.2     ;Scale to use at bottom

[Bound]
screenleft = 15    ;Dist from left of screen that player can move to
screenright = 15   ;Right edge

[StageInfo]
zoffset = 205
autoturn = 1
resetBG = 1

[Shadow]
color = 112,112,112
yscale = .4

[Music]
bgmusic = sound/gen.mp3
bgvolume = 0

[BGdef]
spr = stages/genbg.sff
debugbg = 0

;========================================================
;--------------------------------------------------------
; Background definition
; ***
;-------------------------------------
; [BG x]
; type = ?       "Normal"/"Parallax"/"Height"  (def: "normal")
; spriteno = ?, ? Sprite group and number: groupno, imgno  (req'd)
; start = ?, ?   Starting location (integer)  (def: 0, 0)
; delta = ?, ?   Change in location per camera unit moved (float)  (def: 1,1)
; trans = ?      Transparency settings: "none"/"add"/"sub"/"avg" (def: "none")
; mask = ?       Masking (int): 0 - off, 1 - on  (def: 0)
; velocity = ?, ? Velocity: x, y (float): speed background moves (def: 0, 0)
; tile = ?, ?    Tiling: xtile, ytile (int): 0 - off, 1 - infinite,
;                        >1 - tile that number of times  (def: 0, 0)
; tilespacing = ?, ? Tiling: x, y (int) : space between tiles (def: 0, 0)
;  Parallax-only:
; xscale = ?, ?    Top xscale, bottom xscale (float) (if used, then no tiling)
; width = ?, ?     Top width, bottom width (int)  (if used, then tiles;
;                             use either this or above, but not both)
; yscalestart = ?  Starting y-scale (float, in percent)  (def: 100)
; yscaledelta = ?  Change in y-scale per unit (float, in percent)  (def: 0)
;-------------------------------------

--------------
[BG Back]
; center top -80,-16
type = normal
spriteno = 2,0
start = -80,208
delta = .8,.8
mask = 0

;-------------
[BG Slow Boat]
type = normal
id = 10
spriteno = 10,0
start = -149,132
mask = 1
delta = .8527,.8527

[BG Slow Boat]
type = normal
id = 110
spriteno = 10,1
start = -341,132
mask = 1
delta = .8527,.8527

;------------
[BG Boat Fixed]
type = normal
spriteno = 9,0
start = -7,120
mask = 1
delta = .8527,.8  ;???

;------------
[BG Jet]
type = normal
id = 6
spriteno = 6,0
start = 25,-22
mask = 1
delta = .8,.8

[BG Jet]
type = normal
id = 106
spriteno = 6,1
start = -475,50 ; from ct of back
mask = 1
delta = .8,.8

; lower left -384,208
;-------------
[BG Boat Left]
type = normal
id = 7
spriteno = 7,0
start = -198,110
mask = 1
delta = .9063,.9063

;-------------
[BG Boat Fast]
type = normal
id = 11
spriteno = 11,0
start = 131,137
delta = .9063,.9063
mask = 1

[BG Boat Fast]
type = normal
id = 111
spriteno = 11,1
start = -371,137
delta = .9063,.9063
mask = 1

;-------------
[BG Boat Mid]
type = normal
id = 8
spriteno = 8,0
start = -89,97
mask = 1
delta = .9063,.9063

;----------
[BG Boat]
type = normal
spriteno = 3,0
start = -384,181
id = 4
delta = 1,1
mask = 1

;------------
[BG Head]
type = anim
actionno = 4
id = 4
start = -336,118
delta = 1,1
mask = 0

[Begin Action 004]
-1,-1,0,0,143
4,0,0,0,4
4,1,0,0,4
4,2,0,0,38
4,1,0,0,4
4,0,0,0,4

;----------
[BG Floor]
type  = parallax
spriteno = 0,0
start = 0, 240
delta = 1,1;.78, 1
xscale = .94, 1.0481
;yscalestart = 100
;yscaledelta = 1.2

;-------------
[BG Front]
type = normal
spriteno = 1,0
start = 0,192
delta = 1,1
mask = 1

[BG Front]
type = normal
spriteno = 1,1
start = 0,192
delta = 1,1
mask = 0

[BG Front]
type = normal
spriteno = 1,2
start = 0,192
delta = 1,1
mask = 0

[BG Front]
type = normal
spriteno = 1,3
start = 0,192
delta = 1,1
mask = 1

[BG Front]
type = normal
spriteno = 1,4
start = 0,192
delta = 1,1
mask = 1

[BG Front]
type = normal
spriteno = 1,5
start = 0,192
delta = 1,1
mask = 1

[BG Front]
type = normal
spriteno = 1,6
start = 0,192
delta = 1,1
mask = 0

[BG Front]
type = normal
spriteno = 1,7
start = 0,192
delta = 1,1
mask = 1

[BG Front]
type = normal
spriteno = 1,8
start = 0,192
delta = 1,1
mask = 1

;-------------
[BG Woman]
type = action
actionno = 5
start = 179,123
delta = 1,1
mask = 0

[Begin Action 5]
-1,-1,0,0,141
5,0,0,0,8
5,1,0,0,7
5,2,0,0,19
5,3,0,0,7
5,2,0,0,8
5,4,0,0,7
5,2,0,0,7
5,3,0,0,9
5,2,0,0,9
5,4,0,0,7
5,2,0,0,8
5,3,0,0,8
5,2,0,0,7
5,4,0,0,9
5,2,0,0,8
5,3,0,0,7
5,2,0,0,8
5,4,0,0,8
-1,-1,0,0,12
5,0,0,0,6
5,1,0,0,8

;--------------
[BGCtrlDef Boat]
ctrlID = 4
looptime = 400

[BGCtrl Down]
type = PosAdd
time = 48
y = 1 

[BGCtrl Down]
type = PosAdd
time = 86
y = 1

[BGCtrl Down]
type = PosAdd
time = 99
y = 1

[BGCtrl Down]
type = PosAdd
time = 139
y = 1

[BGCtrl Up]
type = PosAdd
time = 216
y = -1

[BGCtrl Up]
type = PosAdd
time = 249
y = -1

[BGCtrl Up]
type = PosAdd
time = 276
y = -1

[BGCtrl Up]
type = PosAdd
time = 315
y = -1

;-----------
[BGCtrlDef Left]
ctrlID = 7
looptime = 1258

[BGCtrl Down]
type = PosAdd
time = 211
y = 1
[BGCtrl Up]
type = PosAdd
time = 407
y = -1
[BGCtrl Down]
type = PosAdd
time = 622
y = 1
[BGCtrl Up]
type = PosAdd
time = 805
y = -1
[BGCtrl Down]
type = PosAdd
time = 1017
y = 1
[BGCtrl Up]
type = PosAdd
time = 1257
y = -1

;-----------
[BGCtrlDef Mid]
ctrlID = 8
looptime = 991

[BGCtrl Down]
type = PosAdd
time = 140
y = 1
[BGCtrl Down]
type = PosAdd
time = 480
y = 1
[BGCtrl Down]
type = PosAdd
time = 810
y = 1

[BGCtrl Up]
type = PosAdd
time = 290
y = -1

[BGCtrl Up]
type = PosAdd
time = 640
y = -1

[BGCtrl Up]
type = PosAdd
time = 990
y = -1

;----------
[BGCtrlDef Fast Left]
ctrlID = 11
looptime = 20

[BGCtrl Left]
type = PosAdd
time = 0
x = -1

;----------
[BGCtrlDef Fast Right]
ctrlID = 111
looptime = 20

[BGCtrl Left]
type = PosAdd
time = 0
x = 1

;---------------
[BGCtrlDef Fast Left]
ctrlID = 11
looptime = 20000

[BGCtrl On]
type = Enable
time = 0
value = 1

[BGCtrl Pos]
type = PosSet
time = 0
x = 0

[BGCtrl Off]
type = Enable
time = 10000
value = 0

;---------------
[BGCtrlDef Fast Right]
ctrlID = 111
looptime = 20000

[BGCtrl On]
type = Enable
time = 0
value = 0

[BGCtrl Off]
type = Enable
time = 10000
value = 1

[BGCtrl Pos]
type = PosSet
time = 10000
x = 0

;---------------
[BGCtrlDef Slow Left]
ctrlID = 10
looptime = 69

[BGCtrl Left]
type = PosAdd
time = 0
x = -1

;---------------
[BGCtrlDef Slow Right]
ctrlID = 110
looptime = 69

[BGCtrl Left]
type = PosAdd
time = 0
x = -1

;--------------
[BGCtrlDef Slow Left]
ctrlID = 10
looptime = -1

[BGCtrl Left]
type = Enable
time = 13248
value = 0

;-------------
[BGCtrlDef Slow Right
ctrlID = 110
looptime = -1

[BGCtrl Right]
type = Enable
time = 13248
value = 1

;------------
[BGCtrlDef Jet Left]
ctrlID = 6
looptime = 2700

[BGCtrl Enable]
type = Enable
time = 0
value = 1 

[BGCtrl Enable]
type = Enable
time = 1127
value = 0

[BGCtrl Reset]
type = PosSet
time = 0
x = 0
y = 0

[BGCtrl Vel]
type = VelSet
time = 0
x = -0.4436557
y = 0.0638864

;----------------
[BGCtrlDef jet Right]
ctrlID=106
looptime = 2700

[BGCtrl Enable]
type = Enable
time = 0
value = 0 

[BGCtrl Enable]
type = Enable
time = 1300
value = 1

[BGCtrl Reset]
type = PosSet
time = 1300
x = 0
y = 0

[BGCtrl Vel]
type = VelSet
time = 1300
x = 0.4436557
y = -0.0638864

