; Definition of KFM's stage
; *** denotes values you should change/check for each stage.
; The term "background" is used to mean both backgrounds and foregrounds.

;--------------------------------------------------------
[Info]
 ;Name of the stage.
name = "Green Forest"
;author = "Enscripture"

;--------------------------------------------------------
[Camera]
 ;Camera starting position: Usually 0 for both
startx = 0
starty = 0
boundleft = -150
boundright = 150
boundhigh = -443
boundlow = 0
verticalfollow = 1
floortension = 30
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

;--- Player 2 ---
p2startx = 70
p2starty = 0
p2startz = 0
p2facing = -1

;--- Common ---
 ;Don't change these values.
leftbound  = -1000 ;Left bound (x-movement)
rightbound =  1000 ;Right bound
topbound  =  0     ;Top bound (z-movement)
botbound  =  0     ;Bottom bound

;--------------------------------------------------------
[Scaling]
 ;No need to change these values
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 = 151
autoturn = 1
resetBG = 0

;--------------------------------------------------------
[Shadow]
intensity = 0
color = 0,0,0
yscale = 0
fade.range = 0,0

;--------------------------------------------------------
[Reflection]
intensity = 0

;--------------------------------------------------------
[Music]
bgmusic = sound/forest 2.mp3
bgvolume = 255

;========================================================
;--------------------------------------------------------
; Background definition
; ***
;-------------------------------------
; [BG x]
; type = ?       "Normal"/"Parallax"  (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"/"add1"/"sub"/"addalpha" (def: "none")
; alpha = ?, ?   (only for trans=addalpha) Source,dest alpha (def: 256,0)
; 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) - only for Normal BG
; tilespacing = ?, ? Tiling: x, y (int) : space between tiles (def: 0, 0)
;  Parallax-only:
; xscale = ?, ?    Top xscale, bottom xscale (float)
; width = ?, ?     Top width, bottom width (int)  (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)
;-------------------------------------

;-------------------------------------
; Main background definition
[BGdef]
 ;Filename of sprite data
spr = stages/Forest.sff
debugbg = 0

;----------

[BG Background]
type  = normal
spriteno = 1, 1
layerno = 0
start = 0,-363
delta = .7,1
mask = 1
tile = 1, 1

[BG Bushes]
type  = normal
spriteno = 3, 0
layerno = 0
start = 0,87
delta = 0.85,1
mask = 1
tile = 1, 0

[BG Tree top]
type  = normal
spriteno = 3, 1
layerno = 0
start = -600,-443
delta = 0.85,1
mask = 1
tile = 1, 0

[BG small tree]
type  = normal
spriteno = 2, 1
layerno = 0
start = 0,102
delta = 1,1
mask = 1
tile = 1, 0
tilespacing = 300

[BG medium tree]
type  = normal
spriteno = 2, 0
layerno = 0
start = -100,70
delta = 1,1
mask = 1
tile = 1, 0
tilespacing = 400

[BG Huge tree]
type  = normal
spriteno = 2, 5
layerno = 0
start = -200,-750
delta = 1,1
mask = 1
tile = 1, 0
tilespacing = 146

[BG bush-medium tree]
type  = normal
spriteno = 2, 4
layerno = 0
start = -110,80
delta = 1,1
mask = 1

[BG big tree trunk]
type  = normal
spriteno = 2, 3
layerno = 0
start = -145,118
delta = 1,1
mask = 1
tile = 0, 1

[BG big tree base]
type  = normal
spriteno = 2, 2
layerno = 0
start = -150,135
delta = 1,1
mask = 1


[BG Ground]
type  = normal
spriteno = 0, 2
layerno = 0
start = 0,150
delta = 1,1
mask = 1
tile = 1, 0

[BG Foreground]
type  = anim
actionno = 1
layerno = 1
start = 0,-723
delta = 1.13,1.1
mask = 1
tile = 1, 0
tilespacing = 256

[Begin Action 1]
1,0, 0,0, 5,,AS128D128