home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ring.yamanashi.ac.jp/pub/pc/freem/action/
/
action.zip
/
panhumu121.zip
/
panhumu121
/
game
/
script
/
logo.dat
< prev
next >
Wrap
Text File
|
2006-04-05
|
1KB
|
74 lines
//Åëè·ë╗è╓Éö
function OnInit()
{
new("isPushButton1",1);
new("time",0);
new("maxtime",0);
new("mode",0);
new("size",0);
new("alpha",0);
new("rad",0);
new("blackout",-1);
LoadTexure("data\opening\rakuda.bmp",0);
}
function OnProc()
{
if(GetKeyData("isButton1") == 1){
if(isPushButton1 <= 0){
if(mode<1){
mode = 1;
}
else{
SetData("next","char","1");
}
}
isPushButton1 = 1;
}
else{
isPushButton1 = 0;
}
time += 1;
rad = 0.0;
switch(mode){
case 0:
maxtime = 120;
alpha = 0.25 + time/maxtime*0.75;
rad = (1-time/maxtime)*360*2;
size = 256+(1-alpha)*256*2;
if(time>=maxtime){
time = 0;
mode = 1;
}
break;
case 1:
maxtime = 120;
alpha = 1;
size = 256;
if(time>=maxtime){
time = 0;
mode = 99;
}
break;
case 99:
maxtime = 60;
blackout = (time/maxtime);
size = 256;
if(time>=maxtime){
time = maxtime;
SetData("next","char","1");
}
break;
}
DrawTexure(9,320,240,650,500,0.0,0,0,256,256,1,1,1,1,0.5,0.5,0);
DrawTexure(0,320,240,size,size,rad,0,0,256,256,1,1,1,alpha,0.5,0.5,1);
if(blackout>=0){
DrawTexure(9,320,240,650,500,0.0,0,0,256,256,0,0,0,blackout,0.5,0.5,1);
}
}