#TouhouDanmakufu
#Title[Eirin]
#Text[Raifu Gemu]
#Player[FREE]
#ScriptVersion[2]
script_enemy_main {
let BossImage = "script\img\ExRumia.png";
let frame = -60;
let a = 0;
let num = 32;
let x = rand(0, -10);
let y = rand(0, -10);
let graphic_spread = [RED01, ORANGE01, YELLOW01, GREEN01, AQUA01, BLUE01, PURPLE01, WHITE01];
let graphic_bubble= [RED02, ORANGE02, YELLOW02, GREEN02, AQUA02, BLUE02, PURPLE02, WHITE02];
@Initialize {
SetLife(2400); SetDamageRate(40, 0);
SetEnemyMarker(true);
LoadGraphic(BossImage);
SetMovePosition02(GetCenterX, GetClipMinY+100, 60);
CutIn(KOUMA,"**「*********」", "", 0, 0, 0, 0);
SetScore(1000000); //SetDurableSpellCard;
}
@MainLoop {
SetCollisionA(GetX, GetY, 32); //32 for boss, 10 for fairy
SetCollisionB(GetX, GetY, 24);//24 for boss, 5 for fairy
if(frame == 60) {
PlaySE("se\11\se_lazer00.wav");
ascent(i in 0..200) {
ascent(j in 0.. 200) {
CreateShot01(GetClipMinX+x+i*20, GetClipMinY+y+j*20, 0, 90, graphic_spread[rand_int(0, 7)], 10+i+j);
CreateShot01(GetClipMaxX-x-i*20, GetClipMaxY-y-j*20, 0, 90, graphic_spread[rand_int(0, 7)], 10+i+j);
}
}
}
if(frame >= 120 && frame <= 270 && frame % 5 == 0) {
PlaySE("se\11\se_tan02.wav");
loop(num) {
CreateShot01(GetX, GetY, rand(2, 6), GetAngleToPlayer+a, graphic_bubble[rand_int(0, 7)], 0);
a+=360/num;
}
}
if(frame == 300) {
DeleteEnemyShot(ALL);
frame = -60;
a = 0;
x = rand(-5, 0);
y = rand(-5, 0);
}
frame++;
}
@DrawLoop {
SetTexture(BossImage);
SetGraphicRect(0, 0, 64, 64);
DrawGraphic(GetX, GetY);
}
@Finalize {
DeleteGraphic(BossImage);
}
}
NO ONE WILL KNOW THE NAME OF THIS SPELL CARD.
Anyways, just asking if this spell card can pass for level ex.