#TouhouDanmakufu
#Title[The conversation. Durr.]
#Text[Nyan~]
#Player[FREE]
#ScriptVersion[2]

script_enemy_main {
    let ImgBoss = GetCurrentScriptDirectory~"MarisaSprites.png";
	let reimu = "reimu.png";
let marisa = "marisa.png";
let rumia = "rumia.png";
    let frame = -120;
let maritheme = GetCurrentScriptDirectory~"bgm2.mp3";
    @Initialize {
        SetLife(10);
        SetTimer(60);
        SetInvincibility(180);
	SetDamageRate(100,0);
        SetMovePosition02(GetCenterX, GetClipMinY + 120, 120);
        LoadMusic(maritheme);

        LoadGraphic(ImgBoss);
        SetTexture(ImgBoss);
        SetGraphicRect(1, 1, 64, 70);
    }

    @MainLoop {
        SetCollisionA(GetX, GetY, 32);
        SetCollisionB(GetX, GetY, 16);

	
CreateEventFromScript("mar");
if(GetEventStep == 1) { 
AddLife(-GetLife);
 }
 
if(GetEventStep == 1) { 
PlayMusic(maritheme);
	}
frame++;
	}
       

    

    @DrawLoop {
 
                DrawGraphic(GetX,GetY);
    }

    @Finalize {
        DeleteGraphic(ImgBoss);
    }


}



script_event mar{
let reimu = GetCurrentScriptDirectory ~ ("reimu.png");
let marisa=GetCurrentScriptDirectory ~ ("marisa.png");
let marisaangry = GetCurrentScriptDirectory ~ ("MariAngry.png");
let secant =GetCurrentScriptDirectory~ ("\cutin2.png");
let marisasmug = GetCurrentScriptDirectory~ ("MariSmug.png");


@Initialize{
  LoadGraphic(reimu);
	LoadGraphic(marisa);
	LoadGraphic(marisasmug);
	LoadGraphic(marisaangry);
 }

@MainLoop{
SetChar(LEFT, reimu);                 
SetGraphicRect(LEFT, 128, 0, 256, 256);           
MoveChar(LEFT, FRONT);                                      
MoveChar(RIGHT, BACK);
TextOutA("\c[RED] You again?");
SetChar(RIGHT, marisaangry); 
SetGraphicRect(RIGHT, 0, 0, 128, 257);
MoveChar(LEFT, BACK);
MoveChar(RIGHT, FRONT);                       
TextOutA("\c[WHITE] Enough with the talk! \n I'll win this time!"); 
SetChar(RIGHT, marisasmug);
TextOutA("\c[WHITE] I'm prepared now. Feel the power of \n love!"); 
SetStep(2);
End;           //This ends the event. REMEMBER ME!
SetStep(1);
}

 @Finalize{
  
 }
}

