#“Œ•û’e–‹•— #Title[êt—dŒ•u“V‘p‰_Œ•@-Lunatic-v] #Text[‚Ý‚å‚ñ—pƒXƒyƒ‹3‚–Ú] #ScriptVersion[2] #BackGround[User(.\img\spell1.PNG, 0, 0)] script_enemy_main { let name= "êt—dŒ•u“V‘p‰_Œ•@-Lunatic-v"; let imgBoss = "script\img\ExRumia.png"; let frame = 0; let angleBase = 90; @Initialize { CutIn(YOUMU, name, "", 0, 0, 0, 0); SetLife(1000); SetDamageRate(30,5); SetTimer(66); LoadGraphic(imgBoss); SetTexture(imgBoss); SetGraphicRect(0, 0, 63, 63); SetMovePosition02(224,100,60); } @MainLoop { SetCollisionA(GetX, GetY, 24); SetCollisionB(GetX, GetY, 24); frame++; if(frame == 15) { nway(angleBase, 33, 15, BLUE32); angleBase += 8; } else if(frame == 30) { nway(angleBase, 51, 9, PURPLE31); angleBase += 8; } else if(frame == 31) { nway(angleBase, 18, 30, WHITE03); angleBase += 3; frame = 0; } } @DrawLoop { DrawGraphic(GetX, GetY); } @Finalize { DeleteGraphic(imgBoss); } function nway(dir, way, span, color) { let radius = 32; let angle = dir - (way - 1) / 2 * span; loop(way) { let x = GetX + offsetX(radius, angle); let y = GetY + offsetY(radius, angle); CreateShot01(x, y, 2, angle, color, 5); angle += span; } } function offsetX(radius, angle) { return radius * cos(angle); } function offsetY(radius, angle) { return radius * sin(angle); } }