script_event Start0{
	@Initialize{}

	@MainLoop{
		Wait(10);
		if(GetPlayerType==REIMU_A || GetPlayerType==REIMU_B){
			TextOutA("\c[BLUE]cc");
			TextOutA("\c[BLUE]̗d̑Ăr[cc");
			TextOutA("\c[BLUE]ߕӂ̗d̗lq\nwȂĂ񂾂ǁH");
			TextOutA("\c[BLUE]͂菊F͗dcc\n͂̎g𗝉ĂȂ̂");
			}
		else if(GetPlayerType==MARISA_A || GetPlayerType==MARISA_B){
			TextOutA("\c[BLUE]ccA͂ǂH");
			TextOutA("\c[BLUE]̗d̑ĂĂcc");
			TextOutA("\c[BLUE]ߕӂ̗d̗lq\nwȂĂ邺cc");
			TextOutA("\c[BLUE]܂A͂Œ荇\n񂾂ǂ");
			} else {
			TextOutA("\c[RED]Ƒ҂[I");
			}
		Wait(50);
		End;
	}
	@Finalize{}
}

script_event Start1{
	@Initialize{}

	@MainLoop{
		Wait(10);
		if(GetPlayerType==REIMU_A || GetPlayerType==REIMU_B){
			TextOutA("\c[RED]A");
			TextOutA("\c[RED]ŉ΂ɂ~̒");
			TextOutA("\c[BLUE]wāx̒");
			TextOutA("\c[BLUE]ŁH@oJ̗̉lH");
			TextOutA("\c[RED]Ȃ񂩂A傿񂪁u[[̂vēzɋĂ炵Ă");
			TextOutA("\c[RED]̃mEnEăcĂ̂I");
			TextOutA("\c[BLUE]ccŁH");
			TextOutA("\c[RED]ĎŁAɍŋɂȂƏI");
			TextOutA("\c[BLUE]ccǂAߕӂ̗d̗lqȂ̂́A񂽂݂̂");
			TextOutA("\c[BLUE]AvԂ̗dގɋ΂ނƂ܂I");
			}
		else if(GetPlayerType==MARISA_A || GetPlayerType==MARISA_B){
			TextOutA("\c[RED]A");
			TextOutA("\c[RED]ŉ΂ɂ~̒");
			TextOutA("\c[BLUE]wāx̒A");
			TextOutA("\c[BLUE]ŁH@oJ̗̉lH");
			TextOutA("\c[RED]Ȃ񂩂A傿񂪁u[[̂vēzɋĂ炵Ă");
			TextOutA("\c[RED]̃mEnEăcĂ̂I");
			TextOutA("\c[BLUE]");
			TextOutA("\c[RED]ĎŁAɍŋɂȂƏI");
			TextOutA("\c[BLUE]ccقAM݂");
			TextOutA("\c[BLUE]I@܂Ƃ߂ĐɕςĂ邺I");
			} else {
			TextOutA("\c[RED]͂̓꒣肾");
			TextOutA("\c[RED]ʂ肽΁Aŋ̂ɏĂ݂ȁI");
			}
		Wait(50);
		End;
	}
	@Finalize{}
}

script_enemy_main
{
        let count=0;
        let csd     = GetCurrentScriptDirectory;
        let imgBoss =csd~"img\dot_cirno.png";
	let Motion=0;
	let angle=0;
        let cx=GetCenterX();
        let cy=GetCenterY();
	let AnimationA=0;
	let AnimationB=0;

    @Initialize {
        SetLife(50);
        SetScore(10);
        SetDamageRate(0,0);
        SetX(458);
        SetY(50);
	LoadGraphic(imgBoss);
        TAnime1;
	TEvent;
    }

    @MainLoop {
        SetCollisionA(GetX(),GetY(),18);
        SetCollisionB(GetX(),GetY(),18);
        count++;
        yield;
    }

        @DrawLoop {
		SetRenderState(ALPHA);
		SetTexture(imgBoss);
		SetGraphicScale(1,1);
		SetAlpha(255);
		SetColor(255,255,255);
		SetGraphicAngle(0,0,0);
		if(int(GetSpeedX())==0)
		{SetGraphicRect(0,128*AnimationB,127,127+128*AnimationB);}
		else if(GetSpeedX()>0){SetGraphicRect(256,256+128*AnimationA,383,383+128*AnimationA);}
		else if(GetSpeedX()<0){SetGraphicRect(256,128*AnimationA,383,127+128*AnimationA);}
		DrawGraphic(GetX(),GetY());
	}

        @Finalize
        {
        } 
    	task TAnime1{
		loop{
			AnimationB=0;
        		loop(10){yield;}
			AnimationB=1;
        		loop(10){yield;}
			AnimationB=2;
        		loop(10){yield;}
			AnimationB=3;
        		loop(10){yield;}
			}
		}

    	task TAnime2{
			AnimationA=0;
        		loop(10){yield;}
			AnimationA=1;
        		loop(40){yield;}
			AnimationA=0;
        		loop(10){yield;}
		}
	task TEvent{
		CreateEventFromScript("Start0");
		while(OnEvent){yield;}
		TAnime2;
        	SetMovePosition02(GetCenterX(),150,60);
		CreateEventFromScript("Start1");
		while(OnEvent){yield;}
		AddLife(-1000);
		}
}