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   
Text File  |  2010-01-03  |  2KB  |  111 lines

  1. extends DxChar;
  2.  
  3. zOrder=1;
  4. while(1){
  5. y+=2;
  6. if (crashTo($Player1)) {
  7.   $mplayer.play($se_atack,0,128);
  8.   y+=50;
  9.   while(1){
  10.     angle+=30;
  11.     if(y>25) y-=10;
  12.     if(x<$teacher.x) x+=10; else x-=10;
  13.     update();
  14.     if(y<=25 && x>=$teacher.x-10 && x<=$teacher.x+10){
  15.       p=0;
  16.       $teacherstop=1;
  17.             $uboatime=3;
  18.       die();
  19.       }        
  20. }
  21. }
  22. if (crashTo($Player2)) {
  23.   $mplayer.play($se_atack,0,128);
  24.   y+=50;
  25.   while(1){
  26.     angle+=30;
  27.     if(y>25) y-=10;
  28.     if(x<$teacher.x) x+=10; else x-=10;
  29.     update();
  30.     if(y<=25 && x>=$teacher.x-10 && x<=$teacher.x+10){
  31.       p=0;
  32.       $teacherstop=1;
  33.             $uboatime=3;
  34.       die();
  35.       }        
  36. }
  37. }
  38. if($playersuu>=2){
  39.   for (e in $chars) {
  40.     if(e is Player1 && crashTo(e)){
  41.       $mplayer.play($se_atack,0,128);
  42.       y+=50;
  43.       while(1){
  44.         angle+=30;
  45.         if(y>25) y-=10;
  46.         if(x<$teacher.x) x+=10; else x-=10;
  47.         update();
  48.         if(y<=25 && x>=$teacher.x-10 && x<=$teacher.x+10){
  49.           p=0;
  50.           $teacherstop=1;
  51.           $uboatime=3;
  52.           die();
  53.         }        
  54.       }    
  55.     }
  56.     if(e is Player2 && crashTo(e)){
  57.       $mplayer.play($se_atack,0,128);
  58.       y+=50;
  59.       while(1){
  60.         angle+=30;
  61.         if(y>25) y-=10;
  62.         if(x<$teacher.x) x+=10; else x-=10;
  63.         update();
  64.         if(y<=25 && x>=$teacher.x-10 && x<=$teacher.x+10){
  65.           p=0;
  66.           $teacherstop=1;
  67.           $uboatime=3;
  68.           die();
  69.         }        
  70.       }    
  71.     }
  72.     if(e is Player3 && crashTo(e)){
  73.       $mplayer.play($se_atack,0,128);
  74.       y+=50;
  75.       while(1){
  76.         angle+=30;
  77.         if(y>25) y-=10;
  78.         if(x<$teacher.x) x+=10; else x-=10;
  79.         update();
  80.         if(y<=25 && x>=$teacher.x-10 && x<=$teacher.x+10){
  81.           p=0;
  82.           $teacherstop=1;
  83.           $uboatime=3;
  84.           die();
  85.         }        
  86.       }    
  87.     }
  88.     if(e is Player4 && crashTo(e)){
  89.       $mplayer.play($se_atack,0,128);
  90.       y+=50;
  91.       while(1){
  92.         angle+=30;
  93.         if(y>25) y-=10;
  94.         if(x<$teacher.x) x+=10; else x-=10;
  95.         update();
  96.         if(y<=25 && x>=$teacher.x-10 && x<=$teacher.x+10){
  97.           p=0;
  98.           $teacherstop=1;
  99.           $uboatime=3;
  100.           die();
  101.         }        
  102.       }
  103.     }
  104.   }
  105. }
  106.  
  107. if (y>$screenHeight) {
  108. die();
  109. }
  110.   update();
  111. }