home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ring.yamanashi.ac.jp/pub/pc/freem/action/
/
action.zip
/
henkyaku1.0.exe
/
henkyaku
/
Program
/
Usr
/
yakuhin.tonyu
< prev
Wrap
Text File
|
2010-01-03
|
2KB
|
111 lines
extends DxChar;
zOrder=1;
while(1){
y+=2;
if (crashTo($Player1)) {
$mplayer.play($se_atack,0,128);
y+=50;
while(1){
angle+=30;
if(y>25) y-=10;
if(x<$teacher.x) x+=10; else x-=10;
update();
if(y<=25 && x>=$teacher.x-10 && x<=$teacher.x+10){
p=0;
$teacherstop=1;
$uboatime=3;
die();
}
}
}
if (crashTo($Player2)) {
$mplayer.play($se_atack,0,128);
y+=50;
while(1){
angle+=30;
if(y>25) y-=10;
if(x<$teacher.x) x+=10; else x-=10;
update();
if(y<=25 && x>=$teacher.x-10 && x<=$teacher.x+10){
p=0;
$teacherstop=1;
$uboatime=3;
die();
}
}
}
if($playersuu>=2){
for (e in $chars) {
if(e is Player1 && crashTo(e)){
$mplayer.play($se_atack,0,128);
y+=50;
while(1){
angle+=30;
if(y>25) y-=10;
if(x<$teacher.x) x+=10; else x-=10;
update();
if(y<=25 && x>=$teacher.x-10 && x<=$teacher.x+10){
p=0;
$teacherstop=1;
$uboatime=3;
die();
}
}
}
if(e is Player2 && crashTo(e)){
$mplayer.play($se_atack,0,128);
y+=50;
while(1){
angle+=30;
if(y>25) y-=10;
if(x<$teacher.x) x+=10; else x-=10;
update();
if(y<=25 && x>=$teacher.x-10 && x<=$teacher.x+10){
p=0;
$teacherstop=1;
$uboatime=3;
die();
}
}
}
if(e is Player3 && crashTo(e)){
$mplayer.play($se_atack,0,128);
y+=50;
while(1){
angle+=30;
if(y>25) y-=10;
if(x<$teacher.x) x+=10; else x-=10;
update();
if(y<=25 && x>=$teacher.x-10 && x<=$teacher.x+10){
p=0;
$teacherstop=1;
$uboatime=3;
die();
}
}
}
if(e is Player4 && crashTo(e)){
$mplayer.play($se_atack,0,128);
y+=50;
while(1){
angle+=30;
if(y>25) y-=10;
if(x<$teacher.x) x+=10; else x-=10;
update();
if(y<=25 && x>=$teacher.x-10 && x<=$teacher.x+10){
p=0;
$teacherstop=1;
$uboatime=3;
die();
}
}
}
}
}
if (y>$screenHeight) {
die();
}
update();
}