do -- local変数有効範囲 -- 調整が必要そうな値はこの辺に local StepWait = 0.3; local AnimationWait = 0.25; local SHOT_MAX = 16; local SHOT_INTERVAL = 0.2; -- 初期化 function MGLSquidInitialize(Object) Object:SetType(actor_manager.AT_ENEMY); Object:AddNode(package_manager.EN_ENEMY_16_02_a); Object:AddNode(package_manager.EN_ENEMY_16_02_b); Object:SetHp(1); Object:SetPhase(0); Object:SetSpeed(1); Object:SetTime(0); Object:SetAmount(4); Object:AddColor(0.35, 0.11, 0.04); Object:AddColor(0.35, 0.11, 0.04); Object:AddColor(0.50, 0.47, 0.40); Object:AddColor(0.20, 0.07, 0.07); Object:SetBDBossParam(SHOT_MAX, SHOT_INTERVAL); Object:DisableAutoDead(); end -- 更新処理 function MGLSquidUpdate(Object) if ( Object:IsDead() ) then Object:CreateEffectBDBoss(); Object:DropBDMoney(); Object:CountUpBeatEnemyNum(); Object:Destroy(); return; end if ( Object:GetPhase() == 0 and Object:IsTimeZero() ) then Object:SetPhase(1); Object:SetTime(StepWait); Object:SetNode(0); end if ( Object:GetPhase() == 1 and Object:IsTimeZero() ) then Object:SetPhase(0); Object:SetTime(StepWait); Object:SetNode(1); end Object:BlockDefenceMove(); end -- 移動判定 function MGLSquidCheckMove(Object, type) if( type == actor_manager.AT_BOMB ) then return actor_manager.MR_BLOCK; end return actor_manager.MR_NONE; end function MGLSquidCheckCollision(Object, type) return Object:BlockDefenceCollision(type); end end -- local変数有効範囲