Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #TouhouDanmakufu[Single]
- #ScriptVersion[3]
- #Title["Test 1-6"]
- #Text["???"]
- #include "script/default_system/Shot/ZUNShot_Const.txt"
- let objBoss;
- @Event{
- alternative(GetEventType())
- case(EV_REQUEST_LIFE){
- SetScriptResult(3500);
- }
- case(EV_REQUEST_TIMER){
- SetScriptResult(30);
- }
- case(EV_REQUEST_SPELL_SCORE){
- SetScriptResult(2300000);
- }
- }
- @Initialize{
- objBoss = ObjEnemy_Create(OBJ_ENEMY_BOSS);
- ObjEnemy_Regist(objBoss);
- let imgBoss = GetCurrentScriptDirectory() ~ "shikieiki.png.png";
- ObjPrim_SetTexture(objBoss, imgBoss);
- ObjSprite2D_SetSourceRect(objBoss, 0, 0, 148, 125);
- ObjSprite2D_SetDestCenter(objBoss);
- ObjMove_SetDestAtFrame(objBoss, GetCenterX() , 60, 60);
- TFinalize;
- MainTask;
- }
- @MainLoop{
- ObjEnemy_SetIntersectionCircleToShot(objBoss, ObjMove_GetX(objBoss), ObjMove_GetY(objBoss), 32);
- ObjEnemy_SetIntersectionCircleToPlayer(objBoss, ObjMove_GetX(objBoss), ObjMove_GetY(objBoss), 24);
- yield;
- }
- task MainTask{
- while(ObjEnemy_GetInfo(objBoss,INFO_LIFE) > 0){
- ObjMove_SetDestAtFrame(objBoss, GetCenterX(), 60, 60);
- wait(80);
- let objLaser = CreateCurveLaserA1(ObjMove_GetX(objBoss), ObjMove_GetY(objBoss), 5, GetAngleToPlayer(objBoss),
- 60, 20, 33, 10);
- ObjCrLaser_SetTipDecrement(objLaser, 1); //make the tip of the laser visible
- yield;
- }
- }
- task TFinalize {
- while(ObjEnemy_GetInfo(objBoss, INFO_LIFE) > 0){yield;}
- Obj_Delete(objBoss);
- DeleteShotAll(TYPE_ALL, TYPE_IMMEDIATE);
- SetAutoDeleteObject(true);
- CloseScript(GetOwnScriptID());
- return;
- }
- function GetCenterX() {
- return GetStgFrameWidth() / 2;
- }
- function GetCenterY(){
- return GetStgFrameHeight() / 2;
- }
- function wait(n){
- loop(n){yield;}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement