function Stage1{
   if(phase==0){
      SetCommonData("bgx",0);
      SetCommonData("bgy",0);
      PlayMusic( bgmst1 );
      phase=1;
      time=0;
   }
   if(phase==1){
      if(time==100){Tzakoheli1( 1, +1.2, 25, 2, 0);}
      if(time==150){Tzakoheli1( 1, -0.7, 15, 3, 0);}
      if(time==100){Tzakocannon1a( 224-20, 380, 1, 3, 0);}
      if(time==40){Tzakogun101;}
      if(time==350){Tzakoheli1( 0, 1, 10, 4, 0);}
      if(time==160){Tzakogun102;}
      if(time==100){CreateEnemyFromFile( izumi, 224-80, 450, 0, 0, 1);}

      if(time==500){Tzakoheli1( 0, -1, 10, 4, 0);}
      if(time==100){Tzakotank1( 224-240, 540, 0, 6, 0);}
      if(time==530){CreateEnemyFromFile( zakoheli2, 224-50, -10, 0, 145, 1);}
      if(time==560){CreateEnemyFromFile( zakoheli2, 224+50, -10, 0, 145, -1);}
      if(time==400){Tzakocannon1a( 224+60, 600, -1, 4, 0);}

      if(time==670){CreateEnemyFromFile( item, 224, 0, 0, 90, 0);}
      if(time==730){Tzakoheli1( 1, -1, 10, 4, 0);}
      if(time==830){Tzakoheli1( 1, 1, 10, 4, 0);}
      if(time==600){Tzakogun103;}
      if(time==700){Tzakocannon1a( 224-120, 855, -1, 3, 0);}

      if(time==900){CreateEnemyFromFile( air1, 224+30, -30, 0, 90, 1);}
      if(time==750){CreateEnemyFromFile( izumi, 224+130, 950, 0, 0, 1);}
      if(time==800){CreateEnemyFromFile( cannonbig1, 224-90, 1050, 0, 0, 0);}

      if(time==1240){Tzakoheli1( 0, 0, 10, 4, 0);}
      if(time==1290){Tzakoheli1( 1, 1, 10, 4, 0);}
      if(time==1370){CreateEnemyFromFile( air1, 224+70, -30, 0, 90, 1);}
      if(time==1470){CreateEnemyFromFile( air1, 224-70, -30, 0, 90, 1);}
      if(time==1380){Tzakogun104;}
      if(time==1570){Tzakoheli1( 0, 1, 10, 4, 0);}
      if(time==1620){CreateEnemyFromFile( air1, 224+70, -30, 0, 90, 1);}
      if(time==1720){CreateEnemyFromFile( air1, 224-70, -30, 0, 90, 1);}
      if(time==1400){Tzakocannon1a( 224+100, 1350, 1, 3, 0);}
      if(time==1720){Tzakoheli1( 0, -1, 10, 4, 0);}
      if(time==1790){Tzakoheli1( 0, 1, 10, 5, 0);}
      if(time==1820){CreateEnemyFromFile( air1, 224, -30, 0, 90, 1);}

      if(time==1400){CreateEnemyFromFile( izumi, 224+150, 1650, 0, 0, 1);}
      if(time==1400){CreateEnemyFromFile( izumi, 224-150, 1650, 0, 0, 1);}
      if(time==1400){CreateEnemyFromFile( st1semiboss, 224, 1550, 0, 0, 0);}

      if(GetCommonData("haya")==1){
      if(time==2300){CreateEnemyFromFile( air1, 224+50, -30, 0, 90, 1);}
      if(time==2370){CreateEnemyFromFile( air1, 224-130, -30, 0, 90, 1);}
      if(time==2440){CreateEnemyFromFile( air1, 224-50, -30, 0, 90, 1);}
      if(time==2510){CreateEnemyFromFile( air1, 224+130, -30, 0, 90, 1);}
      if(time==2580){CreateEnemyFromFile( air1, 224+50, -30, 0, 90, 1);}
      if(time==2650){CreateEnemyFromFile( air1, 224-130, -30, 0, 90, 1);}
      }

      if(time==2300){Tzakotank1( 224+240, 2490, 148, 10, 0);}
      if(time==2360){Tzakotank1( 224+240, 2430, 148, 10, 0);}
      if(time==2790){Tzakoheli1( 0, -1, 10, 5, 0);}
      if(time==2820){CreateEnemyFromFile( air1, 224-80, -30, 0, 90, 1);}
      if(time==2940){Tzakoheli1( 0, 1, 10, 5, 0);}
      if(time==3020){CreateEnemyFromFile( air1, 224+20, -30, 0, 90, 1);}
      if(time==2600){Tzakocannon1a( 224+50, 2630, 1, 4, 0);}
      if(time==2780){Tzakogun105;}

      if(time==3000){CreateEnemyFromFile( izumi, 224-90, 2700, 0, 0, 1);}
      if(time==3000){CreateEnemyFromFile( cannonbig1, 224+90, 2740, 0, 0, 0);}
      if(time==3150){Tzakogun106;}
      if(time==3150){Tzakogun107;}
      if(time==3430){Tzakoheli1( 0, 0, 10, 4, 0);}
      if(time==3520){Tzakoheli1( 1, -1, 10, 4, 0);}
      if(time==3570){Tzakoheli1( 0, 0, 10, 3, 0);}
      if(time==3600){Tzakoheli1( 1, 1, 10, 4, 0);}
      if(time==3500){CreateEnemyFromFile( izumi, 224-150, 3000, 0, 0, 1);}
      if(time==3500){CreateEnemyFromFile( izumi, 224+150, 3000, 0, 0, 1);}
      if(time==3630){CreateEnemyFromFile( zakoheli2, 224-30, -10, 0, 145, 1);}
      if(time==3650){CreateEnemyFromFile( zakoheli2, 224+30, -10, 0, 145, -1);}
      if(time==3670){CreateEnemyFromFile( zakoheli2, 224-70, -10, 0, 145, 1);}
      if(time==3690){CreateEnemyFromFile( zakoheli2, 224+70, -10, 0, 145, -1);}
      if(time==3750){Tzakoheli1( 0, -1, 10, 6, 0);}
      if(time==3780){Tzakoheli1( 0, 1, 10, 6, 0);}
      if(time==3700){Tzakocannon1b( 224-100, 3180, 0, 5, 0);}
      if(time==3830){CreateEnemyFromFile( item, 224, 0, 0, 90, 0);}





      if(time==4000){CreateEnemyBossFromFile( st1boss, 224, -150, 0, 0, 0);}

      if(time==3800){DeleteMusic(bgmst1);PlaySE( se4 );}
      if(time==4000){PlayMusic(bgmboss);}

      if(time<100){SetCommonData("bgy",time*3);}
      if(time>=100&&time<1100){SetCommonData("bgy",300+(time-100)*0.8);}
      if(time>=1100&&time<1300){SetCommonData("bgy",1100+(time-1100)*0.5);}
      if(time>=1300&&time<3300){SetCommonData("bgy",1200+(time-1300)*0.8);}
      if(time>=3300&&time<3500){SetCommonData("bgy",2800+(time-3300)*0.5);}
      if(time>=3500&&time<3600){SetCommonData("bgy",2900+(time-3500)*0.8);}
      if(time>=3600&&time<3700){SetCommonData("bgy",2980+(time-3600)*1.2);}
      if(time>=3700&&time<4000){SetCommonData("bgy",3100+(time-3700)*1.6);}
      if(time>=4000&&time<4100){SetCommonData("bgy",3580+(time-4000)*2.2);}
      if(time>=4100){SetCommonData("bgy",3800+((time-4100)*3.0)%240);}

      if(time>4100&&GetCommonData("bossphase")==0){DeleteMusic(bgmboss);}
      if(time>4100&&IsBossExisting==false&&clear==false&&(GetCommonData("bgy")-3800)==45){Tclear;}
   }
}