home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ring.yamanashi.ac.jp/pub/pc/freem/action/
/
action.zip
/
panhumu121.zip
/
panhumu121
/
game
/
script
/
opening.dat
< prev
next >
Wrap
Text File
|
2006-04-05
|
5KB
|
206 lines
//http://shass.sakura.ne.jp/
//öwîiæfì▐ôX
//
//MIDI
//TAM Music Factoryüiæ╜û▓(TAM)é│é±üj
//http://www.tam-music.com/index.html
//Åëè·ë╗è╓Éö
function OnInit()
{
new("isPushButton1",1);
new("mode",0);
new("time",0);
new("maxtime",0);
new("all_y",0);
new("text_x",10);
new("text_y",440);
LoadTexure("data\opening\map.bmp",0);
LoadTexure("data\opening\chara.bmp",1);
LoadTexure("data\opening\cat.bmp",2);
LoadTexure("data\opening\cat2.bmp",3);
//LoadMidi
PlayMidi("opening\tam-n05.mid",6*1000);
//LoadWave
LoadWave(0,"etc\hit_s11_b.wav");
LoadWave(1,"etc\pi78.wav");
LoadWave(2,"etc\fall06.wav");
}
function OnProc()
{
if(GetKeyData("isButton1") == 1){
if(isPushButton1 <= 0){
SetData("next","char","1");
}
isPushButton1 = 1;
}
else{
isPushButton1 = 0;
}
DrawTexure(0,0,all_y,640,480,0.0,0,0,512,384,1,1,1,1,0,0,0);
time += 1;
switch(mode)
{
case 0:
maxtime = 120;
DrawTexure(1,300,all_y,128*2,256*2,0.0,128,0,256,256,1,1,1,1,0,0,0);
DrawText(text_x,all_y+text_y,"éñü`é±üEüEüEù[ö╤é═ë╜ÉHé╫éµéñé⌐é╚üEüEüE",255,255,255,25);
if(time>=maxtime){
time = 0;
mode = 2;
}
break;
case 2:
maxtime = 120;
DrawTexure(1,300,all_y,128*2,256*2,0.0,128,0,256,256,1,1,1,1,0,0,0);
DrawText(text_x,all_y+text_y,"é±üH",255,255,255,25);
if(time>=maxtime){
time = 0;
mode = 4;
}
break;
case 4:
maxtime = 120;
DrawTexure(1,300,all_y,128*2,256*2,0.0,128,0,256,256,1,1,1,1,0,0,0);
DrawTexure(3,300,250,152*1.5,216*1.5,345.0,8,8,160,224,1,1,1,1,0.5,0.5,1);//é┐éτé╡
DrawText(text_x,all_y+text_y,"é▒é╠â`âëâVé═üEüEüE",255,255,255,25);
if(time>=maxtime){
time = 0;
mode = 6;
}
break;
case 6:
maxtime = 180;
DrawTexure(1,300,all_y,128*2,256*2,0.0,128,0,256,256,1,1,1,1,0,0,0);
DrawText(text_x,all_y+text_y,"é╗éñé╛üIé▒éΩé╔é╡éµéñüI",255,255,255,25);
if(time>=maxtime){
time = 0;
mode = 10;
}
break;
case 10:
maxtime = 120;
DrawTexure(1,300,all_y,128*2,256*2,0.0,128,0,256,256,1,1,1,1,0,0,0);
DrawText(text_x,all_y+text_y,"é═éΓé¡ìsé⌐é╚éóé╞é¿ôXé¬é╡é▄é┴é┐éßüEüEüE",255,255,255,25);
if(time>=maxtime){
time = 0;
mode = 11;
}
break;
case 11:
maxtime = 120;
DrawTexure(1,300,all_y,128*2,256*2,0.0,128,0,256,256,1,1,1,1,0,0,0);
DrawTexure(2,320,240,80,96,0.0, 416,16,496,112,1,1,1,1,0.5,0.5,0);
DrawText(text_x,all_y+text_y,"éñé┴üIüH",255,255,255,25);
if(time>=maxtime){
time = 0;
mode = 12;
PlayWave(0);
}
break;
case 12:
maxtime = 50;
all_y = sin((time/maxtime)*3.14*6.0)*(50.0*(1.0-(time/maxtime)));
DrawTexure(2,320,all_y+240,384,174,0.0, 16,16,400,192,1,1,1,1,0.5,0.5,0);
if(time>=maxtime){
time = 0;
mode = 13;
all_y = 0;
}
break;
case 13:
maxtime = 120;
DrawTexure(2,320,240,384,174,0.0, 16,16,400,192,1,1,1,1,0.5,0.5,0);
DrawText(text_x,all_y+text_y,"éóé┴é╜éƒü`",255,255,255,25);
if(time>=maxtime){
time = 0;
mode = 14;
all_y = 0;
}
break;
case 14:
maxtime = 100;
DrawTexure(2,320,240,160,128,0.0, 16,208,176,336,1,1,1,1,0.5,0.5,0);
DrawText(text_x,all_y+text_y,"é¿é⌐é╦é¬éƒü`",255,255,255,25);
if(time>=maxtime){
time = 0;
mode = 15;
all_y = 0;
PlayWave(1);
}
break;
case 15:
maxtime = 60;
DrawTexure(2,320,240,160,128,0.0, 192,208,352,336,1,1,1,1,0.5,0.5,0);
DrawText(text_x,all_y+text_y,"üIüI",255,255,255,25);
if(time>=maxtime){
time = 0;
mode = 16;
all_y = 0;
}
break;
case 16:
maxtime = 120;
DrawTexure(2,320,240,208,128,0.0, 16,352,224,480,1,1,1,1,0.5,0.5,0);
DrawText(text_x,all_y+text_y,"üEüEüE",255,255,255,25);
if(time>=maxtime){
time = 0;
mode = 17;
all_y = 0;
PlayWave(2);
}
break;
case 17:
maxtime = 120;
DrawTexure(2,320,240,208,128,0.0, 288,352,496,480,1,1,1,1,0.5,0.5,0);
DrawText(text_x,all_y+text_y,"üIüIüI",255,255,255,25);
if(time>=maxtime){
time = 0;
mode = 18;
all_y = 0;
}
break;
case 18:
maxtime = 120;
DrawTexure(1,300,all_y,128*2,256*2,0.0,0,0,128,256,1,1,1,1,0,0,0);
DrawText(text_x,all_y+text_y,"é¿üAé¿ôXé¬ò┬é▄éΘæOé╔ĵéΦû▀é│é╚é¡é┐éßüI",255,255,255,25);
if(time>=maxtime){
time = 0;
mode = 99;
FeedOutMidi(1000);
}
break;
case 99:
maxtime = 60;
DrawTexure(1,300,all_y,128*2,256*2,0.0,0,0,128,256,1,1,1,1,0,0,0);
if(time>=maxtime){
SetData("next","char","1");
}
DrawTexure(-1,0,0,640,480,0.0, 0,0,256,256,0,0,0,time/maxtime,0,0,1);
break;
}
DrawTexure(9,0,all_y+430,640,100,0.0,0,395,256,512,0,0,0,1,0,0,1);
}