do -- local変数有効範囲 -- 調整が必要そうな値はこの辺に local StepWait = 0.3; local AnimationWait = 0.25; -- 初期化 function MGJyugemuInitialize(Object) Object:SetType(actor_manager.AT_ENEMY); Object:AddNode(package_manager.EN_ENEMY_07_04_a); Object:AddNode(package_manager.EN_ENEMY_07_04_b); Object:SetHp(1); Object:SetPhase(0); Object:SetSpeed(1); Object:SetTime(0); Object:SetAmount(4); Object:AddColor(0.18, 0.19, 0.20); Object:AddColor(0.09, 0.14, 0.15); Object:DisableAutoDead(); end -- 更新処理 function MGJyugemuUpdate(Object) if ( Object:IsDead() ) then Object:CreateEffect(); 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 MGJyugemuCheckMove(Object, type) if( type == actor_manager.AT_BOMB ) then return actor_manager.MR_BLOCK; end return actor_manager.MR_NONE; end function MGJyugemuCheckCollision(Object, type) return Object:BlockDefenceCollision(type); end end -- local変数有効範囲