home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ring.yamanashi.ac.jp/pub/pc/freem/action/
/
action.zip
/
breaker_v300.zip
/
breaker_v300
/
game.mdl
< prev
next >
Wrap
Text File
|
2008-10-27
|
10KB
|
423 lines
;ADVâéâWâàü[âï
#include "hsp3util.as"
#module
;ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\
;BOXû╜ù▀(ôûèYö═ê═é≡âëâCâôé┼ê═é▐ü^Älèpî`)
#deffunc box int,int,int,int
mref p1,0 ;xì╢
mref p2,1 ;yÅπ
mref p3,2 ;xëE
mref p4,3 ;yë║
line p1,p2,p3,p2
line p1,p2,p1,p4
line p3,p2,p3,p4
line p1,p4,p3,p4
return
;ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\
;ADVû╜ù▀
#deffunc adv str def,array init,int mb,int fs,int sel
chk=1
dat=def
getstr code,dat,0,',' : code=int(code) : size=strsize
switch code
;ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\
;öwîié╠ô╟é▌ì₧é▌
case 1
getstr num,dat,size,','
file="DPM:data.dpm:back"+num+".jpg"
gsel 2
picload file
chk=0
swbreak
;ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\
;æOîié╠ô╟é▌ì₧é▌
case 2
getstr layer,dat,size,',' : layer=10+int(layer) : size=size+strsize
getstr xp,dat,size,',' : xp=int(xp) : size=size+strsize
getstr num,dat,size,','
file="DPM:data.dpm:chr"+num+".bmp"
buffer 6 : picload file
gsel layer
gmode 0
pos xp,0 : gcopy 6,0,0,int(init.1),int(init.2)
chk=0
swbreak
;ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\
;âEâGâCâgÅêù¥
case 90
getstr num,dat,size,',' : num=int(num)
await num
chk=0
swbreak
;ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\
;âgâëâôâWâVâçâô
case 100
getstr id,dat,size,',' : id=int(id)
;ìçɼëµæ£ì∞ɼ
buffer 6,800,600,0
;öwîi
gmode 0
pos 0,0 : gcopy 2,0,0,int(init.1),int(init.2)
;æOîi
gmode 2
repeat int(init.4)
fb=10+cnt
pos 0,0 : gcopy fb,0,0,int(init.1),int(init.2)
loop
gsel sel
;idé╔éµéΘÅêù¥é╠ò¬è≥
switch id
;--------------------------------------------------------------------------------------------------------------------
;âtâFü[âhâCâô
case 0
repeat 16
redraw 0
await 10
;âoâbâNâAâbâvëµû╩
gmode 0
pos 0,0 : gcopy 3,0,0,int(init.1),int(init.2)
gmode 4,,,16*cnt : color 0,255,0
pos 0,0 : gcopy 6,0,0,int(init.1),int(init.2)
;âüâbâZü[âWâ{ü[âh
if mb=1{
gmode 4,,,180 : color 0,0,1
pos 10,440 : gcopy 4,0,0,780,150
color 255,255,255
box 15,445,785,585
}
redraw 1
loop
;swbreak
swend
;--------------------------------------------------------------------------------------------------------------------
;âoâbâNâAâbâv
gsel 3
gmode 0
pos 0,0 : gcopy 6,0,0,int(init.1),int(init.2)
chk=0
swbreak
;ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\
;Åêù¥é╠ÆåÆf
case 999
stop
swend
return chk
;ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\
;âüâbâZü[âWò\Ī
#deffunc texter int twt,int nn,array name,array nc,int fsize,int skip,str tdat,int log,int count
if nc.nn=0 : color 0,0,0
if nc.nn=1 : color 64,64,64
if nc.nn=2 : color 0,0,255
if nc.nn=3 : color 255,64,128
if nc.nn=4 : color 0,154,0
textmode 2
color 255,255,255
text 0
if nn=0 & log=0 : typ=460
if nn!0 & log=0 : typ=490 : pos 20,460 : emes "üy " + name.nn + " üz"
if log=1 : typ=460-(150*count)
if nn!0 & log=1 {
pos 20,typ : emes "üy " + name.nn + " üz" : typ+=30
}
sdim mdat,10000
mdat=tdat
mm=strlen(mdat)/2
i=0 : message=0
repeat mm
moji=strmid(mdat,message*2,2)
;--------------------------------------------------------------------------------------------------------------------
;ëⁿìsÅêù¥
if moji="ü½"{
i=0 : typ+=30
message++
continue
}
;--------------------------------------------------------------------------------------------------------------------
;âïârò\Ī
if moji="ü¬"{
message++
ruby=strmid(mdat,message*2,2) : ruby=int(ruby)
message++
ruby_t=strmid(mdat,message*2,ruby*2)
font "élér âSâVâbâN",9,0 : ryp=typ-11
if ruby=1 : rxp=30+(i*fsize)+4
if ruby=2 : rxp=30+(i*fsize)
if ruby=3 : rxp=30+(i*fsize)-2
if ruby=4 : rxp=30+(i*fsize)
pos rxp,ryp : mes ruby_t
message=message+ruby
continue
}
;--------------------------------------------------------------------------------------------------------------------
;û╝æOÅêù¥
if moji="üö"{
message++
num=int(strmid(mdat,message*2,2))
message++
font "élér âSâVâbâN",fsize,1
pos 40+(i*fsize),typ : emes namae.num
i=i+(strlen(namae.num)/2) : if i>40 : i=0 : typ+=30
continue
}
;--------------------------------------------------------------------------------------------------------------------
;ò╢ÄÜò\Ī
font "élér âSâVâbâN",fsize,1
if skip=0 : text twt : else : text 0
pos 30+(i*fsize),typ : emes moji
;--------------------------------------------------------------------------------------------------------------------
;3ô_âèü[â_ü[Åêù¥
if moji="üc"{
n_moji=strmid(mdat,message*2+2,2)
if n_moji!"üv" & skip=0 & log=0 & twt!0 : await 200
}
i++ : if i>40 : i=0 : typ+=30
message++
loop
return
;ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\
;æIæ≡ÄêÅêù¥
#deffunc selecter int sesu,str setsu,str set1,str set2,str set3
await 5
x=mousex : y=mousey : id=999
redraw 0
gmode 0
pos 0,0 : gcopy 3,0,0,800,600
gmode 4,,,180 : color 0,0,1
pos 10,440 : gcopy 4,0,0,780,150
color 255,255,255
box 15,445,785,585
color 255,154,0
textmode 2
color 255,255,255
text 0
pos 20,460 : emes setsu
color 0,0,0
textmode 2
color 154,154,154
pos 60,490 : emes set1
pos 60,520 : emes set2
pos 60,550 : emes set3
color 255,128,64
textmode 2
color 255,255,255
text 0
if x>10 & x<790 & y>490 & y<580{
if y>490 & y<520 : id=1 : pos 30,490 : emes "üΓ" : pos 60,490 : emes set1
if y>520 & y<550 : id=2 : pos 30,520 : emes "üΓ" : pos 60,520 : emes set2
if sesu=3 : if y>550 & y<580 : id=3 : pos 30,550 : emes "üΓ" : pos 60,550 : emes set3
}
redraw 1
return id
;ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\
;ëµû╩ùhéτé╡
#deffunc shake int mb
repeat 16
redraw 0
qx=rnd(400)-200
qy=rnd(300)-150
gmode 0
pos qx,qy : gcopy 3,0,0,800,600
if mb=1{
gmode 4,,,180 : color 0,0,1
pos 10,440 : gcopy 4,0,0,780,150
color 255,255,255
box 15,445,785,585
}
redraw 1
loop
redraw 0
gmode 0
pos 0,0 : gcopy 3,0,0,800,600
if mb=1{
gmode 4,,,180 : color 0,0,1
pos 10,440 : gcopy 4,0,0,780,150
color 255,255,255
box 15,445,785,585
}
redraw 1
return
;ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\
;âåü[âUü[ÆΦï`â_âCâAâìâOâ{âbâNâX(ò╘éΦÆlé═idÆl)
#deffunc dialog_box int cd,str d_mes
mref id,64
await 5
x=mousex : y=mousey : w=mousew
redraw 0
;ÆΦö╘é╠ÅIù╣èmöF
if cd=0{
a=300 : b=260 : c=500 : d=340
gmode 0
pos a-10,b-10 : gcopy 4,0,0,c-a+20,d-b+20
box a,b,c,d
pos 310,270 : mes "ÅIù╣é╡é▄é╖é⌐üH"
color 154,154,154
pos 340,310 : mes "é═ü@éó"
pos 420,310 : mes "éóéóéª"
color 0,255,0 : id=0
if x>340 & x<474 & y>310 & y<330{
if x>340 & x<394 : pos 340,310 : mes "é═ü@éó" : id=1
if x>420 & x<474 : pos 420,310 : mes "éóéóéª" : id=2
}
}
;ö─ùpâ_âCâAâìâO(é═éóü^éóéóéª)
if cd=1{
a=300 : b=260 : c=500 : d=340
gmode 0
pos a-10,b-10 : gcopy 4,0,0,c-a+20,d-b+20
box a,b,c,d
pos 310,270 : mes d_mes
color 154,154,154
pos 340,310 : mes "é═ü@éó"
pos 420,310 : mes "éóéóéª"
color 0,255,0 : id=0
if x>340 & x<474 & y>310 & y<330{
if x>340 & x<394 : pos 340,310 : mes "é═ü@éó" : id=1
if x>420 & x<474 : pos 420,310 : mes "éóéóéª" : id=2
}
}
redraw 1
return id
;ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\
;âXâ^âbâtâìü[âï
#deffunc ending int sel
gsel sel
color 0,0,0
textmode 2
color 255,255,255
text 0
pos 0,0 : gcopy 4,0,0,800,600
st=" - COLORS Staff - " : len=strlen(st)/2
pos 400-(len*9),282 : emes st
await 5000
repeat 32
gmode 4,,,8*cnt
pos 0,0 : gcopy 4,0,0,800,600
loop
pos 100,120 : emes "âVâiâèâI"
pos 100,160 : emes "âLâââëâNâ^ü[âfâUâCâôüECG"
pos 100,200 : emes "âvâìâOâëâÇ"
pos 100,240 : emes "ë╣ü@èy"
pos 600,282 : emes "ìΓü@û{"
await 5000
repeat 32
gmode 4,,,8*cnt
pos 0,0 : gcopy 4,0,0,800,600
loop
pos 100,120 : emes "æfì▐Ʊïƒ"
pos 300,160 : emes "öwü@îi : ɼÉúÆ╝îΦùl"
pos 300,200 : emes "http://may.force.mepage.jp/"
pos 300,280 : emes "î°ë╩ë╣ : âUüEâ}âbâ`âüâCâJâ@âYùl"
pos 300,320 : emes "http://osabisi.sakura.ne.jp/m2/"
await 5000
repeat 32
gmode 4,,,8*cnt
pos 0,0 : gcopy 4,0,0,800,600
loop
redraw 0
st="ɺì∞üEÆÿì∞" : len=strlen(st)/2
pos 400-(len*9),200 : emes st
font "élér û╛Æ⌐",32,1
st="Dim Vais" : len=strlen(st)/2
pos 400-(len*16),300 : emes st
redraw 1
await 5000
repeat 32
gmode 4,,,8*cnt
pos 0,0 : gcopy 4,0,0,800,600
loop
font "élér âSâVâbâN",18,1
return
;ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\ü\
;âXâNâèü[âôâLâââvâ`ââ
#deffunc snap
;Cê╚èOé═û▀éΘ
if wparam!67 : return
;ò█æ╢ùpâ_âCâAâìâOé╠ò\Ī
dialog "bmp",17,"ârâbâgâ}âbâv"
;É│ÅφÅIù╣é╠ÅΩìç
if stat=1{
;BMPî`Ä«é╠ëµæ£é≡ò█æ╢
bmpsave refstr
}
return
#global