#TouhouDanmakufu
#Title[Sakuya Scarlet]
#Text[Remilia Izayoi]
#Player[FREE]
#ScriptVersion[2]
script_enemy_main {
let BossImage = "script\img\ExRumia.png";
let IsSelectingColour = true; let delaystart = -120;
let startingplayercoordinates = [GetPlayerX, GetPlayerY];
let destinycolour = 0; let destinytext = ["Red", "Orange", "Yellow", "Green", "Aqua", "Blue", "Purple", "White"];
let destinyfont = [[255, 0, 0], [255, 192, 128], [255, 255, 0], [0, 255, 0], [128, 192, 255], [0, 0, 255], [255, 0, 255], [255, 255, 255]];
let frame = -180;
let a = rand(0, 360);
let num = 5;
let graphic_knife = [RED32, ORANGE32, YELLOW32, GREEN32, AQUA32, BLUE32, PURPLE32, WHITE32];
let graphic_bubble = [RED03, ORANGE03, YELLOW03, GREEN03, AQUA03, BLUE03, PURPLE03, WHITE03];
@Initialize {
SetLife(2400); SetDamageRate(40, 0);
SetEnemyMarker(true);
SetTimer(60);
LoadGraphic(BossImage);
SetMovePosition02(GetCenterX, GetClipMinY+100, 60);
CutIn(KOUMA,"「Destiny-Defined Colour」", "", 0, 0, 0, 0);
SetScore(1000000); SetDurableSpellCard;
}
@MainLoop {
if(frame > 0) {
loop(num) {
CreateShot01(GetX, GetY, 3, a+rand(-3, 3), graphic_knife[destinycolour], 10);
CreateShot01(GetX, GetY, 3, -a+rand(-3, 3), graphic_knife[destinycolour], 10);
a+=360/num;
}
a+=num/2+3;
}
if(frame == 180) {
loop(40) {
CreateShot01(GetX, GetY, 3, a, graphic_bubble[destinycolour], 10);
a+=360/40;
}
}
if(frame == 180) {
frame = -120;
a = rand(0, 360);
SetMovePosition03(rand(GetClipMinX+50, GetClipMaxX-50), rand(GetClipMinY+50, GetCenterY-50), 10, 2);
}
if(IsSelectingColour) {
SetTimer(GetTimer+1); ForbidShot(true); ForbidBomb(true);
SetPlayerX(startingplayercoordinates[0]); SetPlayerY(startingplayercoordinates[1]);
if(GetKeyState(VK_DOWN) == KEY_PUSH) { destinycolour++; }
if(GetKeyState(VK_UP) == KEY_PUSH) { destinycolour--; }
if(destinycolour < 0) { destinycolour = 0; } if(destinycolour > 7) { destinycolour = 7; }
if(GetKeyState(VK_SHOT) == KEY_PUSH && delaystart >= 0){ ForbidShot(false); ForbidBomb(false); IsSelectingColour = false; }
if(delaystart < 60) { delaystart++; }
}
if(!IsSelectingColour) {
SetCollisionA(GetX, GetY, 32); //32 for boss, 10 for fairy
SetCollisionB(GetX, GetY, 24);//24 for boss, 5 for fairy
frame++;
}
}
@DrawLoop {
if(IsSelectingColour) {
DrawText("Select Colour.", GetClipMaxX/4, GetClipMaxY*3/4-12, 12, 255);
SetFontColor(destinyfont[destinycolour][0], destinyfont[destinycolour][1], destinyfont[destinycolour][2], destinyfont[destinycolour][0], destinyfont[destinycolour][1], destinyfont[destinycolour][2]);
DrawText(destinytext[destinycolour], GetClipMaxX/4, GetClipMaxY*3/4, 24, 255);
}
SetFontColor(destinyfont[destinycolour][0], destinyfont[destinycolour][1], destinyfont[destinycolour][2], destinyfont[destinycolour][0], destinyfont[destinycolour][1], destinyfont[destinycolour][2]);
DrawText("海龍 爾夜知", 40, 36, 12, 255);
SetTexture(BossImage);
SetGraphicRect(0, 0, 64, 64);
DrawGraphic(GetX, GetY);
}
@Finalize {
DeleteGraphic(BossImage);
}
}
Rate. Now. Is tidiness even necessary when you make a game??
edit: POST #⑨0! Yes!!