;CLAYFIGHTER 63 1/3 LIFEBARS
;by Basara-kun, updated by Habib987874
;basara.kun@gmail.com
;https://network.mugenguild.com/basara/

;-----------------------------------------------------------
[Info]
name = "CF63 1/3 Lifebars for M1.0+"  
mugenversion = 1.0          
localcoord = 640,480       

[Files]
sff =fight.sff
snd =fight.snd
font1 =cf-time2.fnt
font2 =cf-combo2.fnt
fightfx.sff =fightfx.sff
fightfx.air =fightfx.air
common.snd =common.snd

[FightFx]
scale = 2

;-----------------------------------------------------------
[Lifebar]
;Player 1
p1.pos    = 240,24
p1.bg0.spr = 10,0
p1.bg0.layerno = 0
p1.bg1.spr = 11,0
p1.bg1.layerno = 0
p1.mid.spr = 12,0
p1.mid.layerno = 0
p1.front.spr = 13,0
p1.front.layerno = 0
p1.range.x  = -159,0

;Player 2
p2.pos    = 396,24
p2.bg0.spr = 10,0
p2.bg0.facing = -1
p2.bg0.layerno = 0
p2.bg1.spr = 11,0
p2.bg1.facing = -1
p2.bg2.layerno = 0
p2.mid.spr = 12,0
p2.mid.facing = -1
p2.mid.layerno = 0
p2.front.spr = 13,0
p2.front.facing = -1
p2.range.x  = 159,0

[Simul Lifebar]
;Player 1
p1.pos    = 240,24
p1.bg0.spr = 10,0
p1.bg0.layerno = 0
p1.bg1.spr = 21,0
p1.bg1.layerno = 0
p1.mid.spr = 12,0
p1.mid.layerno = 0
p1.front.spr = 13,0
p1.front.layerno = 0
p1.range.x  = -159,0

;Player 2
p2.pos    = 396,24
p2.bg0.spr = 10,0
p2.bg0.facing = -1
p2.bg0.layerno = 0
p2.bg1.spr = 21,0
p2.bg1.facing = -1
p2.bg2.layerno = 0
p2.mid.spr = 12,0
p2.mid.facing = -1
p2.mid.layerno = 0
p2.front.spr = 13,0
p2.front.facing = -1
p2.range.x  = 159,0

;Player 3
p3.pos    = 240,24
p3.bg0.spr = 20,0
p3.bg0.layerno = 0
p3.mid.spr = 22,2
p3.mid.layerno = 0
p3.front.spr = 23,2
p3.front.layerno = 0
p3.range.x  = -159,0

;Player 4
p4.pos    = 396,24
p4.bg0.spr = 20,0
p4.bg0.facing = -1
p4.bg0.layerno = 0
p4.mid.spr = 22,2
p4.mid.facing = -1
p4.mid.layerno = 0
p4.front.spr = 23,2
p4.front.facing = -1
p4.range.x  = 159,0

[Turns Lifebar]
;Player 1
p1.pos    = 240,24
p1.bg0.spr = 10,0
p1.bg0.layerno = 0
p1.bg1.spr = 31,0
p1.bg1.layerno = 0
p1.mid.spr = 12,0
p1.mid.layerno = 0
p1.front.spr = 13,0
p1.front.layerno = 0
p1.range.x  = -159,0

;Player 2
p2.pos    = 396,24
p2.bg0.spr = 10,0
p2.bg0.facing = -1
p2.bg0.layerno = 0
p2.bg1.spr = 31,0
p2.bg1.facing = -1
p2.bg2.layerno = 0
p2.mid.spr = 12,0
p2.mid.facing = -1
p2.mid.layerno = 0
p2.front.spr = 13,0
p2.front.facing = -1
p2.range.x  = 159,0

;-----------------------------------------------------------
[Powerbar]
;Player 1
p1.pos    = 174,50
p1.bg0.spr = 40,0
p1.bg0.layerno = 0
p1.bg1.spr = 40,0
p1.bg1.layerno = 0
p1.front.spr = 43,0
p1.front.layerno = 0
p1.range.x = -90,0
p1.counter.offset = -216,12

;Player 2
p2.pos    = 462,50
p2.bg0.spr = 40,0
p2.bg0.facing = -1
p2.bg0.layerno = 0
p2.bg1.spr = 40,0
p2.bg1.facing = -1
p2.bg2.layerno = 0
p2.front.spr = 43,0
p2.front.facing = -1
p2.front.layerno = 0
p2.range.x  = 90,0
p2.counter.offset = 218,12

; --level sounds---
level1.snd = 21,0
level2.snd = 21,0
level3.snd = 21,0

;-----------------------------------------------------------
[Face]
;Player 1
p1.pos    = 29,23
p1.bg.spr = 50,0
p1.bg.layerno = 0
p1.face.spr = 9000,0
p1.face.facing = 1
p1.face.offset = 0,-1
p1.face.layerno = 0
;Player 2
p2.pos    = 607,23
p2.bg.spr = 50,0
p2.bg.facing = -1
p2.bg.layerno = 0
p2.face.spr = 9000,0
p2.face.facing = -1
p2.face.offset = 0,-1
p2.face.layerno = 0

[Simul Face]
;Player 1
p1.pos    = 29,23
p1.bg.spr = 50,0
p1.bg.layerno = 0
p1.face.spr = 9000,0
p1.face.layerno = 0
p1.face.scale = 1,1
p1.face.facing = 1
p1.face.offset = 0,0
;Player 2
p2.pos    = 607,23
p2.bg.spr = 50,0
p2.bg.layerno = 0
p2.bg.facing = -1
p2.face.spr = 9000,0
p2.face.scale = 1,1
p2.face.facing = -1
p2.face.offset = 0,0
p2.face.layerno = 0
;Player 3
p3.pos    = 220,46
p3.bg.spr = 60,0
p3.bg.layerno = 0
p3.face.spr = 9000,0
p3.face.scale = 0.5,0.5
p3.face.facing = 1
p3.face.offset = 0,0
p3.face.layerno = 1
;Player 4
p4.pos    = 416,46
p4.bg.spr = 60,0
p4.bg.layerno = 0
p4.bg.facing = -1
p4.face.spr = 9000,0
p4.face.scale = 0.5,0.5
p4.face.facing = -1
p4.face.offset = 0,0
p4.face.layerno = 1

[Turns Face]
;Player 1
p1.pos    = 29,23
p1.bg.spr = 50,0
p1.bg.layerno = 0
p1.face.spr = 9000,0
p1.face.facing = 1
p1.face.offset = 0,0
p1.face.layerno = 0
p1.teammate.pos = 25,78
p1.teammate.spacing = 27,0
p1.teammate.ko.spr = 70,0
p1.teammate.ko.scale = 0.5,0.5
p1.teammate.face.spr = 9000,0
p1.teammate.face.scale = 0.5,0.5
p1.teammate.face.facing = 0
p1.teammate.face.offset = 0,0
p1.teammate.layerno = 1
;Player 2
p2.pos    = 607,23
p2.bg.spr = 50,0
p2.bg.layerno = 0
p2.bg.facing = -1
p2.face.spr = 9000,0
p2.face.facing = -1
p2.face.offset = 0,0
p2.face.layerno = 0
p2.teammate.pos = 611,78
p2.teammate.spacing = -27,0
p2.teammate.ko.spr = 70,0
p2.teammate.ko.scale = 0.5,0.5
p2.teammate.ko.facing = -1
p2.teammate.face.spr = 9000,0
p2.teammate.face.scale = 0.5,0.5
p2.teammate.face.facing = -1
p2.teammate.face.offset = 0,0
p2.teammate.layerno = 1

;-----------------------------------------------------------
[Name]

[Simul Name]

[Turns Name]

;-----------------------------------------------------------
[Time]
pos = 320,46
; Uncomment the following line to use a bg component
;bg.spr = 
; Time count display
counter.offset = 0,0
counter.font = 1,0, 0
; Ticks for each count
framespercount = 60

;-----------------------------------------------------------
[Combo]
team1.pos = 60,160         ;Coords to show
team1.start.x = -200       ;Starting x-coords
team1.counter.font = 2,0,-1
team1.counter.shake = 1   ;Set to 1 to shake count on hit
;team1.text.text = "COMBO"  ;You can use %i to show count in the text, eg "%i Hit!"
;team1.text.font = 1,4,-1
team1.text.spr = 90,0
team1.text.offset = -20,0   ;Offset of text
team1.displaytime = 90    ;Time to show text
team2.pos = 540,160      ;Coords to show
team2.start.x = 840      ;Starting x-coords
team2.counter.font = 2,0,-1
team2.counter.shake = 1   ;Set to 1 to shake count on hit
;team2.text.text = "COMBO"  ;You can use %i to show count in the text, eg "%i Hit!"
;team2.text.font = 1,4,-1
team2.text.spr = 90,0
team2.text.offset = 10,0  ;Offset of text
team2.displaytime = 90

;-----------------------------------------------------------
[Round]
match.wins = 2              ;Rounds needed to win a match
match.maxdrawgames = -1 
start.waittime = 50         ;Time to wait before starting intro

; Default position for all components
pos = 0,0

; ROUND X
round.time = 0              ;Time to show round display
;round.default.offset = 160, 100
; Default component to show for each round. Text can include a %i to
; the round number. Use "round.default.anim" for animation instead of
; text.
;round.default.font = 1,0, 0
;round.default.text = Round %i
round.default.displaytime = 60
; Sounds to play for each round (optional, specify up to round 9)
;round1.snd = 0,0
;round2.snd = 0,2
;round3.snd = 0,3
;round.sndtime = 0           ;Time to play the sounds
; Components to show for each round (optional, specify up to round 9)
; Uncomment to use *2001.04.14 NEW*
;round1.offset = 160, 100
;round1.anim = 
round1.scale = 2,2
round1.displaytime = 60

; FIGHT
fight.time = 0              ;Time to show FIGHT component
fight.offset = 320, 220     ;Component for FIGHT display
fight.anim = 80             ;.
fight.snd = 1,0             ;Sound to play
fight.sndtime = 0           ;Time to play sound

ctrl.time = 50              ;Time players get control after "Fight"

; KO
KO.time    = 0              ;Time to show KO component
KO.offset  = 320, 140        ;Component for KO display
;KO.anim    = 200            ;.
KO.snd     = 2,0
; Double KO
DKO.offset = 320, 140
;DKO.font   = 1,5
;DKO.text   = Double K.O.
DKO.displaytime = 60
DKO.snd    = 2,0
; Time Over
TO.offset  = 320, 90
;TO.font    = 1,5
;TO.text    = Time Over
TO.anim = 220
TO.displaytime = 540
TO.snd     = 2,2
KO.sndtime = 0             ;Time to play sound for KO, DKO and TO.
slow.time  = 60            ;Time for KO slowdown (in ticks)
over.waittime = 45         ;Time to wait after KO before player control is stopped
over.hittime = 10          ;Time after KO that players can still damage each other (for double KO)
over.wintime = 45          ;Time to wait before players change to win states
over.time = 210            ;Time to wait before round ends
; Time to wait before showing win/draw message
win.time = 70
; Win text
win.offset = 320, 120
;win.font = 3,0
;win.text = %s Wins
win.anim = 210
win.displaytime = 540
win.snd     = 3,0
;win.sndtime = 70
; 2-player win text
win2.offset = 160, 70
;win2.font = 3,0
;win2.text = %s and %s Win
win.anim = 210;220
win2.displaytime = 540
;win2.snd     = 3,0;1
;win2.sndtime = 70
; Draw text
draw.offset = 160, 70
;draw.font = 1,0
;draw.text = Draw Game
draw.displaytime = 540
draw.snd     = 3,1

;"Fight!" Animation
[Begin Action 80]
80,0, 0,0, 2
80,1, 0,0, 2
80,2, 0,0, 2
80,3, 0,0, 2
80,4, 0,0, 2
80,5, 0,0, 30
80,6, 0,0, 2
80,7, 0,0, 2
80,8, 0,0, 2
80,9, 0,0, 2
80,10, 0,0, 2
80,11, 0,0, 2
80,12, 0,0, 2
80,13, 0,0, 2, A1
80,14, 0,0, 2, A2
80,15, 0,0, 2, A

;"K.O." Animation

;"You Win" Animation
[Begin Action 210]
200,16, 0,0, 1
200,15, 0,0, 1
200,14, 0,0, 1
200,13, 0,0, 1
200,12, 0,0, 1
200,11, 0,0, 1
200,10, 0,0, 1
200,9, 0,0, 1
200,8, 0,0, 1
200,7, 0,0, 1
200,6, 0,0, 1
200,5, 0,0, 1
200,4, 0,0, 1
200,3, 0,0, 1
200,2, 0,0, 1
200,1, 0,0, 1
200,0, 0,0, -1

;"Time Out" Animation
[Begin Action 220]
210,0, 0,0, -1

;-----------------------------------------------------------
[WinIcon]
p1.pos = 120,90
p2.pos = 516,90
; Offset for next icon (x,y)
p1.iconoffset = 15,0  
p2.iconoffset = -15,0
; Counter text font and offset for representing wins
p1.counter.offset = 0,0
p1.counter.font = 2,1
p2.counter.offset = 0,0
p2.counter.font = 2,1
; Win by normal
p1.n.spr = 100,0
p2.n.spr = 100,0
; Win by special
p1.s.spr = 101,0
p2.s.spr = 101,0
; Win by hyper (super)
p1.h.spr = 102,0
p2.h.spr = 102,0
; Win by normal throw
p1.throw.spr = 103,0
p2.throw.spr = 103,0
; Win by cheese
p1.c.spr = 104,0
p2.c.spr = 104,0
; Win by time over
p1.t.spr = 105,0
p2.t.spr = 105,0
; Win by suicide (here's a fun one)
p1.suicide.spr = 106,0
p2.suicide.spr = 106,0
; Opponent beaten by his own teammate (another fun one)
p1.teammate.spr = 106,0
p2.teammate.spr = 106,0
; Win by perfect (overlay icon)
p1.perfect.spr = 110,0
p2.perfect.spr = 110,0
; Use icons up until this number of wins
useiconupto = 4

