Section 1
//AppearEnemyData (AppearEnemyData)
package {
class AppearEnemyData {
protected var _AppearTime:uint;
protected var _BaseY:Number;
protected var _FlgBoss:uint;
protected var _BaseX:Number;
protected var _Enemy:Object;
protected var _ItemType:uint;
protected var _EnemyImage:Object;
function AppearEnemyData(_arg1:uint=0, _arg2:Object=null, _arg3:Object=null, _arg4:Number=0, _arg5:Number=0, _arg6:uint=0, _arg7:uint=0){
_AppearTime = _arg1;
_Enemy = _arg2;
_EnemyImage = _arg3;
_BaseX = _arg4;
_BaseY = _arg5;
_ItemType = _arg6;
_FlgBoss = _arg7;
}
function GetNew(_arg1:uint, _arg2:Number, _arg3:Number){
return (new AppearEnemyData(_arg1, _Enemy, _EnemyImage, _arg2, _arg3, _ItemType, _FlgBoss));
}
function get ItemType(){
return (_ItemType);
}
function get BaseX(){
return (_BaseX);
}
function get EnemyImage(){
return (_EnemyImage);
}
function get FlgBoss(){
return (_FlgBoss);
}
function ChangeData(_arg1:uint, _arg2:Number, _arg3:Number){
_AppearTime = _arg1;
_BaseX = _arg2;
_BaseY = _arg3;
}
function get BaseY(){
return (_BaseY);
}
function get AppearTime(){
return (_AppearTime);
}
function GetNewRelation(_arg1:uint, _arg2:Number, _arg3:Number){
return (new AppearEnemyData((_AppearTime + _arg1), _Enemy, _EnemyImage, (_BaseX + _arg2), (_BaseY + _arg3), _ItemType, _FlgBoss));
}
function get Enemy(){
return (_Enemy);
}
}
}//package
Section 2
//ArrayList (ArrayList)
package {
import flash.display.*;
public class ArrayList {
protected var MaxIndex:uint;
protected var Index:uint;
private var ObjStage:Object;
public var ArrList:Array;
public function ArrayList(){
Init();
}
function GetIndex(){
return (Index);
}
function Add(_arg1:Object){
if (Index == MaxIndex){
MaxIndex++;
};
ArrList[Index] = _arg1;
ObjStage.addChild(_arg1);
SetEmptyIndex();
}
private function SetEmptyIndex(){
var _local1:uint;
var _local2:Array;
var _local3:uint;
var _local4:uint;
_local1 = MaxIndex;
_local2 = ArrList;
_local3 = Index;
Index++;
_local4 = Index;
while (_local4 <= _local1) {
if (_local2[_local4] == null){
Index = _local4;
return;
};
_local4++;
};
_local3 = Index;
}
function GetArray(){
return (ArrList);
}
function Remove(_arg1:uint):void{
var _local2:uint;
var _local3:uint;
var _local4:Array;
_local2 = Index;
_local3 = MaxIndex;
_local4 = ArrList;
if (_local4[_arg1] != null){
ObjStage.removeChild(_local4[_arg1]);
};
_local4[_arg1] = null;
if ((_local3 - 1) == _arg1){
while (true) {
if (_local4[(_local3 - 1)] == null){
break;
} else {
if (_local3 <= 1){
_local4 = new Array();
_local2 = 0;
_local3 = 0;
break;
};
};
_local3--;
};
};
if (_arg1 < _local2){
_local2 = _arg1;
};
Index = _local2;
MaxIndex = _local3;
}
function get gMaxIndex(){
return (MaxIndex);
}
function Init(){
ArrList = new Array();
Index = 0;
MaxIndex = 0;
}
function GetDataCount(){
var _local1:Array;
var _local2:uint;
var _local3:uint;
_local1 = ArrList;
_local2 = 0;
_local3 = 0;
while (_local3 < _local1.length) {
if (_local1[_local3] != null){
_local2++;
};
_local3++;
};
return (_local2);
}
function GetLength(){
return (ArrList.length);
}
function SetStage(_arg1:DisplayObjectContainer){
ObjStage = _arg1;
}
function RemoveAll():void{
var _local1:Array;
var _local2:uint;
_local1 = ArrList;
_local2 = 0;
while (_local2 < _local1.length) {
if (_local1[_local2] != null){
ObjStage.removeChild(_local1[_local2]);
_local1[_local2] = null;
};
_local2++;
};
Init();
}
}
}//package
Section 3
//ArrayListBase (ArrayListBase)
package {
class ArrayListBase extends ArrayList {
override function Add(_arg1:Object){
_arg1.FlgExistArrayList = true;
super.Add(_arg1);
}
override function Remove(_arg1:uint):void{
ArrList[_arg1].FlgExistArrayList = false;
super.Remove(_arg1);
}
}
}//package
Section 4
//ArrayListEffect (ArrayListEffect)
package {
class ArrayListEffect extends ArrayListBase {
function MainScript(){
var _local1:Array;
var _local2:uint;
var _local3:uint;
var _local4:Object;
if (ArrList.length == 0){
return;
};
_local1 = ArrList;
_local2 = MaxIndex;
_local3 = 0;
while (_local3 < _local2) {
_local4 = _local1[_local3];
if (_local4 != null){
if (_local1[_local3].Move() == false){
Remove(_local3);
};
};
_local3++;
};
}
}
}//package
Section 5
//ArrayListEnemy (ArrayListEnemy)
package {
class ArrayListEnemy extends ArrayListBase {
protected var RangeX:Number;// = 5
protected var RangeY:Number;// = 5
protected var _StageData:StageData;
function ArrayListEnemy(){
RangeX = 5;
RangeY = 5;
super();
_StageData = MainValue._StageData.GetNew(10);
}
function MainScript(){
var _local1:Array;
var _local2:uint;
var _local3:uint;
var _local4:Object;
if (ArrList.length == 0){
return;
};
_local1 = ArrList;
_local2 = MaxIndex;
_local3 = 0;
while (_local3 < _local2) {
if (_local1[_local3] == null){
} else {
_local4 = _local1[_local3];
_local4.Move();
if (_local4.HitCheck(MainValue.Player, RangeX, RangeY)){
_local4.Dead();
} else {
if (_local4.OutCheck(_StageData.Left, _StageData.Right, _StageData.Top, _StageData.Down)){
_local4.Dead();
};
};
};
_local3++;
};
}
override function Add(_arg1:Object){
_arg1.SetIndex(Index);
super.Add(_arg1);
}
}
}//package
Section 6
//ArrayListEnemyShot (ArrayListEnemyShot)
package {
class ArrayListEnemyShot extends ArrayListBase {
protected var Player:PlayerScript;
protected var RangeX:Number;// = 5
protected var RangeY:Number;// = 5
protected var _StageData:StageData;
function ArrayListEnemyShot(){
RangeX = 5;
RangeY = 5;
super();
_StageData = MainValue._StageData.GetNew(10);
}
function MainScript(){
var _local1:Array;
var _local2:uint;
var _local3:uint;
var _local4:Object;
if (ArrList.length == 0){
return;
};
_local1 = ArrList;
_local2 = MaxIndex;
_local3 = 0;
while (_local3 < _local2) {
_local4 = _local1[_local3];
if (_local4 != null){
_local4.Move();
if (_local4.HitCheck(MainValue.Player, RangeX, RangeY)){
Remove(_local3);
} else {
if (_local4.OutCheck(_StageData.Left, _StageData.Right, _StageData.Top, _StageData.Down)){
Remove(_local3);
} else {
if (_local4.DeleteCheck()){
Remove(_local3);
};
};
};
};
_local3++;
};
}
function RemoveCircle(_arg1:Number, _arg2:Number, _arg3:Number){
var _local4:Array;
var _local5:uint;
var _local6:uint;
var _local7:Object;
var _local8:Number;
var _local9:Number;
_local4 = ArrList;
_local5 = MaxIndex;
_local6 = 0;
while (_local6 < _local5) {
_local7 = _local4[_local6];
if (_local7 != null){
_local8 = Math.abs((_local7.x - _arg1));
_local9 = Math.abs((_local7.y - _arg2));
if ((((_local8 < _arg3)) && ((_local9 < _arg3)))){
if (((_local8 * _local8) + (_local9 * _local9)) < (_arg3 * _arg3)){
Remove(_local6);
};
};
};
_local6++;
};
}
function RemoveAllAtEffect():void{
var _local1:Array;
var _local2:uint;
var _local3:Object;
_local1 = ArrList;
_local2 = 0;
while (_local2 < _local1.length) {
_local3 = _local1[_local2];
if (_local3 != null){
_local3.Delete();
};
_local2++;
};
}
}
}//package
Section 7
//ArrayListItem (ArrayListItem)
package {
class ArrayListItem extends ArrayListBase {
protected var RangeX:Number;// = 5
protected var RangeY:Number;// = 5
protected var _StageData:StageData;
function ArrayListItem(){
RangeX = 5;
RangeY = 5;
super();
_StageData = MainValue._StageData.GetNew(10);
}
function MainScript(){
var _local1:Array;
var _local2:uint;
var _local3:uint;
var _local4:Object;
if (ArrList.length > 0){
_local1 = ArrList;
_local2 = MaxIndex;
_local3 = 0;
while (_local3 < _local2) {
_local4 = _local1[_local3];
if (_local4 != null){
_local4.CheckPlayerPoint();
_local4.Move();
if (_local4.HitCheck(MainValue.Player, ((_local4.width + MainValue.Player.width) / 2), ((_local4.height + MainValue.Player.height) / 2))){
Remove(_local3);
} else {
if (_local1[_local3].OutCheck(_StageData.Left, _StageData.Right, _StageData.Top, _StageData.Down)){
Remove(_local3);
};
};
};
_local3++;
};
};
}
}
}//package
Section 8
//ArrayListMagic (ArrayListMagic)
package {
class ArrayListMagic extends ArrayListBase {
private function Moving(){
var _local1:Array;
var _local2:uint;
var _local3:uint;
var _local4:Object;
_local1 = ArrList;
_local2 = MaxIndex;
_local3 = 0;
while (_local3 < _local2) {
_local4 = _local1[_local3];
if (_local4 != null){
if (_local4.Move()){
Remove(_local1[_local3]);
};
};
_local3++;
};
}
function Move(){
Moving();
}
function MainScript(){
Move();
}
}
}//package
Section 9
//ArrayListPlayerShot (ArrayListPlayerShot)
package {
class ArrayListPlayerShot extends ArrayListBase {
protected var _StageData:StageData;
function ArrayListPlayerShot(){
_StageData = MainValue._StageData.GetNew(10);
}
function MainScript(){
var _local1:Array;
var _local2:uint;
var _local3:uint;
if (ArrList.length == 0){
return;
};
_local1 = ArrList;
_local2 = MaxIndex;
_local3 = 0;
while (_local3 < _local2) {
if (_local1[_local3] != null){
_local1[_local3].Move();
if (_local1[_local3].HitCheck(null, 20, 20, MainValue.ArrEnemy.GetArray())){
Remove(_local3);
} else {
if (_local1[_local3].OutCheck(_StageData.Left, _StageData.Right, _StageData.Top, _StageData.Down)){
Remove(_local3);
};
};
};
_local3++;
};
}
function ResetHitCount(){
var _local1:Array;
var _local2:uint;
var _local3:uint;
_local1 = ArrList;
_local2 = MaxIndex;
_local3 = 0;
while (_local3 < _local2) {
if (_local1[_local3] != null){
_local1[_local3].ResetHitCount();
};
_local3++;
};
}
}
}//package
Section 10
//BattleControl (BattleControl)
package {
import flash.display.*;
class BattleControl extends BattleControlBase {
protected var SELECT_MODE:int;// = 0
protected var CMenu:MenuControl;
protected var SELECT_STOP:uint;// = 20
protected var SELECT_BATTLE:uint;// = 0
protected var CKey:KeyControl;
protected var SELECT_TALK:uint;// = 10
protected var ArrEnemyShot:ArrayListEnemyShot;
protected var TimeCount:int;
protected var ArrMagic:ArrayListMagic;
protected var PerFrame:uint;
protected var MainStage:MovieClip;
protected var MenuStage:Sprite;
function BattleControl(_arg1:MovieClip, _arg2:uint, _arg3:uint, _arg4:Boolean=false){
SELECT_MODE = 0;
SELECT_BATTLE = 0;
SELECT_TALK = 10;
SELECT_STOP = 20;
super(_arg2, _arg3, _arg4);
MainStage = _arg1;
CKey = MainValue.CKey;
SELECT_MODE = SELECT_BATTLE;
ArrEnemyShot = MainValue.ArrEnemyShot;
ArrMagic = MainValue.ArrMagic;
TimeCount = 0;
PerFrame = 1;
}
override function MainScript(){
var _local1:Boolean;
if (SELECT_MODE == SELECT_BATTLE){
if (CKey.IsKeyOnce(81)){
MenuInitialize();
return (FlgEnd);
};
if ((TimeCount % PerFrame) == 0){
super.MainScript();
};
} else {
if (SELECT_MODE == SELECT_STOP){
_local1 = CMenu.MainScript();
if (_local1){
MenuTermination();
if (MainValue._FlgReturnTitle){
FlgEnd = true;
} else {
SELECT_MODE = SELECT_BATTLE;
};
};
};
};
TimeCount++;
return (FlgEnd);
}
override function SpellEndDelete(){
ArrEnemyShot.RemoveAll();
ArrMagic.RemoveAll();
}
function MenuTermination(){
CMenu = null;
MainStage.removeChild(MenuStage);
MenuStage = null;
}
override function MainObjectScript(){
MainValue.Player.MainScript();
MainValue.ArrPlayerShot.MainScript();
MainValue.ArrEnemyShot.MainScript();
MainValue.ArrEnemy.MainScript();
MainValue.ArrMagic.MainScript();
MainValue.ArrItem.MainScript();
MainValue.ArrEffect.MainScript();
}
function MenuInitialize(){
SELECT_MODE = SELECT_STOP;
CMenu = new MenuControl();
MenuStage = new Sprite();
MainStage.addChild(MenuStage);
CMenu.SetStage(MenuStage);
CMenu.SetMainMenu(PauseMenu);
}
function SetPerFrame(_arg1:uint){
PerFrame = _arg1;
}
override function SpellEnd(){
if (MainValue.SELECT_MODE == MainValue.SELECT_SPELLPRACTICE){
FlgEnd = true;
} else {
super.SpellEnd();
};
}
}
}//package
Section 11
//BattleControlBase (BattleControlBase)
package {
class BattleControlBase {
protected var CSpell:SpellControl;
protected var FlgEnd:Boolean;
function BattleControlBase(_arg1:uint, _arg2:uint, _arg3:Boolean=false){
CSpell = new SpellControl(_arg1, _arg2, _arg3);
CSpell.SetSpellTimeText();
FlgEnd = false;
}
function SpellEnd(){
SpellEndDelete();
if (CSpell.CheckNextSpell()){
CSpell.SetNextSpell();
} else {
CSpell.SpellEnd();
FlgEnd = true;
};
}
function MainObjectScript(){
}
function MainScript(){
var _local1:Boolean;
if (FlgEnd){
return (FlgEnd);
};
MainObjectScript();
_local1 = CSpell.MainScript();
if (_local1){
SpellEnd();
};
return (FlgEnd);
}
function SetEndFlg(_arg1:Boolean){
FlgEnd = _arg1;
}
function PlayerDead(){
CSpell.PlayerDead();
}
function Damage(_arg1:Number){
CSpell.Damage(_arg1);
}
function SpellEndDelete(){
}
}
}//package
Section 12
//BgmControl (BgmControl)
package {
class BgmControl extends BgmControlBase {
}
}//package
Section 13
//BgmControlBase (BgmControlBase)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.media.*;
class BgmControlBase {
protected var FlgBgmOn:Boolean;
protected var BgmIndex:uint;
protected var FlgBgm:Boolean;
protected var _LoadSoundControl:LoadSoundControl;
protected var ArrLoad:Array;
protected var LoadStatus:Sprite;
protected var CurrentDirectoryPath:String;
protected var ArrBgm:Array;
protected var FlgEnterFrame:Boolean;
protected var FlgLoadStatusDisplay:Boolean;
protected var NowBgmChannel:SoundChannel;
protected var NowBgm:Sound;
protected var DisplayStage:Object;
function BgmControlBase(){
FlgBgm = true;
FlgBgmOn = false;
ArrBgm = new Array();
ArrLoad = new Array();
CurrentDirectoryPath = "";
_LoadSoundControl = new LoadSoundControl();
NowBgm = null;
FlgLoadStatusDisplay = false;
FlgEnterFrame = false;
}
function SetCurrentDirectory(_arg1){
CurrentDirectoryPath = _arg1;
}
function MainScript(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Boolean;
var _local6:uint;
var _local7:String;
var _local8:TextField;
if (LoadStatus != null){
DisplayStage.removeChild(LoadStatus);
};
LoadStatus = new Sprite();
_local1 = 20;
_local2 = 50;
_local3 = 200;
_local4 = 20;
_local5 = false;
_local6 = 0;
while (_local6 < ArrBgm.length) {
if ((((ArrLoad[_local6] == false)) && (!((ArrBgm[_local6] == null))))){
_local7 = (("BGM" + _local6) + ": Load : ");
_local7 = (_local7 + ((Math.floor(((ArrBgm[_local6].bytesLoaded / ArrBgm[_local6].bytesTotal) * 1000)) / 10) + "/100"));
_local8 = CMath.CreateTextField(_local1, _local2, _local3, _local4, 0xFF, _local7);
LoadStatus.addChild(_local8);
_local2 = (_local2 + _local4);
_local5 = true;
};
_local6++;
};
if (_local5 == false){
if (FlgEnterFrame){
FlgEnterFrame = false;
DisplayStage.removeEventListener(Event.ENTER_FRAME, DisplayScript);
};
LoadStatus = null;
return (true);
};
DisplayStage.addChild(LoadStatus);
return (false);
}
function DisplayLoadStatus(_arg1:Object, _arg2:Boolean=false){
FlgLoadStatusDisplay = true;
DisplayStage = _arg1;
if (_arg2){
FlgEnterFrame = _arg2;
DisplayStage.addEventListener(Event.ENTER_FRAME, DisplayScript);
};
}
function SetBgmOff(){
FlgBgm = false;
}
function DisplayScript(_arg1:Event){
MainScript();
}
function LoadBgm(_arg1:uint, _arg2:String){
var _local3:LoadSoundControl;
var _local4:Sound;
_arg2 = (CurrentDirectoryPath + _arg2);
ArrLoad[_arg1] = false;
_local3 = new LoadSoundControl();
_local4 = _local3.LoadSound(_arg2, this, _arg1);
ArrBgm[_arg1] = _local4;
}
function DisplayLoadStatusOff(){
if (FlgEnterFrame){
FlgEnterFrame = false;
DisplayStage.removeEventListener(Event.ENTER_FRAME, DisplayScript);
};
if (LoadStatus != null){
DisplayStage.removeChild(LoadStatus);
};
LoadStatus = null;
}
function BgmOn(_arg1:uint, _arg2:Number=1){
var _local3:SoundTransform;
if ((((((ArrBgm[_arg1] == null)) || ((FlgBgm == false)))) || ((ArrLoad[_arg1] == false)))){
return;
};
if (FlgBgmOn){
BgmOff();
};
NowBgmChannel = ArrBgm[_arg1].play();
_local3 = new SoundTransform();
_local3.volume = _arg2;
NowBgmChannel.soundTransform = _local3;
NowBgm = ArrBgm[_arg1];
BgmIndex = _arg1;
FlgBgmOn = true;
}
function LoadError(_arg1){
ArrBgm[_arg1] = null;
ArrLoad[_arg1] = null;
}
function BgmOff(){
if (FlgBgmOn){
if (NowBgm != null){
NowBgm = null;
};
NowBgmChannel.stop();
};
}
function SoundLoadComplete(_arg1:uint){
ArrLoad[_arg1] = true;
}
}
}//package
Section 14
//BossImgAlice (BossImgAlice)
package {
import flash.display.*;
public dynamic class BossImgAlice extends MovieClip {
}
}//package
Section 15
//BossImgChirno (BossImgChirno)
package {
import flash.display.*;
public dynamic class BossImgChirno extends MovieClip {
}
}//package
Section 16
//BossImgKoa (BossImgKoa)
package {
import flash.display.*;
public dynamic class BossImgKoa extends MovieClip {
}
}//package
Section 17
//BossImgLumia (BossImgLumia)
package {
import flash.display.*;
public dynamic class BossImgLumia extends MovieClip {
}
}//package
Section 18
//BossImgMisty (BossImgMisty)
package {
import flash.display.*;
public dynamic class BossImgMisty extends MovieClip {
}
}//package
Section 19
//BossImgReimu (BossImgReimu)
package {
import flash.display.*;
public dynamic class BossImgReimu extends MovieClip {
}
}//package
Section 20
//BossImgSakuya (BossImgSakuya)
package {
import flash.display.*;
public dynamic class BossImgSakuya extends MovieClip {
}
}//package
Section 21
//BossImgYomu (BossImgYomu)
package {
import flash.display.*;
public dynamic class BossImgYomu extends MovieClip {
}
}//package
Section 22
//BossImgYukari (BossImgYukari)
package {
import flash.display.*;
public dynamic class BossImgYukari extends MovieClip {
}
}//package
Section 23
//BossImgYuyuko (BossImgYuyuko)
package {
import flash.display.*;
public dynamic class BossImgYuyuko extends MovieClip {
}
}//package
Section 24
//BossScript (BossScript)
package {
class BossScript extends EnemyBase {
function BossScript(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
SetMove(MainValue._BossBaseX, MainValue._BossBaseY);
}
override function Dead(){
}
override function GetMoveX(){
return (0);
}
override function GetMoveY(){
return (0);
}
function SetMove(_arg1:Number, _arg2:Number){
var _local3:Object;
_local3 = Fmove.GetMoveNear(_arg1, _arg2, 8);
_local3.SetTarget(this);
ArrMove[iMoveCount] = _local3;
}
override function Hit(_arg1:Object){
MainValue.CBattle.Damage(_arg1.GetAttack());
MainValue.CIData.GetScore(10);
}
override function Damage(_arg1:int){
MainValue.CBattle.Damage(_arg1);
}
}
}//package
Section 25
//Charge (Charge)
package {
class Charge extends EffectBase {
function Charge(_arg1:Number, _arg2:Number, _arg3:uint){
super(_arg1, _arg2);
scaleX = 0.1;
scaleY = 0.1;
TimeCount = 0;
DeleteCount = _arg3;
}
override function Move(){
var _local1:Number;
var _local2:Number;
_local1 = Math2.GetRandom(150, (x - 75));
_local2 = Math2.GetRandom(150, (y - 75));
Ec.ChargeBallEffect(_local1, _local2, this);
TimeCount++;
return ((TimeCount < DeleteCount));
}
}
}//package
Section 26
//ChargeBall (ChargeBall)
package {
class ChargeBall extends EffectBase {
function ChargeBall(_arg1:Number, _arg2:Number, _arg3:Object){
var _local4:Object;
super(_arg1, _arg2);
addChild(GMath.DrawCircle(0, 0, 50, 0xFFFFFF, 1, true, 0xFFFFFF, 0.2));
_local4 = Fmove.GetMoveNear(_arg3.x, _arg3.y, 20);
AddMove(_local4);
TimeCount = 0;
DeleteCount = 30;
}
override function Move(){
super.Move();
scaleX = (scaleX - 0.03);
scaleY = (scaleY - 0.03);
alpha = (alpha - 0.01);
TimeCount++;
return ((TimeCount < DeleteCount));
}
}
}//package
Section 27
//CMath (CMath)
package {
import flash.text.*;
class CMath {
static function CreateTextField(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:uint=0, _arg6:String="", _arg7:Boolean=false):TextField{
var _local8:TextField;
_local8 = new TextField();
_local8.x = _arg1;
_local8.y = _arg2;
_local8.width = _arg3;
_local8.height = _arg4;
_local8.textColor = _arg5;
_local8.text = _arg6;
_local8.background = _arg7;
return (_local8);
}
}
}//package
Section 28
//Debug (Debug)
package {
import flash.events.*;
import flash.text.*;
class Debug {
private static var DrawCount:Number;
private static var _FrameRate:int;
private static var EnemyShotText:TextField;
private static var UpdateTime:Number;
private static var FpsText:TextField;
private static var _Stage:Object;
private static var NowTime:Number;
private static var Timer1:Date;
private static var Timer2:Date;
private static var Avg:Number = 0;
private static var OldTime:Number;
private static var AvgCount:uint = 0;
private static var AvgText:TextField;
static function FpsCheckOn(_arg1:Number, _arg2:int){
_FrameRate = _arg2;
EnemyShotText = CMath.CreateTextField(560, 390, 70, 18, 0, "", true);
_Stage.addChild(EnemyShotText);
FpsText = CMath.CreateTextField(560, 420, 70, 18, 0, "", true);
_Stage.addChild(FpsText);
AvgText = CMath.CreateTextField(560, 450, 70, 18, 0, "", true);
_Stage.addChild(AvgText);
DrawCount = 0;
UpdateTime = _arg1;
Timer1 = new Date();
OldTime = Timer1.getTime();
_Stage.addEventListener(Event.ENTER_FRAME, FpsCheck);
}
static function FpsCheck(_arg1:Event){
var _local2:*;
DrawCount = (DrawCount + 1);
Timer2 = new Date();
NowTime = Timer2.getTime();
if ((NowTime - OldTime) >= UpdateTime){
_local2 = ((DrawCount * 1000) / (NowTime - OldTime));
_local2 = (Math.floor((_local2 * 10)) / 10);
FpsText.text = ((_local2 + " / ") + _FrameRate);
AvgCount++;
Avg = (((Avg * (AvgCount - 1)) + _local2) / AvgCount);
Avg = (Math.floor((Avg * 10)) / 10);
AvgText.text = ("平均値: " + Avg);
OldTime = NowTime;
DrawCount = 0;
};
EnemyShotText.text = ("Count:" + MainValue.ArrEnemyShot.GetDataCount());
}
static function FpsCheckOff(){
_Stage.removeEventListener(Event.ENTER_FRAME, FpsCheck);
}
static function DebugOn(_arg1){
_Stage = _arg1;
}
static function DebugOff(){
}
}
}//package
Section 29
//DifficultMenu (DifficultMenu)
package {
import flash.display.*;
public class DifficultMenu extends MenuBase {
public var Item2:MovieClip;
public var Item1:MovieClip;
public var Item4:MovieClip;
public var Item3:MovieClip;
public function DifficultMenu(){
AddItemMc(this.Item1);
AddItemMc(this.Item2);
AddItemMc(this.Item3);
AddItemMc(this.Item4);
AddNextMenu(ShotMenu);
AddNextMenu(ShotMenu);
AddNextMenu(ShotMenu);
AddNextMenu(ShotMenu);
_PrevMenu = MainMenu;
SetItem();
}
override function SelectEvent(_arg1:int){
MainValue.Difficult = _arg1;
}
}
}//package
Section 30
//Ec (Ec)
package {
public class Ec {
protected static var ArrEffect:Object;
protected static var FlgEnterFrame:Boolean = false;
protected static var FlgRegist:Boolean = true;
static function Shadow(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Boolean=false){
var _local8:EffectShadow;
_local8 = new EffectShadow(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7);
MainValue.ArrEffect.Add(_local8);
}
static function Graze(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number){
var _local7:EffectGraze;
_local7 = new EffectGraze();
_local7.SetMove(_arg3, _arg4, _arg5, _arg6);
_local7.SetImage(McGraze);
MainValue.ArrEffect.Add(_local7);
}
static function Bomb(_arg1:Number, _arg2:Number){
var _local3:EffectBomb;
_local3 = new EffectBomb(_arg1, _arg2);
RegistItem(_local3);
}
static function DisplaySpellCard(_arg1:Number, _arg2:Number, _arg3:uint){
var _local4:EffectSpellCard;
_local4 = new EffectSpellCard(_arg1, _arg2, MainValue.CSCImage.GetImage(0), _arg3);
RegistItem(_local4);
return (_local4);
}
static function ChargeEffect(_arg1:Number, _arg2:Number, _arg3:uint){
var _local4:Charge;
_local4 = new Charge(_arg1, _arg2, _arg3);
RegistItem(_local4);
}
static function SpellBreakEffect(_arg1:Number, _arg2:Number){
var _local3:SpellBreak;
_local3 = new SpellBreak(_arg1, _arg2);
RegistItem(_local3);
}
static function RegistItem(_arg1:Object){
if (FlgRegist){
ArrEffect.Add(_arg1);
};
}
static function ShotEffect(_arg1:Number, _arg2:Number, _arg3:uint){
var _local4:EffectShot;
_local4 = new EffectShot(_arg1, _arg2, 15);
_local4.SetImage(MainValue.ArrEnemyShotEffect[_arg3]);
RegistItem(_local4);
return (_local4);
}
static function ChargeBallEffect(_arg1:Number, _arg2:Number, _arg3:Object){
var _local4:ChargeBall;
_local4 = new ChargeBall(_arg1, _arg2, _arg3);
RegistItem(_local4);
}
static function PlayerDead(_arg1:Number, _arg2:Number){
var _local3:SpellBreak;
_local3 = new SpellBreak(_arg1, _arg2);
RegistItem(_local3);
}
static function SetArrayList(_arg1:Object){
ArrEffect = _arg1;
}
static function SetRegist(_arg1:Boolean){
FlgRegist = _arg1;
}
static function ELine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:uint, _arg6:Number, _arg7:Number){
var _local8:EffectLine;
_local8 = new EffectLine();
_local8.SetLine(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7);
MainValue.ArrEffect.Add(_local8);
}
static function GetRegistFlg(){
return (FlgRegist);
}
static function ShotEffectDelete(_arg1:Number, _arg2:Number, _arg3:uint, _arg4:uint){
var _local5:EffectShotDelete;
_local5 = new EffectShotDelete(_arg1, _arg2, 15);
RegistItem(_local5);
return (_local5);
}
static function EnemyBreak(_arg1:Number, _arg2:Number){
var _local3:EffectEnemyBreak;
_local3 = new EffectEnemyBreak(_arg1, _arg2);
RegistItem(_local3);
}
}
}//package
Section 31
//EffectBase (EffectBase)
package {
class EffectBase extends StageObject {
protected var TimeCount;
function EffectBase(_arg1:Number, _arg2:Number, _arg3:Boolean=false){
SetPosition(_arg1, _arg2);
if (_arg3){
SetEnterFrame();
};
}
}
}//package
Section 32
//EffectBomb (EffectBomb)
package {
import flash.display.*;
import flash.filters.*;
class EffectBomb extends EffectBase {
protected var _EffectCount:int;
protected var _EffectRange:Number;
protected var _Thunder:Sprite;
function EffectBomb(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
_EffectRange = 0;
_EffectCount = 100;
DeleteCount = 100;
TimeCount = 0;
AddMove(Fmove.GetMoveStraight(270, 1, 0, 0));
}
override function Move(){
var _local1:Number;
var _local2:Sprite;
var _local3:Sprite;
var _local4:Sprite;
var _local5:Sprite;
var _local6:Sprite;
var _local7:BlurFilter;
var _local8:DropShadowFilter;
super.Move();
if ((_EffectCount % 10) == 0){
MainValue.ArrEnemyShot.RemoveCircle(x, y, _EffectRange);
};
_Thunder = new Sprite();
_local1 = 6;
_local2 = GMath.DrawCircleThunder(0, 0, 0, _EffectRange, 90, _local1, _local1, 0xFF00FF);
_local3 = GMath.DrawCircleThunder(0, 0, 0, _EffectRange, 90, _local1, _local1, 0xFF00FF);
_local4 = GMath.DrawCircleThunder(0, 0, 0, (_EffectRange / 2), 45, _local1, _local1, 0xFF00FF);
_local5 = GMath.DrawCircleThunder(0, 0, 0, (_EffectRange / 2), 45, _local1, _local1, 0xFF00FF);
_local6 = GMath.DrawCircleThunder(0, 0, 0, (_EffectRange / 0.9), 90, _local1, _local1, 0xFFFFFF);
_EffectRange = (_EffectRange + 5);
if (_EffectRange > 100){
_EffectRange = 100;
};
_Thunder.addChild(_local2);
_Thunder.addChild(_local3);
_Thunder.addChild(_local4);
_Thunder.addChild(_local5);
_Thunder.addChild(_local6);
_local7 = new BlurFilter();
_local8 = new DropShadowFilter();
_Thunder.filters = [_local7, _local8];
SetImageObj(_Thunder);
TimeCount++;
return ((TimeCount < DeleteCount));
}
}
}//package
Section 33
//EffectEnemyBreak (EffectEnemyBreak)
package {
class EffectEnemyBreak extends EffectBase {
function EffectEnemyBreak(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
addChild(GMath.DrawCircle(0, 0, 100, 0xFFFFFF));
scaleX = 0.1;
scaleY = 0.1;
TimeCount = 0;
DeleteCount = 15;
}
override function Move(){
super.Move();
scaleX = (scaleX + 0.03);
scaleY = (scaleY + 0.03);
TimeCount++;
return ((TimeCount < DeleteCount));
}
}
}//package
Section 34
//EffectGraze (EffectGraze)
package {
public class EffectGraze extends McBase {
private var Spd:Number;
private var TargetX:Number;
private var TargetY:Number;
private var Count:Number;
function Moving(){
x = (x + ((TargetX - x) / Spd));
y = (y + ((TargetY - y) / Spd));
}
function SetMove(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
var _local5:Number;
var _local6:Number;
_local5 = Math2.GetRandom(360, 0);
rotation = _local5;
_local6 = Math2.GetRandom(_arg1, _arg2);
TargetX = (x + (Math2.GetCosB(_local5) * _local6));
TargetY = (y + (Math2.GetSinB(_local5) * _local6));
Spd = _arg3;
Count = _arg4;
}
function Move():Boolean{
Moving();
if (Count-- == 0){
return (false);
};
return (true);
}
}
}//package
Section 35
//EffectLine (EffectLine)
package {
import flash.display.*;
class EffectLine extends Sprite {
private var Sita:Number;
private var Range2:Number;
private var Range1:Number;
private var LinePoint1:PointList;
private var LinePoint2:PointList;
private var ArrLine:Array;
function EffectLine(){
LinePoint1 = new PointList();
LinePoint2 = new PointList();
ArrLine = new Array();
}
function SetLine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5, _arg6:Number, _arg7:Number){
var _local8:uint;
var _local9:Number;
var _local10:uint;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Sprite;
LinePoint1.SetLine(_arg1, _arg2, _arg3, _arg4, _arg5);
LinePoint1.Add(_arg3, _arg4);
_local8 = LinePoint1.GetLength();
_local9 = Math2.GetTargetSitaXYB(_arg1, _arg2, _arg3, _arg4);
Sita = _local9;
Range1 = _arg6;
Range2 = _arg7;
_local10 = 0;
while (_local10 < _local8) {
_local11 = Math2.GetRandom(_arg6, _arg7);
_local12 = LinePoint1.X(_local10);
_local13 = LinePoint1.Y(_local10);
_local12 = (_local12 + (Math2.GetCosB((_local9 + 270)) * _local11));
_local13 = (_local13 + (Math2.GetSinB((_local9 + 270)) * _local11));
LinePoint2.Add(_local12, _local13);
_local10++;
};
_local10 = 0;
while (_local10 < (_local8 - 1)) {
_local14 = new Sprite();
_local14.graphics.lineStyle(1, 0xFFFF00);
_local14.graphics.moveTo(LinePoint2.X(_local10), LinePoint2.Y(_local10));
_local14.graphics.lineTo(LinePoint2.X((_local10 + 1)), LinePoint2.Y((_local10 + 1)));
ArrLine.push(_local14);
_local10++;
};
_local10 = 0;
while (_local10 < ArrLine.length) {
addChild(ArrLine[_local10]);
_local10++;
};
}
function SetMove(_arg1, _arg2){
x = _arg1;
y = _arg2;
}
function Move(){
var _local1:uint;
var _local2:Number;
var _local3:uint;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local1 = LinePoint1.GetLength();
_local2 = Sita;
LinePoint2.Init();
_local3 = 0;
while (_local3 < _local1) {
_local4 = Math2.GetRandom(Range1, Range2);
_local5 = LinePoint1.X(_local3);
_local6 = LinePoint1.Y(_local3);
_local5 = (_local5 + (Math2.GetCosB((_local2 + 270)) * _local4));
_local6 = (_local6 + (Math2.GetSinB((_local2 + 270)) * _local4));
LinePoint2.Add(_local5, _local6);
_local3++;
};
_local3 = 0;
while (_local3 < (_local1 - 1)) {
ArrLine[_local3].graphics.clear();
ArrLine[_local3].graphics.lineStyle(1, 0xFFFF00);
ArrLine[_local3].graphics.moveTo(LinePoint2.X(_local3), LinePoint2.Y(_local3));
ArrLine[_local3].graphics.lineTo(LinePoint2.X((_local3 + 1)), LinePoint2.Y((_local3 + 1)));
_local3++;
};
}
}
}//package
Section 36
//EffectShadow (EffectShadow)
package {
public class EffectShadow extends EffectBase {
private var Img:Object;
private var BaseAlpha:Number;
private var MinusAlpha:Number;
public function EffectShadow(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Number, _arg6:uint, _arg7:Boolean=false){
super(_arg1, _arg2, _arg7);
Img = _arg3;
BaseAlpha = _arg4;
MinusAlpha = MinusAlpha;
DeleteCount = _arg6;
SetImage(Img);
alpha = BaseAlpha;
}
override function MainScript(){
alpha = (alpha - MinusAlpha);
TimeCount++;
return ((TimeCount > DeleteCount));
}
}
}//package
Section 37
//EffectShot (EffectShot)
package {
class EffectShot extends EffectBase {
function EffectShot(_arg1:Number, _arg2:Number, _arg3:uint, _arg4:Boolean=false){
super(_arg1, _arg2, _arg4);
scaleX = 0;
scaleY = 0;
TimeCount = 0;
DeleteCount = _arg3;
}
override function Move(){
super.Move();
if (TimeCount < 5){
scaleX = (scaleX + 0.25);
scaleY = (scaleY + 0.25);
};
TimeCount++;
return ((TimeCount < DeleteCount));
}
}
}//package
Section 38
//EffectShot_BLACK (EffectShot_BLACK)
package {
import flash.display.*;
public dynamic class EffectShot_BLACK extends MovieClip {
}
}//package
Section 39
//EffectShot_BLUE (EffectShot_BLUE)
package {
import flash.display.*;
public dynamic class EffectShot_BLUE extends MovieClip {
}
}//package
Section 40
//EffectShot_GREEN (EffectShot_GREEN)
package {
import flash.display.*;
public dynamic class EffectShot_GREEN extends MovieClip {
}
}//package
Section 41
//EffectShot_PURPLE (EffectShot_PURPLE)
package {
import flash.display.*;
public dynamic class EffectShot_PURPLE extends MovieClip {
}
}//package
Section 42
//EffectShot_RED (EffectShot_RED)
package {
import flash.display.*;
public dynamic class EffectShot_RED extends MovieClip {
}
}//package
Section 43
//EffectShot_WHITE (EffectShot_WHITE)
package {
import flash.display.*;
public dynamic class EffectShot_WHITE extends MovieClip {
}
}//package
Section 44
//EffectShot_YELLOW (EffectShot_YELLOW)
package {
import flash.display.*;
public dynamic class EffectShot_YELLOW extends MovieClip {
}
}//package
Section 45
//EffectShotDelete (EffectShotDelete)
package {
import flash.display.*;
class EffectShotDelete extends EffectBase {
private var CircleColor:Sprite;
private var CircleBlack:Sprite;
function EffectShotDelete(_arg1:Number, _arg2:Number, _arg3:uint, _arg4:Boolean=false){
super(_arg1, _arg2, _arg4);
CircleColor = GMath.DrawCircle(0, 0, 8, 0xFFFFFF, 1, true, 0xFFFFFF);
CircleBlack = GMath.DrawCircle(0, 0, 8, 0, 1, true, 0);
CircleColor.scaleX = 0;
CircleColor.scaleY = 0;
CircleBlack.scaleX = 0;
CircleBlack.scaleY = 0;
CircleBlack.alpha = 0.5;
addChild(CircleColor);
TimeCount = 0;
DeleteCount = _arg3;
}
override function Move(){
var _local1:uint;
super.Move();
_local1 = Math.floor((DeleteCount / 2));
if (TimeCount < _local1){
CircleColor.scaleX = (CircleColor.scaleX + (1 / _local1));
CircleColor.scaleY = (CircleColor.scaleY + (1 / _local1));
} else {
CircleBlack.scaleX = (CircleBlack.scaleX + (1 / _local1));
CircleBlack.scaleY = (CircleBlack.scaleY + (1 / _local1));
CircleBlack.alpha = (CircleBlack.alpha + (0.5 / _local1));
};
CircleColor.alpha = (CircleColor.alpha - (0.5 / _local1));
TimeCount++;
return ((TimeCount < DeleteCount));
}
}
}//package
Section 46
//EffectSpellCard (EffectSpellCard)
package {
import flash.display.*;
class EffectSpellCard extends EffectBase {
function EffectSpellCard(_arg1:Number, _arg2:Number, _arg3:DisplayObjectContainer, _arg4:uint, _arg5:Boolean=false){
var _local6:Object;
super(_arg1, _arg2, _arg5);
_local6 = Fmove.GetMoveStraight(270, 0.1, 0, 0);
AddMove(_local6);
addChild(_arg3);
TimeCount = 0;
DeleteCount = _arg4;
}
override function Move(){
super.Move();
TimeCount++;
return ((TimeCount < DeleteCount));
}
}
}//package
Section 47
//EnemyBase (EnemyBase)
package {
class EnemyBase extends StageObject {
protected var HitRangeX:Number;
protected var HitRangeY:Number;
protected var TimeCount:uint;
protected var _StageData:StageData;
protected var ShotMiniBall:uint;// = 5
protected var NowHP:int;
protected var FlgDead:Boolean;
protected var ColorBlue:uint;// = 2
protected var ShotNormalBall:uint;// = 6
protected var ColorRed:uint;// = 0
protected var Difficult:int;
protected var ShotStar:uint;// = 3
protected var ShotCircle:uint;// = 1
protected var ShotNormal:uint;// = 0
protected var ShotBigBall:uint;// = 7
protected var ColorWhite:uint;// = 5
public var Index:uint;// = 0
protected var ColorPurple:uint;// = 4
protected var Player:PlayerScript;
protected var ItemType:uint;
protected var ShotRice:uint;// = 2
protected var ShotReihu:uint;// = 8
protected var MaxHP:int;
protected var FlgDelete:Boolean;
protected var ColorPink:uint;// = 6
protected var ColorGreen:uint;// = 1
protected var FlgHit:Boolean;
protected var ColorYellow:uint;// = 3
protected var ColorDammy:uint;// = 6
protected var ShotKnife:uint;// = 4
protected var CSe:SeControl;
function EnemyBase(_arg1:Number, _arg2:Number){
Index = 0;
ShotNormal = 0;
ShotCircle = 1;
ShotRice = 2;
ShotStar = 3;
ShotKnife = 4;
ShotMiniBall = 5;
ShotNormalBall = 6;
ShotBigBall = 7;
ShotReihu = 8;
ColorRed = 0;
ColorGreen = 1;
ColorBlue = 2;
ColorYellow = 3;
ColorPurple = 4;
ColorWhite = 5;
ColorDammy = 6;
ColorPink = 6;
super();
SetPosition(_arg1, _arg2);
TimeCount = 0;
FlgDead = false;
FlgDelete = false;
FlgHit = true;
_StageData = MainValue._StageData.GetNew();
_StageData.ChangeSize(25);
HitRangeX = 8;
HitRangeY = 8;
Difficult = MainValue.Difficult;
Player = MainValue.Player;
CSe = MainValue.CSe;
}
function TargetShot(_arg1:Number, _arg2:uint, _arg3:uint, _arg4:Number=0){
var _local5:Number;
_local5 = GetRockSita(Player);
StraightShot(_local5, _arg1, _arg2, _arg3, _arg4);
}
function Action(){
}
function Dead(){
FlgDead = true;
MainValue.ArrEnemy.Remove(Index);
}
function ItemDrop(){
if (ItemType > 0){
Fis.CreateItem(x, y, ItemType);
};
}
function SetHP(_arg1:uint){
MaxHP = _arg1;
NowHP = _arg1;
}
function StraightShot(_arg1:Number, _arg2:Number, _arg3:uint, _arg4:uint, _arg5:Number=0){
FesUtil.SetImage(_arg3, _arg3);
FesUtil.SetBasePosition(x, y, 0, 0);
FesUtil.SetMoveBase(_arg1, _arg2, _arg5, 0);
FesUtil.SetMoveStraight();
Fes.SingleShot(0, 0);
}
function GetIndex(){
return (Index);
}
function SetItemType(_arg1:uint){
ItemType = _arg1;
}
override function Hit(_arg1:Object){
var _local2:Number;
_local2 = _arg1.GetAttack();
Damage(_local2);
MainValue.CIData.GetScore(10);
}
function Damage(_arg1:int){
NowHP = (NowHP - _arg1);
if (NowHP <= 0){
Ec.EnemyBreak(x, y);
CSe.SePlay(5, 0.1);
Destroy();
Dead();
};
}
function GetRockSita(_arg1:Object){
return (Math2.GetTargetSitaB(_arg1, this));
}
function SetIndex(_arg1:int){
Index = _arg1;
}
function GetRock(){
return (Math2.GetTargetSitaB(Player, this));
}
function Destroy(){
ItemDrop();
}
function ShotAction(){
}
override function Move(){
super.Move();
Action();
ShotAction();
TimeCount++;
}
}
}//package
Section 48
//EnemyControl (EnemyControl)
package {
class EnemyControl extends EnemyControlBase {
function EnemyControl(_arg1:uint){
super(_arg1);
}
}
}//package
Section 49
//EnemyControlBase (EnemyControlBase)
package {
class EnemyControlBase {
protected var StageTimeCount:uint;
protected var _BossType:int;
protected var _StageNumber:int;
protected var FlgBoss:Boolean;
protected var FlgSubBoss:Boolean;
protected var StageEnemyData:Object;
protected var ArrStageEnemyData:Array;
protected var _NextAppearTime:int;
protected var AppearIndex:uint;
function EnemyControlBase(_arg1:uint){
_StageNumber = _arg1;
AppearIndex = 0;
_NextAppearTime = 0;
FlgBoss = false;
SetStageData();
_BossType = 0;
StageTimeCount = 0;
StageTimeCount = MainValue.StageTimeCount;
}
function MainScript(){
while (true) {
if (AppearIndex < ArrStageEnemyData.length){
if (StageTimeCount == _NextAppearTime){
AddEnemy(ArrStageEnemyData[AppearIndex]);
if (AppearIndex < ArrStageEnemyData.length){
_NextAppearTime = ArrStageEnemyData[AppearIndex].AppearTime;
};
} else {
if (StageTimeCount > _NextAppearTime){
AppearIndex++;
_NextAppearTime = ArrStageEnemyData[AppearIndex].AppearTime;
} else {
break;
};
};
} else {
break;
};
};
StageTimeCount++;
return (FlgBoss);
}
function AddEnemy(_arg1:Object){
var _local2:Object;
var _local3:Number;
var _local4:Number;
var _local5:int;
var _local6:int;
var _local7:Object;
var _local8:BossScript;
_local2 = _arg1.EnemyImage;
_local3 = _arg1.BaseX;
_local4 = _arg1.BaseY;
_local5 = _arg1.ItemType;
_local6 = _arg1.FlgBoss;
_local7 = new _arg1.Enemy(_local3, _local4);
_local7.SetImage(_local2);
_local7.SetItemType(_local5);
MainValue.ArrEnemy.Add(_local7);
AppearIndex++;
if (_local6 > 0){
_BossType = _local6;
FlgBoss = true;
MainValue.ArrEnemy.RemoveAll();
_local8 = new BossScript(_local3, _local4);
_local8.SetImage(_local2);
MainValue.Boss = _local8;
MainValue.ArrEnemy.Add(_local8);
};
MainValue.ArrPlayerShot.ResetHitCount();
}
function GetBossType(){
return (_BossType);
}
function SetStageData(){
StageEnemyData = new (MainValue.ArrStageEnemyData[(_StageNumber - 1)]);
ArrStageEnemyData = StageEnemyData.GetArray();
_NextAppearTime = ArrStageEnemyData[AppearIndex].AppearTime;
}
function Restart(){
FlgBoss = false;
}
}
}//package
Section 50
//EnemyImg01 (EnemyImg01)
package {
import flash.display.*;
public dynamic class EnemyImg01 extends MovieClip {
}
}//package
Section 51
//EnemyShot (EnemyShot)
package {
public class EnemyShot extends ShotBase {
protected var FlgGraze:Boolean;
protected var _Effect:Object;
protected var GrazeCount:Number;
protected var FlgEffect:Boolean;
function EnemyShotBase(){
FlgGraze = MainValue.FlgGraze;
CountReset();
_Effect = null;
FlgEffect = false;
}
function SetEffect(_arg1:Object){
FlgEffect = true;
_Effect = _arg1;
}
function GrazeCheck(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Array=null){
if (FlgGraze){
if (GrazeCount <= 0){
GrazeCount = ArrMove[iMoveCount].HitCheck(_arg1, _arg2, _arg3);
if (GrazeCount < 0){
FlgGraze = false;
};
};
GrazeCount--;
};
return (false);
}
override public function CountReset(){
HitCount = 0;
OutCount = 0;
GrazeCount = 0;
}
override function Delete(){
Ec.ShotEffectDelete(x, y, 20, 0xFF0000);
super.Delete();
}
override function Move(){
if (FlgEffect){
if (visible){
_Effect.SetPosition(x, y);
Ec.RegistItem(_Effect);
FlgEffect = false;
};
};
super.Move();
}
}
}//package
Section 52
//Fes (Fes)
package {
public class Fes extends FesUtil {
static function LineShotEx(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0){
var _local5:Number;
var _local6:Number;
SaveArrMove();
_local5 = 0;
while (_local5 < _arg1) {
if (_FlgOptionEx){
SetOptionEx(_local5);
};
_local6 = (_arg3 + (_arg4 * _local5));
SetArrMove(_arg2, _local6);
SingleShot(_arg2, _local6);
ResetOptionEx();
_local5++;
};
}
public static function SingleShot(_arg1:Number=0, _arg2:Number=0){
var _local3:EnemyShot;
var _local4:uint;
_local3 = new EnemyShot();
_local4 = 0;
while (_local4 < ArrMove.length) {
_local3.AddMove(ArrMove[_local4]);
_local4++;
};
FesUtil.SetInit();
_local3.x = (BaseX + (Math2.GetCosB((Sita + _arg1)) * Dis));
_local3.y = (BaseY + (Math2.GetSinB((Sita + _arg1)) * Dis));
_local3.First();
_local3.SetImageMove();
if (FlgOption){
if (FlgEffect){
if (Ec.GetRegistFlg()){
Ec.SetRegist(false);
_local3.SetEffect(Ec.ShotEffect(0, 0, EffectColor));
Ec.SetRegist(true);
} else {
_local3.SetEffect(Ec.ShotEffect(0, 0, EffectColor));
};
};
if (FlgHitDammy){
_local3.SetHitDammy();
};
if (FlgOutDammy){
_local3.SetOutDammy();
};
if (FlgDelete){
_local3.SetDelete(DeleteCount);
};
if (FlgWait){
_local3.SetWait(WaitCount);
};
if (FlgInvisible){
_local3.SetInvisible(InvisibleCount);
};
};
ArrEnemyShot.Add(_local3);
return (_local3);
}
static function PointShotEx(_arg1:Array, _arg2:Array, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0){
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
SaveArrMove();
_local7 = _arg1.length;
_local8 = 0;
while (_local8 < _local7) {
if (_FlgOptionEx){
SetOptionEx(_local8);
};
_local9 = _arg1[_local8];
_local10 = _arg2[_local8];
_local11 = (_arg3 + (_arg5 * _local8));
_local12 = (_arg4 + (_arg6 * _local8));
SetBasePosition(_arg1[_local8], _arg2[_local8], 0, 0);
SetArrMove(_local11, _local12);
SingleShot(_local11, _local12);
ResetOptionEx();
_local8++;
};
}
static function PointShot(_arg1:Array, _arg2:Array, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:Number=0){
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
SaveArrMove();
_local7 = _arg1.length;
_local8 = 0;
while (_local8 < _local7) {
_local9 = _arg1[_local8];
_local10 = _arg2[_local8];
_local11 = (_arg3 + (_arg5 * _local8));
_local12 = (_arg4 + (_arg6 * _local8));
SetBasePosition(_arg1[_local8], _arg2[_local8], 0, 0);
SetArrMove(_local11, _local12);
SingleShot(0, 0);
_local8++;
};
}
static function CircleShotEx(_arg1:uint, _arg2:Number, _arg3:Number, _arg4:Boolean=false){
var _local5:Number;
var _local6:Number;
var _local7:Number;
SaveArrMove();
_local5 = (360 / _arg1);
if (_arg4){
_local5 = (360 - _local5);
};
_local6 = 0;
while (_local6 < _arg1) {
_local7 = ((_arg2 + (_local5 * _local6)) % 360);
SetArrMove(_local7, _arg3);
if (_FlgOptionEx){
SetOptionEx(_local6);
};
SetArrMove(_local7, _arg3);
SingleShot(_local7, _arg3);
ResetOptionEx();
_local6++;
};
}
static function LineShot(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
var _local5:Array;
var _local6:Number;
var _local7:Number;
var _local8:Object;
_local5 = new Array();
SaveArrMove();
_local6 = 0;
while (_local6 < _arg1) {
_local7 = (_arg3 + (_arg4 * _local6));
SetArrMove(_arg2, _local7);
_local8 = SingleShot(_arg2, _local7);
_local5.push(_local8);
_local6++;
};
return (_local5);
}
private static function SetArrMove(_arg1:Number, _arg2:Number){
var _local3:uint;
_local3 = 0;
while (_local3 < ArrMoveSave.length) {
ArrMove.push(ArrMoveSave[_local3].GetNew(_arg1, _arg2, 0, 0));
_local3++;
};
}
private static function SetOptionEx(_arg1:Number){
if (_FlgWaitEx){
SetWait(true, (_WaitCountBaseEx + Math.floor((_WaitCountPerEx * _arg1))));
};
if (_FlgInvisibleEx){
SetInvisible(true, (_InvisibleCountBaseEx + Math.floor((_InvisibleCountPerEx * _arg1))));
};
}
static function NwayShotEx(_arg1:uint, _arg2:Number, _arg3:Number, _arg4:Number){
var _local5:Array;
var _local6:Number;
var _local7:Number;
var _local8:Object;
_local5 = new Array();
SaveArrMove();
_arg2 = (_arg2 - ((_arg3 * (_arg1 - 1)) / 2));
_local6 = 0;
while (_local6 < _arg1) {
_local7 = (_arg2 + (_arg3 * _local6));
if (_FlgOptionEx){
SetOptionEx(_local6);
};
SetArrMove(_local7, _arg4);
_local8 = SingleShot(_local7, _arg4);
_local5.push(_local8);
ResetOptionEx();
_local6++;
};
return (_local5);
}
private static function ResetOptionEx(){
SetWait(false, 0);
SetInvisible(false, 0);
}
static function CircleShot(_arg1:uint, _arg2:Number, _arg3:Number){
var _local4:Number;
var _local5:Number;
var _local6:Number;
SaveArrMove();
_local4 = (360 / _arg1);
_local5 = 0;
while (_local5 < _arg1) {
_local6 = ((_arg2 + (_local4 * _local5)) % 360);
SetArrMove(_local6, _arg3);
SingleShot(_local6, _arg3);
_local5++;
};
}
static function NwayShot(_arg1:uint, _arg2:Number, _arg3:Number, _arg4:Number){
var _local5:Array;
var _local6:Number;
var _local7:Number;
var _local8:Object;
_local5 = new Array();
SaveArrMove();
_arg2 = (_arg2 - ((_arg3 * (_arg1 - 1)) / 2));
_local6 = 0;
while (_local6 < _arg1) {
_local7 = (_arg2 + (_arg3 * _local6));
SetArrMove(_local7, _arg4);
_local8 = SingleShot(_local7, _arg4);
_local5.push(_local8);
_local6++;
};
return (_local5);
}
private static function SaveArrMove(){
var _local1:uint;
ArrMoveSave = new Array();
if (ArrMove.length > 0){
_local1 = 0;
while (_local1 < ArrMove.length) {
ArrMoveSave.push(ArrMove[_local1]);
_local1++;
};
ArrMove = new Array();
};
}
static function RandomShot(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
var _local5:Number;
var _local6:Number;
SaveArrMove();
_local5 = 0;
while (_local5 < _arg1) {
_local6 = Math2.GetRandom(_arg2, _arg3);
SetArrMove(_local6, _arg4);
SingleShot(_local6, _arg4);
_local5++;
};
}
}
}//package
Section 53
//FesUtil (FesUtil)
package {
public class FesUtil extends FesValue {
static function SetMoveBoundRockMove(_arg1:Number, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Array=null){
var _local10:Object;
_local10 = Fmove.GetMoveBoundRockMove(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _BaseSita, _Spd, _Rot, _TimeCount, _arg9);
SetMoveStatus(_local10);
}
static function SetDeleteCount(_arg1:Boolean, _arg2:Number){
FlgOption = _arg1;
FlgDelete = _arg1;
DeleteCount = _arg2;
}
static function SetMoveChange(_arg1:Number, _arg2:Number){
var _local3:Object;
_local3 = Fmove.GetMoveChange(_arg1, _arg2, _BaseSita, _Spd, _Rot, _TimeCount);
SetMoveStatus(_local3);
}
private static function SetMoveStatus(_arg1:Object){
_arg1.SetImage(GetImage(_ImgType, _ImgColor));
_arg1.SetReTarget(_FlgReTarget, _ReTarget);
_arg1.SetMoveCheck(_FlgMoveHitCheck, _FlgMoveOutCheck);
ArrMove.push(_arg1);
}
static function SetReTarget(_arg1:Boolean, _arg2:Object){
_FlgReTarget = _arg1;
_ReTarget = _arg2;
}
static function SetInvisible(_arg1:Boolean, _arg2:Number=0){
FlgOption = _arg1;
FlgInvisible = _arg1;
InvisibleCount = _arg2;
}
private static function GetImage(_arg1:int, _arg2:int){
return (MainValue.ArrEnemyShotImg[_arg1][_arg2]);
}
static function SetMoveStraight(){
var _local1:Object;
_local1 = Fmove.GetMoveStraight(_BaseSita, _Spd, _Rot, _TimeCount);
SetMoveStatus(_local1);
}
static function SetMoveBoundRock(_arg1:Number, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Object, _arg7:Array=null){
var _local8:Object;
_local8 = Fmove.GetMoveBoundRock(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _BaseSita, _Spd, _Rot, _TimeCount, _arg7);
SetMoveStatus(_local8);
}
static function SetHitDammy(_arg1:Boolean){
FlgOption = _arg1;
FlgHitDammy = _arg1;
}
static function SetMoveCurve(_arg1:Number, _arg2:int){
var _local3:Object;
_local3 = Fmove.GetMoveCurve(_arg1, _arg2, _BaseSita, _Spd, _Rot, _TimeCount);
SetMoveStatus(_local3);
}
static function SetMoveCheck(_arg1:Boolean, _arg2:Boolean){
_FlgMoveHitCheck = _arg1;
_FlgMoveOutCheck = _arg2;
}
public static function SetWait(_arg1:Boolean, _arg2:Number=0){
FlgOption = _arg1;
FlgWait = _arg1;
WaitCount = _arg2;
}
static function SetMoveBound(_arg1:Number, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Array=null){
var _local7:Object;
_local7 = Fmove.GetMoveBound(_arg1, _arg2, _arg3, _arg4, _arg5, _BaseSita, _Spd, _Rot, _TimeCount, _arg6);
SetMoveStatus(_local7);
if (FlgNextStageData){
_local7.SetNextStageData(ArrNextStageData);
};
}
static function SetMoveBoundNext(_arg1:Number, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Array=null){
var _local7:Object;
_local7 = Fmove.GetMoveBoundNext(_arg1, _arg2, _arg3, _arg4, _arg5, _BaseSita, _Spd, _Rot, _TimeCount, _arg6);
SetMoveStatus(_local7);
}
static function SetMoveScroll(_arg1:Number, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Array=null){
var _local7:Object;
_local7 = Fmove.GetMoveScroll(_arg1, _arg2, _arg3, _arg4, _arg5, _BaseSita, _Spd, _Rot, _TimeCount, _arg6);
SetMoveStatus(_local7);
}
static function SetMoveBase(_arg1:Number, _arg2:Number, _arg3:Number=0, _arg4:int=0){
_BaseSita = _arg1;
_Spd = _arg2;
_Rot = _arg3;
_TimeCount = _arg4;
}
static function SetInvisibleEx(_arg1:Boolean=false, _arg2:int=0, _arg3:Number=0){
_FlgOptionEx = _arg1;
_FlgInvisibleEx = _arg1;
_InvisibleCountBaseEx = _arg2;
_InvisibleCountPerEx = _arg3;
}
static function SetWaitEx(_arg1:Boolean=false, _arg2:int=0, _arg3:Number=0){
_FlgOptionEx = _arg1;
_FlgWaitEx = _arg1;
_WaitCountBaseEx = _arg2;
_WaitCountPerEx = _arg3;
}
static function SetMoveReverse(_arg1:Number, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Array=null){
var _local7:Object;
_local7 = Fmove.GetMoveReverse(_arg1, _arg2, _arg3, _arg4, _arg5, _BaseSita, _Spd, _Rot, _TimeCount, _arg6);
SetMoveStatus(_local7);
}
static function SetOutDammy(_arg1:Boolean){
FlgOption = _arg1;
FlgOutDammy = _arg1;
}
static function SetInit(){
ArrMove = new Array();
}
static function SetNextStageData(_arg1:Boolean, _arg2:Array=null){
FlgNextStageData = _arg1;
ArrNextStageData = _arg2;
}
static function SetArrayList(_arg1:Object){
ArrEnemyShot = _arg1;
}
static function SetImage(_arg1:uint, _arg2:uint){
_ImgType = _arg1;
_ImgColor = _arg2;
}
static function SetEffect(_arg1:Boolean, _arg2:uint=0){
FlgOption = _arg1;
FlgEffect = _arg1;
EffectColor = _arg2;
}
static function SetMoveNear(_arg1:Number, _arg2:Number, _arg3:Number){
var _local4:Object;
_local4 = Fmove.GetMoveNear(_arg1, _arg2, _arg3, _BaseSita, _Spd, _Rot, _TimeCount);
SetMoveStatus(_local4);
}
static function SetBasePosition(_arg1:Number, _arg2:Number, _arg3:Number=0, _arg4:Number=0){
BaseX = _arg1;
BaseY = _arg2;
Dis = _arg3;
Sita = _arg4;
}
}
}//package
Section 54
//FesValue (FesValue)
package {
public class FesValue {
protected static var InvisibleCount:int = 0;
protected static var DeleteCount:Number = 0;
public static var BaseX:Number;
public static var BaseY:Number;
protected static var FlgOption:Boolean = false;
protected static var _TimeCount:int;
protected static var _InvisibleCountPerEx:Number = 0;
protected static var _ReTarget:Object;
protected static var _FlgOptionEx:Boolean = false;
protected static var FlgEffect:Boolean = false;
protected static var _BaseSita:Number;
protected static var ArrMove:Array;
protected static var _WaitCountBaseEx:int = 0;
protected static var EffectColor:uint;
protected static var _ImgType:uint;
protected static var _FlgReTarget:Boolean;
protected static var _Spd:Number;
protected static var FlgHitDammy:Boolean = false;
protected static var FlgDelete:Boolean = false;
protected static var ArrMoveSave:Array;
protected static var ArrNextStageData:Array;
protected static var FlgWait:Boolean = false;
protected static var _FlgMoveHitCheck:Boolean = true;
protected static var FlgNextStageData:Boolean = false;
protected static var _ImgColor:uint;
protected static var ArrEnemyShot:Object;
public static var Sita:Number;
protected static var _FlgInvisibleEx:Boolean = false;
protected static var ArrNextImage:Array;
protected static var FlgInvisible:Boolean = false;
protected static var _FlgMoveOutCheck:Boolean = true;
public static var Dis:Number;
protected static var FlgOutDammy:Boolean = false;
protected static var _ArrNextImage:Array;
protected static var _WaitCountPerEx:Number = 0;
protected static var _Rot:Number;
protected static var WaitCount:Number = 0;
protected static var _InvisibleCountBaseEx:int = 0;
protected static var _FlgWaitEx:Boolean = false;
}
}//package
Section 55
//Fis (Fis)
package {
class Fis {
static function CreateItem(_arg1:Number, _arg2:Number, _arg3:uint){
var _local4:Item;
_local4 = new Item(_arg1, _arg2);
if (_arg3 == 1){
_local4.SetImage(ItemImg_Power1);
} else {
if (_arg3 == 2){
_local4.SetImage(ItemImg_Power2);
} else {
if (_arg3 == 3){
_local4.SetImage(ItemImg_Score);
} else {
if (_arg3 == 4){
_local4.SetImage(ItemImg_Sou);
};
};
};
};
_local4.SetItemType(_arg3);
MainValue.ArrItem.Add(_local4);
}
}
}//package
Section 56
//Fmag (Fmag)
package {
import F03_Object.Magic.*;
class Fmag {
protected static var _FlgMoveHitCheck:Boolean = false;
protected static var _BaseY:Number;
protected static var _FlgMoveOutCheck:Boolean = false;
protected static var _BaseX:Number;
protected static var _Image:Object;
static function MagicFix(){
var _local1:*;
_local1 = new Magic();
_local1.x = _BaseX;
_local1.y = _BaseY;
_local1.SetImage(_Image);
_local1.SetMoveCheck(_FlgMoveHitCheck, _FlgMoveOutCheck);
MainValue.ArrMagic.Add(_local1);
return (_local1);
}
static function SetMoveCheck(_arg1:Boolean=false, _arg2:Boolean=false){
_FlgMoveHitCheck = _arg1;
_FlgMoveOutCheck = _arg2;
}
static function SetImage(_arg1:Object){
_Image = _arg1;
}
static function SetBaseData(_arg1:Number, _arg2:Number){
_BaseX = _arg1;
_BaseY = _arg2;
}
}
}//package
Section 57
//Fmove (Fmove)
package {
public class Fmove {
static function GetMoveNearTarget(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:int=0){
return (new MoveNearTarget(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6));
}
static function GetMoveStraight(_arg1:Number, _arg2:Number, _arg3:Number=0, _arg4:int=0){
return (new MoveStraight(_arg1, _arg2, _arg3, _arg4));
}
static function GetMoveCurve(_arg1:Number, _arg2:int, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:int=0){
return (new MoveCurve(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6));
}
static function GetMoveBoundNext(_arg1:Number, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Number, _arg7:Number, _arg8:Number=0, _arg9:int=0, _arg10:Array=null){
return (new MoveBoundNext(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10));
}
static function GetMoveBoundRockMove(_arg1:Number, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number, _arg10:Number, _arg11:Number=0, _arg12:int=0, _arg13:Array=null){
return (new MoveBoundRockMove(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11, _arg12, _arg13));
}
static function GetMoveNear(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0, _arg5:Number=0, _arg6:Number=0, _arg7:int=0){
return (new MoveNear(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
static function GetMoveNearTargetXY(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number=0, _arg8:int=0){
return (new MoveNearTargetXY(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8));
}
static function GetMoveScroll(_arg1:Number, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Number, _arg7:Number, _arg8:Number=0, _arg9:int=0, _arg10:Array=null){
return (new MoveScroll(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10));
}
static function GetMoveTargetRotation(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number=0, _arg8:int=0){
return (new MoveTargetRotation(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8));
}
static function GetMoveBound(_arg1:Number, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Number, _arg7:Number, _arg8:Number=0, _arg9:int=0, _arg10:Array=null){
return (new MoveBound(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10));
}
static function GetMoveReverse(_arg1:Number, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Number, _arg7:Number, _arg8:Number=0, _arg9:int=0, _arg10:Array=null){
return (new MoveReverse(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10));
}
static function GetMoveBoundRock(_arg1:Number, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Object, _arg7:Number, _arg8:Number, _arg9:Number=0, _arg10:int=0, _arg11:Array=null){
return (new MoveBoundRock(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10, _arg11));
}
static function GetMoveChange(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0, _arg6:int=0){
return (new MoveChange(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6));
}
}
}//package
Section 58
//Fps (Fps)
package {
public class Fps {
protected static var ShotNumber:uint;
private static var BaseX:Number;
private static var BaseY:Number;
private static var BaseSita:Number;
private static var Spd:Number;
private static var ArrImage:Array;
private static var Sita:Number;
private static var TimeCount:uint;
private static var Dis:Number;
private static var Attack:Number;
protected static var ShotType:uint;
private static var Rot:Number;
static function SetShotNumber(_arg1:uint){
ShotNumber = _arg1;
}
static function Shot(){
var _local1:Object;
if (ShotType == 0){
_local1 = new PlayerShot();
_local1.AddMove(Fmove.GetMoveStraight(BaseSita, Spd, Rot, TimeCount));
_local1.SetAttack(10);
_local1.SetPosition(BaseX, BaseY);
_local1.SetImage(ArrImage[ShotNumber][ShotType]);
_local1.First();
} else {
if (ShotType == 5){
_local1 = new PlayerShot();
_local1.AddMove(Fmove.GetMoveStraight(BaseSita, Spd, Rot, TimeCount));
_local1.SetAttack(10);
_local1.SetPosition(BaseX, BaseY);
_local1.SetImage(PlayerShot6_1);
_local1.First();
} else {
if (ShotType == 7){
_local1 = new PlayerShot();
_local1.AddMove(Fmove.GetMoveStraight(BaseSita, Spd, Rot, TimeCount));
_local1.SetAttack(10);
_local1.SetPosition(BaseX, BaseY);
_local1.SetImage(McPlayerShot8);
_local1.alpha = 0.5;
_local1.First();
};
};
};
MainValue.ArrPlayerShot.Add(_local1);
}
static function SetMoveBase(_arg1:Number, _arg2:Number, _arg3:Number=0, _arg4:uint=0){
BaseSita = _arg1;
Spd = _arg2;
Rot = _arg3;
TimeCount = _arg4;
}
static function SetAttack(_arg1:Number){
Attack = _arg1;
}
static function SetShotType(_arg1:uint){
ShotType = _arg1;
}
static function SetImage(){
var _local1:Array;
var _local2:Array;
var _local3:Array;
_local1 = new Array(McPlayerShot1);
_local2 = new Array(null);
ArrImage = new Array(_local1, _local2);
_local3 = new Array(McPlayerShot8);
ArrImage[7] = _local3;
}
static function SetBasePosition(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
BaseX = _arg1;
BaseY = _arg2;
Dis = _arg3;
Sita = _arg4;
}
}
}//package
Section 59
//GMath (GMath)
package {
import flash.display.*;
class GMath {
static function DrawLine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:uint=0, _arg6:uint=1, _arg7:Number=1){
var _local8:Sprite;
_local8 = new Sprite();
_local8.graphics.lineStyle(_arg6, _arg5, _arg7);
_local8.graphics.moveTo(_arg1, _arg2);
_local8.graphics.lineTo(_arg3, _arg4);
return (_local8);
}
static function DrawCircleThunder(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:uint, _arg6:Number, _arg7:Number, _arg8:uint=0xFFFFFF, _arg9:uint=1, _arg10:Number=1, _arg11:Number=360, _arg12:Number=1, _arg13:Number=1){
var _local14:PointList;
var _local15:uint;
var _local16:Array;
var _local17:Array;
var _local18:Sprite;
var _local19:Number;
var _local20:Number;
var _local21:Number;
var _local22:Number;
_local14 = new PointList();
_local15 = 0;
while (_local15 < _arg5) {
_local19 = Math2.IF_NUMBER(((_local15 % 2) == 0), Math2.GetRandom(-(_arg6), _arg4), Math2.GetRandom(_arg7, _arg4));
_local20 = ((360 / _arg5) * _local15);
_local21 = ((Math2.GetCosB(_local20) * _local19) + _arg1);
_local22 = ((Math2.GetSinB(_local20) * _local19) + _arg2);
_local14.Add(_local21, _local22);
_local15++;
};
_local16 = _local14.GetArrayX();
_local17 = _local14.GetArrayY();
_local18 = DrawLineFromArray(_local16, _local17, _arg8, _arg9, _arg10, true);
return (_local18);
}
static function DrawCircle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint=0, _arg5:Number=1, _arg6:Boolean=false, _arg7:uint=0, _arg8:Number=1){
var _local9:Sprite;
_local9 = new Sprite();
if (_arg6){
_local9.graphics.beginFill(_arg7);
};
_local9.graphics.lineStyle(_arg5, _arg4, _arg8);
_local9.graphics.drawCircle(_arg1, _arg2, _arg3);
_local9.alpha = _arg8;
if (_arg6){
_local9.graphics.endFill();
};
return (_local9);
}
static function DrawRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:uint=0, _arg6:uint=1, _arg7:Boolean=false, _arg8:uint=0, _arg9:Number=1){
var _local10:Sprite;
_local10 = new Sprite();
_local10.graphics.lineStyle(_arg6, _arg5, _arg9);
if (_arg7){
_local10.graphics.beginFill(_arg8);
};
_local10.graphics.drawRect(0, 0, _arg3, _arg4);
_local10.x = _arg1;
_local10.y = _arg2;
if (_arg7){
_local10.graphics.endFill();
};
return (_local10);
}
static function DrawLineFromArray(_arg1:Array, _arg2:Array, _arg3:uint=0, _arg4:uint=1, _arg5:Number=1, _arg6:Boolean=false){
var _local7:Sprite;
var _local8:uint;
var _local9:uint;
_local7 = new Sprite();
_local7.graphics.lineStyle(_arg4, _arg3, _arg5);
_local7.graphics.moveTo(_arg1[0], _arg2[0]);
_local8 = _arg1.length;
_local9 = 1;
while (_local9 < _local8) {
_local7.graphics.lineTo(_arg1[_local9], _arg2[_local9]);
_local9++;
};
if (_arg6){
_local7.graphics.lineTo(_arg1[0], _arg2[0]);
};
return (_local7);
}
}
}//package
Section 60
//HitChecker (HitChecker)
package {
class HitChecker {
protected var _MoveX:Number;
protected var _MoveY:Number;
protected var _TargetMoveX:Number;
protected var _TargetMoveY:Number;
protected var _HitCount:int;
function HitChecker(_arg1:Number, _arg2:Number){
SetMove(_arg1, _arg2);
SetTargetMove(0, 0);
_HitCount = 0;
}
function SetMove(_arg1:Number, _arg2:Number){
_MoveX = _arg1;
_MoveY = _arg2;
}
function SetTargetMove(_arg1:Number, _arg2:Number){
_TargetMoveX = _arg1;
_TargetMoveY = _arg2;
}
function RangeCheck(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
if ((((_arg1 < _arg3)) && ((_arg2 < _arg4)))){
return (true);
};
return (false);
}
function HitCheck(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
_local6 = Math.abs((_arg1.x - _arg2));
_local7 = Math.abs((_arg1.y - _arg3));
if (RangeCheck(_local6, _local7, _arg4, _arg5)){
return (true);
};
_local8 = (Math.abs(_TargetMoveX) + Math.abs(_MoveX));
_local9 = (Math.abs(_TargetMoveY) + Math.abs(_MoveY));
_HitCount = Math.floor(Math.min((_local6 / _local8), (_local7 / _local9)));
return (false);
}
function GetCount(){
return (_HitCount);
}
}
}//package
Section 61
//ImageControl (ImageControl)
package {
class ImageControl extends ImageControlBase {
function ImageControl(_arg1:uint){
super(_arg1);
}
}
}//package
Section 62
//ImageControlBase (ImageControlBase)
package {
class ImageControlBase {
private var ArrImageName:Array;
private var ArrImage:Array;
function ImageControlBase(_arg1:uint=100){
ArrImage = new Array(_arg1);
ArrImageName = new Array(_arg1);
}
function SetImage(_arg1:uint, _arg2:Object, _arg3:String=""){
if (_arg3 == ""){
_arg3 = _arg1.toString();
};
ArrImage[_arg1] = _arg2;
ArrImageName[_arg1] = _arg3;
}
function GetImage(_arg1:uint){
return (ArrImage[_arg1]);
}
function GetImageFromName(_arg1:String){
var _local2:uint;
_local2 = 0;
while (_local2 < ArrImageName.length) {
if (ArrImageName[_local2] == _arg1){
return (ArrImage[_local2]);
};
_local2++;
};
return (null);
}
}
}//package
Section 63
//ImgLogo (ImgLogo)
package {
import flash.display.*;
public dynamic class ImgLogo extends MovieClip {
}
}//package
Section 64
//InformationData (InformationData)
package {
class InformationData {
public var ScorePoint:int;
protected var _HiScore:int;
public var ShotPower:Number;
protected var _DisplayScore:int;
protected var _PlayInformation:PlayInformation;
protected var _NowScore:int;
public var ArrScorePoint:Array;
function InformationData(){
_PlayInformation = MainValue._PlayInformation;
_HiScore = 0;
_NowScore = 0;
_DisplayScore = 0;
}
function GetScore(_arg1:Number){
_NowScore = (_NowScore + _arg1);
}
function InitData(){
_HiScore = 0;
_NowScore = 0;
_DisplayScore = 0;
DisplayScore();
}
function DisplayScore(){
if (_DisplayScore == _NowScore){
return;
};
_DisplayScore = (_DisplayScore + 10);
if (_DisplayScore > _NowScore){
_DisplayScore = _NowScore;
};
_PlayInformation.SetNowScore(_DisplayScore);
if (_DisplayScore > _HiScore){
_HiScore = _DisplayScore;
_PlayInformation.SetHiScore(_HiScore);
};
}
}
}//package
Section 65
//Item (Item)
package {
class Item extends StageObject {
protected var ItemType:int;
protected var Player:PlayerScript;
protected var PlayerItemGetLine:Number;
function Item(_arg1:Number, _arg2:Number){
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Object;
var _local7:Object;
var _local8:Object;
super();
Player = MainValue.Player;
PlayerItemGetLine = MainValue.PlayerItemGetLine;
x = _arg1;
y = _arg2;
_local3 = _arg1;
_local4 = (_arg2 - 40);
_local5 = 5;
_local6 = Fmove.GetMoveNear(_local3, _local4, _local5, 0, 0, 12, 60);
_local6.SetMoveCheck(true, false);
AddMove(_local6);
_local7 = Fmove.GetMoveStraight(90, 2, 0, 0);
AddMove(_local7);
_local8 = Fmove.GetMoveNearTarget(Player, 3, 0, 0, 0, 0);
AddMove(_local8);
}
function CheckPlayerPoint(){
if (Player.y < PlayerItemGetLine){
SetLastMove();
};
}
function GetItemType(){
return (ItemType);
}
function SetItemType(_arg1:int){
ItemType = _arg1;
}
override function HitAction(_arg1:Object){
_arg1.GetItem(this);
}
}
}//package
Section 66
//ItemImg_Power1 (ItemImg_Power1)
package {
import flash.display.*;
public dynamic class ItemImg_Power1 extends MovieClip {
}
}//package
Section 67
//ItemImg_Power2 (ItemImg_Power2)
package {
import flash.display.*;
public dynamic class ItemImg_Power2 extends MovieClip {
}
}//package
Section 68
//ItemImg_Score (ItemImg_Score)
package {
import flash.display.*;
public dynamic class ItemImg_Score extends MovieClip {
}
}//package
Section 69
//ItemImg_Sou (ItemImg_Sou)
package {
import flash.display.*;
public dynamic class ItemImg_Sou extends MovieClip {
}
}//package
Section 70
//KeyControl (KeyControl)
package {
import flash.events.*;
class KeyControl {
protected var ArrKeyOnce:Array;
protected var ArrKeyUse:Array;
protected var ArrKeyStatus:Array;
protected var _Stage:Object;
function KeyControl(_arg1:Object){
_Stage = _arg1;
KeyStatusOff();
_Stage.addEventListener(KeyboardEvent.KEY_DOWN, KeyDownEvent);
_Stage.addEventListener(KeyboardEvent.KEY_UP, KeyUpEvent);
}
function MainScript(){
ResetKeyUse();
}
function KeyStatusOff(){
var _local1:uint;
ArrKeyStatus = new Array(0x0100);
ArrKeyOnce = new Array(0x0100);
_local1 = 0;
while (_local1 < 0x0100) {
ArrKeyStatus[_local1] = false;
ArrKeyOnce[_local1] = false;
_local1++;
};
ArrKeyUse = new Array();
}
function IsKeyStatus(_arg1:uint){
return (ArrKeyStatus[_arg1]);
}
function IsKeyOnce(_arg1:uint){
return (ArrKeyOnce[_arg1]);
}
function ResetKeyUse(){
var _local1:uint;
if (ArrKeyUse.length > 0){
_local1 = 0;
while (_local1 < ArrKeyUse.length) {
ArrKeyOnce[ArrKeyUse[_local1]] = false;
_local1++;
};
ArrKeyUse = new Array();
};
}
function KeyUpEvent(_arg1:KeyboardEvent){
ArrKeyStatus[_arg1.keyCode] = false;
ArrKeyOnce[_arg1.keyCode] = false;
}
function KeyDownEvent(_arg1:KeyboardEvent){
if (ArrKeyStatus[_arg1.keyCode] == false){
ArrKeyOnce[_arg1.keyCode] = true;
};
ArrKeyStatus[_arg1.keyCode] = true;
ArrKeyUse.push(_arg1.keyCode);
}
}
}//package
Section 71
//LineData (LineData)
package {
class LineData {
protected var _StartPoint:PointData;
protected var StartX:Number;
protected var StartY:Number;
protected var _a:Number;
protected var _b:Number;
protected var _EndPoint:PointData;
protected var EndX:Number;
protected var EndY:Number;
function LineData(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){
StartX = _arg1;
StartY = _arg2;
EndX = _arg3;
EndY = _arg4;
_StartPoint = new PointData(StartX, StartY);
_EndPoint = new PointData(EndX, EndY);
SetAB();
}
function get spy(){
return (_StartPoint.py);
}
function get sp(){
return (_StartPoint);
}
function get a(){
return (_a);
}
function get b(){
return (_b);
}
function SetAB(){
_a = ((EndX - StartX) / (EndY - StartY));
_b = (StartY - (_a * StartX));
}
function get ep(){
return (_EndPoint);
}
function get epx(){
return (_EndPoint.px);
}
function get epy(){
return (_EndPoint.py);
}
function get spx(){
return (_StartPoint.px);
}
}
}//package
Section 72
//LoadControl (LoadControl)
package {
import flash.events.*;
import flash.media.*;
import flash.net.*;
import flash.system.*;
class LoadControl {
private var txtLoader:URLLoader;
private var _BgmIndex:uint;
private var _TextIndex:int;
private var _TextControl:Object;
private var _Control:Object;
function onLoaded(_arg1:Event){
_TextControl.SetLoadText(txtLoader.data, _TextIndex);
}
function SoundLoadComplete(_arg1:Event){
if (_Control.SoundLoadComplete != null){
_Control.SoundLoadComplete(_BgmIndex);
};
}
function LoadSound(_arg1:String, _arg2:Object, _arg3:uint){
var _local4:URLRequest;
var _local5:Sound;
_Control = _arg2;
_BgmIndex = _arg3;
_local4 = new URLRequest(_arg1);
_local5 = new Sound();
_local5.load(_local4);
_local5.addEventListener(IOErrorEvent.IO_ERROR, IOErrorBgmLoad);
_local5.addEventListener(Event.COMPLETE, SoundLoadComplete);
return (_local5);
}
function LoadText(_arg1:String, _arg2:Object, _arg3:int){
var _local4:URLRequest;
_TextControl = _arg2;
_TextIndex = _arg3;
txtLoader = new URLLoader();
txtLoader.dataFormat = URLLoaderDataFormat.TEXT;
txtLoader.addEventListener(Event.COMPLETE, onLoaded);
System.useCodePage = true;
_local4 = new URLRequest(_arg1);
txtLoader.addEventListener(IOErrorEvent.IO_ERROR, IOErrorTextLoad);
txtLoader.load(_local4);
}
function IOErrorTextLoad(_arg1:Event){
_TextControl.TextLoadError(_TextIndex);
}
function IOErrorBgmLoad(_arg1:Event){
if (_Control.LoadError != null){
_Control.LoadError(_BgmIndex);
};
}
}
}//package
Section 73
//LoadImageControl (LoadImageControl)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
class LoadImageControl {
protected var _Control:Object;
protected var _ImageLoader:Object;
protected var _ImageIndex:int;
function LoadCompleteScript(_arg1:Event){
if (_Control.ImageLoadComplete != null){
_Control.ImageLoadComplete(_ImageLoader, _ImageIndex);
};
}
function LoadImage(_arg1:String, _arg2:Object, _arg3:int){
var _local4:Loader;
var _local5:URLRequest;
_Control = _arg2;
_ImageIndex = _arg3;
_local4 = new Loader();
_local4.contentLoaderInfo.addEventListener(Event.COMPLETE, LoadCompleteScript);
_local4.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, IOErrorImageLoad);
_local5 = new URLRequest(_arg1);
_local4.load(_local5);
_ImageLoader = _local4;
return (_ImageLoader);
}
function IOErrorImageLoad(_arg1:Event){
if (_Control.LoadError != null){
_Control.LoadError(_ImageIndex);
};
}
}
}//package
Section 74
//LoadingDisplay (LoadingDisplay)
package {
import flash.display.*;
public dynamic class LoadingDisplay extends MovieClip {
}
}//package
Section 75
//LoadSoundControl (LoadSoundControl)
package {
import flash.events.*;
import flash.media.*;
import flash.net.*;
class LoadSoundControl {
private var _BgmIndex:uint;
private var _Control:Object;
function LoadSound(_arg1:String, _arg2:Object, _arg3:uint){
var _local4:URLRequest;
var _local5:Sound;
_Control = _arg2;
_BgmIndex = _arg3;
_local4 = new URLRequest(_arg1);
_local5 = new Sound();
_local5.load(_local4);
_local5.addEventListener(IOErrorEvent.IO_ERROR, IOErrorBgmLoad);
_local5.addEventListener(Event.COMPLETE, SoundLoadComplete);
return (_local5);
}
function IOErrorBgmLoad(_arg1:Event){
if (_Control.LoadError != null){
_Control.LoadError(_BgmIndex);
};
}
function SoundLoadComplete(_arg1:Event){
if (_Control.SoundLoadComplete != null){
_Control.SoundLoadComplete(_BgmIndex);
};
}
}
}//package
Section 76
//Magic (Magic)
package {
public class Magic extends StageObject {
}
}//package
Section 77
//Magic_BLUE (Magic_BLUE)
package {
import flash.display.*;
public dynamic class Magic_BLUE extends MovieClip {
}
}//package
Section 78
//Magic_GREEN (Magic_GREEN)
package {
import flash.display.*;
public dynamic class Magic_GREEN extends MovieClip {
}
}//package
Section 79
//Magic_RED (Magic_RED)
package {
import flash.display.*;
public dynamic class Magic_RED extends MovieClip {
}
}//package
Section 80
//Main (Main)
package {
import flash.events.*;
import flash.display.*;
public class Main extends MainUnit {
public function Main(){
SystemMode = SYS_LOADING;
GameMode = NORMAL_STAGE;
FlgDebug = false;
FlgLocal = false;
StageTimeCount = 0;
FirstPower = 0;
SpellHP = 10;
ImageDataRegist();
SpellRegist();
StageRegist();
SoundRegist();
Fps.SetImage();
CSCImage = new SpellCardImageControl();
CKey = new KeyControl(stage);
stage.addEventListener(Event.ENTER_FRAME, MainScript);
}
function EndLoading(){
SystemMode = SYS_MAIN_MENU;
MenuInitialize();
CMenu.SetMainMenu(MainMenu);
}
function MainScript(_arg1:Event){
var _local2:Boolean;
if (SystemMode == SYS_GAME_MAIN){
CIData.DisplayScore();
_local2 = false;
if (GameMode == BOSS_BATTLE){
_local2 = CBattle.MainScript();
if (_local2){
CKey.KeyStatusOff();
if (_FlgReturnTitle){
_FlgReturnTitle = false;
GameTermination();
MenuInitialize();
CMenu.SetMainMenu(MainMenu);
} else {
if (SELECT_MODE == SELECT_NORMAL){
if (_FlgSubBoss == true){
GameMode = NORMAL_STAGE;
ArrEnemy.RemoveAll();
CStage.Restart();
} else {
ArrEnemy.RemoveAll();
GameMode = RESULT;
};
} else {
if (SELECT_MODE == SELECT_SPELLPRACTICE){
SystemMode = SYS_MAIN_MENU;
GameMode = 0;
CKey.KeyStatusOff();
GameTermination();
MenuInitialize();
CMenu.SetMainMenu(SpellPracticeMenu);
};
};
};
};
} else {
if (GameMode == NORMAL_STAGE){
_local2 = CStage.MainScript();
if (_local2){
CKey.KeyStatusOff();
if (_FlgReturnTitle){
_FlgReturnTitle = false;
GameTermination();
MenuInitialize();
CMenu.SetMainMenu(MainMenu);
} else {
SystemMode = SYS_GAME_MAIN;
GameMode = BOSS_BATTLE;
CBattle = new BattleControl(this, _StageNumber, _SpellNumber, _FlgSubBoss);
if (_FlgSubBoss == false){
CBgm.BgmOff();
CBgm.BgmOn((((_StageNumber - 1) * 2) + 1), 0.25);
};
};
};
} else {
if (GameMode == RESULT){
if (CKey.IsKeyOnce(90) == true){
if (_StageNumber == _StageCount){
_FlgReturnTitle = false;
GameTermination();
MenuInitialize();
CMenu.SetMainMenu(MainMenu);
} else {
SetNextStage();
};
};
};
};
};
} else {
if (SystemMode == SYS_MAIN_MENU){
_local2 = CMenu.MainScript();
CKey.ResetKeyUse();
if (_local2){
MenuTermination();
_StageNumber = SP_StageNumber;
_SpellNumber = SP_SpellNumber;
GameInitialize();
if (SELECT_MODE == SELECT_NORMAL){
SystemMode = SYS_GAME_MAIN;
GameMode = NORMAL_STAGE;
_StageNumber = 1;
_SpellNumber = 1;
_FlgSubBoss = false;
CStage = new StageControl(this, _StageNumber);
CBgm.BgmOff();
CBgm.BgmOn(((_StageNumber - 1) * 2), 0.25);
} else {
if (SELECT_MODE == SELECT_SPELLPRACTICE){
SystemMode = SYS_GAME_MAIN;
GameMode = BOSS_BATTLE;
_StageNumber = SP_StageNumber;
_SpellNumber = SP_SpellNumber;
CBattle = new BattleControl(this, _StageNumber, _SpellNumber, _FlgSubBoss);
CBgm.BgmOff();
CBgm.BgmOn((((_StageNumber - 1) * 2) + 1), 0.25);
};
};
};
} else {
if (SystemMode == SYS_LOADING){
if (CKey.IsKeyOnce(90)){
CBgm.DisplayLoadStatusOff();
EndLoading();
} else {
_local2 = CBgm.MainScript();
if (_local2){
EndLoading();
};
};
CKey.ResetKeyUse();
};
};
};
CKey.MainScript();
}
function MenuTermination(){
CMenu = null;
stage.removeChild(MenuStage);
MenuStage = null;
}
function DebugOff(){
stage.removeChild(DebugStage);
DebugStage = null;
Debug.FpsCheckOff();
}
function PauseTermination(){
_FlgPause = false;
CBattle.SetEndFlg(false);
SystemMode = SYS_GAME_MAIN;
GameMode = SAVE_GAME_MODE;
if (_FlgReturnTitle){
_FlgReturnTitle = false;
GameTermination();
MenuInitialize();
CMenu.SetMainMenu(MainMenu);
};
}
function MenuInitialize(){
SystemMode = SYS_MAIN_MENU;
GameMode = 0;
CMenu = new MenuControl();
MenuStage = new Sprite();
stage.addChild(MenuStage);
CMenu.SetStage(MenuStage);
}
function GameInitialize(){
var _local1:uint;
var _local2:uint;
ArrEnemy = new ArrayListEnemy();
ArrEnemyShot = new ArrayListEnemyShot();
ArrPlayerShot = new ArrayListPlayerShot();
ArrMagic = new ArrayListMagic();
ArrEffect = new ArrayListEffect();
ArrItem = new ArrayListItem();
CharaStage = new Sprite();
EnemyStage = new Sprite();
EnemyShotStage = new Sprite();
PlayerShotStage = new Sprite();
MagicStage = new Sprite();
EffectStage = new Sprite();
ItemStage = new Sprite();
SpellStage = new Sprite();
InformationStage = new Sprite();
_PlayInformation = new PlayInformation();
CIData = new InformationData();
InformationStage.addChild(_PlayInformation);
CIData.InitData();
ArrGameRegistObject = new Array();
ArrGameRegistObject.push(CharaStage);
ArrGameRegistObject.push(EnemyStage);
ArrGameRegistObject.push(EnemyShotStage);
ArrGameRegistObject.push(PlayerShotStage);
ArrGameRegistObject.push(MagicStage);
ArrGameRegistObject.push(EffectStage);
ArrGameRegistObject.push(ItemStage);
ArrGameRegistObject.push(SpellStage);
ArrGameRegistObject.push(InformationStage);
_local1 = 0;
while (_local1 < ArrGameRegistObject.length) {
stage.addChild(ArrGameRegistObject[_local1]);
_local1++;
};
ArrItem.SetStage(ItemStage);
ArrEnemy.SetStage(EnemyStage);
ArrEnemyShot.SetStage(EnemyShotStage);
ArrPlayerShot.SetStage(PlayerShotStage);
ArrMagic.SetStage(MagicStage);
ArrEffect.SetStage(EffectStage);
FesUtil.SetArrayList(ArrEnemyShot);
FesUtil.SetInit();
Ec.SetArrayList(ArrEffect);
Ec.SetRegist(true);
if (Player == null){
CreatePlayer(PlayerImgMarisa);
Player.SetFlg(true, true);
};
if (Boss == null){
if (SELECT_MODE == SELECT_SPELLPRACTICE){
Boss = new BossScript(220, 100);
if (_FlgSubBoss == false){
_local2 = (((_StageNumber - 1) * 2) + ArrBossType[(_SpellNumber - 1)]);
Boss.SetImage(ArrBossImg[_local2]);
} else {
Boss.SetImage(ArrSubBossImg[(_StageNumber - 1)]);
};
CharaStage.addChild(Boss);
ArrEnemy.Add(Boss);
};
};
DebugOn();
}
function DebugOn(){
DebugStage = new Sprite();
stage.addChild(DebugStage);
Debug.DebugOn(DebugStage);
Debug.FpsCheckOn(333.3, stage.frameRate);
}
function GameTermination(){
var _local1:uint;
CBgm.BgmOff();
_PlayInformation = null;
if (Player != null){
Player = null;
};
if (Boss != null){
Boss = null;
};
if (ArrGameRegistObject != null){
_local1 = 0;
while (_local1 < ArrGameRegistObject.length) {
stage.removeChild(ArrGameRegistObject[_local1]);
_local1++;
};
};
DebugOff();
}
function SetNextStage(){
SystemMode = SYS_GAME_MAIN;
GameMode = NORMAL_STAGE;
_StageNumber++;
_SpellNumber = 1;
_FlgSubBoss = false;
CStage = new StageControl(this, _StageNumber);
}
}
}//package
Section 81
//MainMenu (MainMenu)
package {
import flash.display.*;
public class MainMenu extends MenuBase {
public var Item2:MovieClip;
public var Item6:MovieClip;
public var Item1:MovieClip;
public var Item4:MovieClip;
public var Item5:MovieClip;
public var Item3:MovieClip;
public function MainMenu(){
if (MainValue.SELECT_MODE == MainValue.SELECT_NORMAL){
Index = 0;
} else {
if (MainValue.SELECT_MODE == MainValue.SELECT_EXTRA){
Index = 1;
} else {
if (MainValue.SELECT_MODE == MainValue.SELECT_PRACTICE){
Index = 2;
} else {
if (MainValue.SELECT_MODE == MainValue.SELECT_SPELLPRACTICE){
Index = 3;
} else {
if (MainValue.SELECT_MODE == MainValue.SELECT_OPTION){
Index = 4;
};
};
};
};
};
AddItemMc(this.Item1);
AddItemMc(this.Item2);
AddItemMc(this.Item3);
AddItemMc(this.Item4);
AddItemMc(this.Item5);
AddItemMc(this.Item6);
AddNextMenu(DifficultMenu);
AddNextMenu(-1);
AddNextMenu(-1);
AddNextMenu(-1);
AddNextMenu(OptionMenu);
AddNextMenu(-1);
SetItem();
}
override function SelectEvent(_arg1:int){
if (_arg1 == 0){
MainValue.SELECT_MODE = MainValue.SELECT_NORMAL;
} else {
if (_arg1 == 1){
MainValue.SELECT_MODE = MainValue.SELECT_EXTRA;
} else {
if (_arg1 == 2){
MainValue.SELECT_MODE = MainValue.SELECT_PRACTICE;
} else {
if (_arg1 == 3){
MainValue.SELECT_MODE = MainValue.SELECT_SPELLPRACTICE;
} else {
if (_arg1 == 4){
MainValue.SELECT_MODE = MainValue.SELECT_OPTION;
};
};
};
};
};
}
}
}//package
Section 82
//MainUnit (MainUnit)
package {
class MainUnit extends MainValue {
function CreatePlayer(_arg1:Object){
var _local2:PlayerScript;
_local2 = new PlayerScript(_StageData.CenterX, 240);
CharaStage.addChild(_local2);
_local2.SetImage(_arg1);
Player = _local2;
}
function StageRegist(){
ArrStageEnemyData = new Array();
ArrStageEnemyData.push(StageData01);
}
function SoundRegist(){
CBgm = new BgmControl();
if (FlgLocal){
CBgm.SetCurrentDirectory("../../../素材/BGM/");
} else {
CBgm.SetCurrentDirectory("./BGM/");
};
CBgm.LoadBgm(0, "BGM01.mp3 ");
CBgm.LoadBgm(1, "BGM02.mp3 ");
CBgm.LoadBgm(2, "BGM03.mp3 ");
CBgm.LoadBgm(3, "BGM04.mp3 ");
CBgm.LoadBgm(4, "BGM05.mp3 ");
CBgm.LoadBgm(5, "BGM06.mp3 ");
CBgm.DisplayLoadStatus(this);
CSe = new SeControl();
CSe.SetSE(0, SE000);
CSe.SetSE(5, SE005);
CSe.SetSE(100, SE100);
CSe.SetSE(101, SE101);
CSe.SetSE(102, SE102);
}
function ImageDataRegist(){
var _local1:uint;
var _local2:uint;
var _local3:uint;
var _local4:Object;
ArrEnemyShotImg = new Array();
ArrEnemyShotImg.push(new Array(Shot1_RED, Shot1_GREEN, Shot1_BLUE, Shot1_YELLOW, Shot1_PURPLE, Shot1_WHITE, Shot1_PINK));
ArrEnemyShotImg.push(new Array(Shot2_RED, Shot2_GREEN, Shot2_BLUE, Shot2_YELLOW, Shot2_PURPLE, Shot2_WHITE));
ArrEnemyShotImg.push(new Array(Shot3_RED, Shot3_GREEN, Shot3_BLUE, Shot3_YELLOW, Shot3_PURPLE, Shot3_WHITE, Shot3_PINK));
ArrEnemyShotImg.push(new Array(Shot4_RED));
ArrEnemyShotImg.push(new Array(Shot5_RED));
ArrEnemyShotImg.push(new Array(Shot6_RED));
ArrEnemyShotImg.push(new Array(Shot7_RED));
ArrEnemyShotImg.push(new Array(Shot8_RED, Shot8_GREEN, Shot8_BLUE, Shot8_YELLOW, Shot8_PURPLE, null, Shot8_PINK));
ArrEnemyShotImg.push(new Array(Shot9_RED));
ArrEnemyShotImg.push(new Array(Shot10_BLUE));
CImageEnemyShot = new ImageControl(100);
_local1 = 0;
while (_local1 < ArrEnemyShotImg.length) {
_local2 = 0;
while (_local2 < ArrEnemyShotImg[_local1].length) {
_local3 = ((_local1 * 10) + _local2);
_local4 = ArrEnemyShotImg[_local1][_local2];
CImageEnemyShot.SetImage(_local3, _local4);
_local2++;
};
_local1++;
};
ArrBossImg = new Array(BossImgReimu, BossImgYukari, BossImgYomu, BossImgYuyuko, BossImgKoa, BossImgAlice);
ArrSubBossImg = new Array(BossImgLumia, BossImgChirno, BossImgMisty);
ArrEnemyShotEffect = new Array(EffectShot_RED, EffectShot_GREEN, EffectShot_BLUE, EffectShot_YELLOW, EffectShot_PURPLE, EffectShot_WHITE, EffectShot_BLACK);
}
function TalkRegist(){
}
function SpellRegist(){
var _local1:Array;
var _local2:Array;
var _local3:Array;
var _local4:Array;
var _local5:Array;
var _local6:Array;
CSpellData = new SpellDataControl(6);
_local1 = new Array(Spell01_001, Spell01_002, Spell01_003, Spell01_004, Spell01_005, Spell01_006, Spell01_007);
_local2 = new Array(Spell02_001, Spell02_002, Spell02_003, Spell02_004, Spell02_005, Spell02_006);
_local3 = new Array(Spell03_001, Spell03_002);
_local4 = new Array(SubSpell01_001, SubSpell01_002);
_local5 = new Array(SubSpell02_001, SubSpell02_002);
_local6 = new Array(SubSpell03_001, SubSpell03_002);
CSpellData.SetSpellArray(1, _local1);
CSpellData.SetSpellArray(2, _local2);
CSpellData.SetSpellArray(3, _local3);
CSpellData.SetSubSpellArray(1, _local4);
CSpellData.SetSubSpellArray(2, _local5);
CSpellData.SetSubSpellArray(3, _local6);
}
}
}//package
Section 83
//MainValue (MainValue)
package {
import flash.display.*;
class MainValue extends MovieClip {
public static var Player:PlayerScript;
public static var SELECT_MODE:int = 0;
public static var _StageNumber:uint;
protected static var Stc:StageControl;
public static var ShotPower:Number;
public static var PlayerItemGetLine:Number;
public static var SpellHP:Number = 1;
public static var SELECT_OPTION:int = 40;
public static var SYS_MAIN_MENU:int = 10;
public static var RESULT:int = 20;
public static var SELECT_PRACTICE:int = 20;
protected static var PlayerShotStage:Sprite;
public static var _StageData:StageData;
public static var CharaStage:Sprite;
public static var _FlgReturnTitle:Boolean;
public static var ArrEffect:ArrayListEffect;
public static var CKey:KeyControl;
public static var CIData:InformationData;
public static var StageTimeCount:uint;
public static var ScorePoint:int;
public static var ArrScorePoint:Array;
public static var SELECT_SPELLPRACTICE:int = 30;
protected static var CMenu:MenuControl;
public static var CSCImage:SpellCardImageControl;
public static var FirstPower:Number;
public static var ArrEnemyShotEffect:Array;
public static var Difficult:uint;
public static var ArrEnemyShot:ArrayListEnemyShot;
public static var _PlayerBaseX:Number;
public static var _PlayerBaseY:Number;
protected static var InformationStage:Sprite;
public static var _StageCount:uint;
protected static var MagicStage:Sprite;
public static var PlayerShotType:uint;
protected static var EnemyStage:Sprite;
public static var Sc:SpellControl;
public static var CStage:StageControl;
public static var _FlgSpellRetry:Boolean;
public static var NORMAL_STAGE:int = 0;
public static var CImageEffect:ImageControl;
public static var SYS_LOADING:int = 0;
protected static var ItemStage:Sprite;
public static var Boss:BossScript;
public static var SAVE_GAME_MODE:int;
public static var SP_SpellNumber:int = 1;
public static var SELECT_NORMAL:int = 0;
public static var SystemMode:uint;
public static var ArrBossImg:Array;
protected static var Tc:TalkControl;
public static var FlgDebug:Boolean;
public static var _BossBaseX:Number;
public static var _BossBaseY:Number;
public static var ArrEnemyShotImg:Array;
public static var ArrPlayerShot:ArrayListPlayerShot;
public static var CBgm:BgmControl;
protected static var EnemyShotStage:Sprite;
public static var _FlgPause:Boolean;
protected static var DebugStage:Sprite;
public static var ArrBossType:Array;
public static var CImageEnemyShot:ImageControl;
public static var _SpellNumber:uint;
public static var ArrStageEnemyData:Array;
protected static var MenuStage:Sprite;
public static var FlgGraze:Boolean;
public static var PlayerSpeed:Number;
public static var ArrEnemy:ArrayListEnemy;
protected static var ArrGameRegistObject:Array;
public static var BOSS_BATTLE:int = 10;
public static var FlgLocal:Boolean = true;
protected static var EffectStage:Sprite;
public static var SYS_GAME_MAIN:int = 20;
public static var GameMode:uint;
public static var ArrSubBossImg:Array;
public static var CBattle:BattleControl;
public static var SpellStage:Sprite;
public static var SP_StageNumber:int = 1;
public static var _FlgSubBoss:Boolean;
public static var ArrMagic:ArrayListMagic;
public static var SELECT_EXTRA:int = 10;
public static var CSpellData:SpellDataControl;
public static var ArrItem:ArrayListItem;
public static var CSe:SeControl;
public static var _PlayInformation:PlayInformation;
public static var SP_Difficult:int = 0;
function MainValue(){
_StageData = new StageData(20, 400, 20, 460);
PlayerSpeed = 4;
PlayerItemGetLine = (_StageData.Top + 100);
ShotPower = 0;
ScorePoint = 0;
ArrScorePoint = new Array(50, 100, 200, 500, 800, 1000, 1100, 9999);
Difficult = 0;
_StageNumber = 1;
_SpellNumber = 1;
_StageCount = 1;
FlgGraze = true;
_FlgPause = false;
_FlgReturnTitle = false;
_BossBaseX = _StageData.CenterX;
_BossBaseY = 100;
ArrBossType = new Array(0, 0, 1, 1, 0, 1, 0);
}
}
}//package
Section 84
//Math2 (Math2)
package {
class Math2 {
function CheckInCircle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){
var _local6:Number;
var _local7:Number;
_local6 = GetTargetSitaXYB(_arg1, _arg2, _arg3, _arg4);
_local7 = ((_arg1 - _arg3) / GetCosB(_local6));
return ((_local7 <= _arg5));
}
static function GetSinB(_arg1:Number){
return (IF_NUMBER((((_arg1 == 0)) || ((_arg1 == 180))), 0, Math.sin(((_arg1 * Math.PI) / 180))));
}
static function GetDistanceMC(_arg1:Object, _arg2:Object){
return (Math.sqrt((Math.pow((_arg2.x - _arg1.x), 2) + Math.pow((_arg2.y - _arg1.y), 2))));
}
static function CheckBetweenSita(_arg1:Number, _arg2:Number){
return (false);
}
static function CheckInRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number){
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
_local7 = Math.min(_arg3, _arg5);
_local8 = Math.max(_arg3, _arg5);
_local9 = Math.min(_arg4, _arg6);
_local10 = Math.max(_arg4, _arg6);
return ((((((_local7 < _arg1)) && ((_arg1 < _local8)))) && ((((_local9 < _arg2)) && ((_arg2 < _local10))))));
}
static function GetSitaMirrorX(_arg1:Number){
return ((540 - (_arg1 % 360)));
}
static function GetRandom(_arg1:Number, _arg2:Number):Number{
return (Math.floor(((Math.random() * _arg1) + _arg2)));
}
static function AddArrayData(_arg1:Array, _arg2:Array){
var _local3:uint;
_local3 = 0;
while (_local3 < _arg2.length) {
_arg1.push(_arg2[_local3]);
_local3++;
};
}
static function FormatString(_arg1:uint, _arg2:Number){
var _local3:String;
var _local4:*;
var _local5:uint;
var _local6:Number;
_local3 = "";
_local4 = Math.pow(10, (_arg1 - 1));
_local5 = 0;
while (_local5 < _arg1) {
_local6 = Math.floor((_arg2 / _local4));
_local3 = (_local3 + _local6.toString());
_arg2 = (_arg2 % _local4);
_local4 = (_local4 / 10);
_local5++;
};
return (_local3);
}
static function GetDistance(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
return (Math.sqrt((Math.pow((_arg3 - _arg1), 2) + Math.pow((_arg4 - _arg2), 2))));
}
static function CheckCrossPointToLine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:PointData){
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
_local9 = GetTargetSitaXYB(_arg1, _arg2, _arg4, _arg5);
_local10 = GetTargetSitaXYB(_arg1, _arg2, _arg6, _arg7);
_local11 = Math.abs((_local9 - _local10));
if (_local11 < 180){
if (_local9 > _local10){
_local12 = _local9;
_local9 = _local10;
_local10 = _local12;
};
} else {
if (_local9 < _local10){
_local13 = _local9;
_local9 = _local10;
_local10 = _local13;
};
};
if (CheckBetweenSita(_local9, _local10)){
_arg8.SetValue(0, 0);
return (true);
};
return (false);
}
static function GetTargetRadXY(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
return (Math.atan2((_arg2 - _arg4), (_arg1 - _arg3)));
}
static function GetSitaMirrorY(_arg1:Number){
return ((360 - (_arg1 % 360)));
}
static function GetCosB(_arg1:Number){
return (IF_NUMBER((((_arg1 == 90)) || ((_arg1 == 270))), 0, Math.cos(((_arg1 * Math.PI) / 180))));
}
static function GetBooleanByNumber(_arg1:Number){
return (!((_arg1 == 0)));
}
static function NormalDegree(_arg1:Number){
return (((_arg1 % 360) + (360 % 360)));
}
static function GetTargetSitaXYB(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (((Math.atan2((_arg2 - _arg4), (_arg1 - _arg3)) / Math.PI) * 180));
}
static function GetTargetSitaB(_arg1:Object, _arg2:Object):Number{
return (((Math.atan2((_arg1.y - _arg2.y), (_arg1.x - _arg2.x)) / Math.PI) * 180));
}
static function GetTargetSitaC(_arg1:Object, _arg2:Object):Number{
return (Math.ceil(((Math.atan2((_arg1.y - _arg2.y), (_arg1.x - _arg2.x)) / Math.PI) * 180)));
}
static function IF_NUMBER(_arg1:Boolean, _arg2:Number, _arg3:Number){
if (_arg1){
return (_arg2);
};
return (_arg3);
}
static function GetTargetSitaXYF(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Number{
return (Math.floor(((Math.atan2((_arg2 - _arg4), (_arg1 - _arg3)) / Math.PI) * 180)));
}
static function GetTargetSitaF(_arg1:Object, _arg2:Object):Number{
return (Math.floor(((Math.atan2((_arg1.y - _arg2.y), (_arg1.x - _arg2.x)) / Math.PI) * 180)));
}
static function GetRotX(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){
var _local6:Number;
var _local7:Number;
_local6 = GetDistance(_arg1, _arg2, _arg3, _arg4);
_local7 = (_arg5 + Math2.GetTargetSitaXYB(_arg1, _arg2, _arg3, _arg4));
return ((_arg3 + (GetCosB(_local7) * _local6)));
}
static function GetRotY(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){
var _local6:Number;
var _local7:Number;
_local6 = GetDistance(_arg1, _arg2, _arg3, _arg4);
_local7 = (_arg5 + Math2.GetTargetSitaXYB(_arg1, _arg2, _arg3, _arg4));
return ((_arg4 + (GetSinB(_local7) * _local6)));
}
}
}//package
Section 85
//McBase (McBase)
package {
import flash.display.*;
class McBase extends MovieClip {
private var Img:Sprite;
function SetImageObj(_arg1:Sprite){
DeleteImageAll();
this.addChild(_arg1);
Img = _arg1;
}
function DeleteImageAll(){
var _local1:uint;
var _local2:uint;
_local1 = this.numChildren;
_local2 = 0;
while (_local2 < _local1) {
this.removeChildAt(_local2);
_local2++;
};
}
function SetImage(_arg1:Object){
SetImageObj(new (_arg1));
}
function SetPosition(_arg1:Number, _arg2:Number){
x = _arg1;
y = _arg2;
}
function GetImage(){
return (Img);
}
}
}//package
Section 86
//McGraze (McGraze)
package {
import flash.display.*;
public dynamic class McGraze extends MovieClip {
}
}//package
Section 87
//McPlayerShot1 (McPlayerShot1)
package {
import flash.display.*;
public dynamic class McPlayerShot1 extends MovieClip {
}
}//package
Section 88
//McPlayerShot8 (McPlayerShot8)
package {
import flash.display.*;
public dynamic class McPlayerShot8 extends MovieClip {
}
}//package
Section 89
//MenuBase (MenuBase)
package {
import flash.display.*;
import flash.text.*;
class MenuBase extends McBase {
protected var CSe:SeControl;
protected var FlgPrev:Boolean;
protected var CKey:KeyControl;
protected var ArrItem:Array;
protected var _CursorType:uint;
protected var _Cursor:Sprite;
protected var ArrSelect:Array;
protected var Index:Number;
protected var ItemCount:Number;
protected var _PrevMenu:Object;
protected var KeyCode:Number;
public var FlgNext:Boolean;
public var FlgEnd:Boolean;
function MenuBase(){
ArrItem = new Array();
ArrSelect = new Array();
Index = 0;
ItemCount = 0;
FlgEnd = false;
FlgNext = false;
FlgPrev = false;
CKey = MainValue.CKey;
_CursorType = 0;
CSe = MainValue.CSe;
}
function MainScript(){
KeyCode = -1;
if (CKey.IsKeyOnce(90)){
CSe.SePlay(101, 0.25);
KeyPressEvent(90);
} else {
if (CKey.IsKeyOnce(88)){
CSe.SePlay(102, 0.5);
KeyPressEvent(88);
};
};
if (CKey.IsKeyOnce(38)){
CSe.SePlay(100, 0.5);
SetIndex(-1);
} else {
if (CKey.IsKeyOnce(40)){
CSe.SePlay(100, 0.5);
SetIndex(1);
};
};
EtcKeyEvent();
}
function EtcKeyEvent(){
}
function AddNext(_arg1:Number){
ArrSelect.push(_arg1);
}
function AddItem(_arg1:Sprite){
ArrItem.push(_arg1);
this.addChild(_arg1);
ItemCount++;
}
function GetPrevFlg(){
return (FlgPrev);
}
function GetNextMenu(){
return (ArrSelect[Index]);
}
function AddText(_arg1:TextField){
ArrItem.push(_arg1);
this.addChild(_arg1);
ItemCount++;
}
function GetNextFlg(){
return (FlgNext);
}
function GetEndFlg(){
return (FlgEnd);
}
function SetItem(){
var _local1:Number;
if (_CursorType == 0){
_local1 = 0;
while (_local1 < ItemCount) {
if (_local1 == Index){
ArrItem[_local1].alpha = 1;
} else {
ArrItem[_local1].alpha = 0.5;
};
_local1++;
};
} else {
if (_CursorType == 1){
_Cursor.x = ArrItem[Index].x;
_Cursor.y = ArrItem[Index].y;
_Cursor.width = ArrItem[Index].width;
_Cursor.height = ArrItem[Index].height;
};
};
}
function GetPrevMenu(){
return (_PrevMenu);
}
function NumberScript(_arg1:int){
}
function SetIndex(_arg1:Number){
Index = (Index + _arg1);
if (Index < 0){
Index = (ItemCount - 1);
} else {
if (Index == ItemCount){
Index = 0;
};
};
SetItem();
}
function AddNextMenu(_arg1:Object){
ArrSelect.push(_arg1);
}
function KeyPressEvent(_arg1:Number){
if (_arg1 == 90){
if (typeof(ArrSelect[Index]) == "object"){
FlgNext = true;
} else {
if (typeof(ArrSelect[Index]) == "number"){
if (ArrSelect[Index] == -1){
return;
};
FlgEnd = true;
NumberScript(ArrSelect[Index]);
};
};
} else {
if (_arg1 == 88){
if (_PrevMenu == null){
return;
};
FlgPrev = true;
};
};
SelectEvent(Index);
}
function SetCurcor(_arg1:Sprite){
_Cursor = _arg1;
this.addChild(_Cursor);
}
function GetKeyCode():Number{
return (KeyCode);
}
function SelectEvent(_arg1:int){
}
function AddItemMc(_arg1:MovieClip){
ArrItem.push(_arg1);
ItemCount++;
}
}
}//package
Section 90
//MenuControl (MenuControl)
package {
class MenuControl extends MenuControlBase {
}
}//package
Section 91
//MenuControlBase (MenuControlBase)
package {
class MenuControlBase {
private var ObjStage:Object;
private var NowMenu:Object;
function GetEndFlg(){
return (NowMenu.FlgEnd);
}
function MainScript(){
NowMenu.MainScript();
if (NowMenu.GetNextFlg()){
SetMainMenu(NowMenu.GetNextMenu());
} else {
if (NowMenu.GetPrevFlg()){
SetMainMenu(NowMenu.GetPrevMenu());
} else {
if (NowMenu.GetEndFlg()){
EndMenu();
return (true);
};
};
};
return (false);
}
function GetNextMenu(){
return (NowMenu.GetNextMenu());
}
function SetMainMenu(_arg1:Object){
if (ObjStage.numChildren > 0){
ObjStage.removeChildAt(0);
};
NowMenu = new (_arg1);
ObjStage.addChild(NowMenu);
}
function Remove(){
ObjStage.removeChild(NowMenu);
}
function EndMenu(){
if (ObjStage.numChildren > 0){
ObjStage.removeChildAt(0);
};
}
function GetNextFlg(){
return (NowMenu.FlgNext);
}
function SetStage(_arg1:Object){
ObjStage = _arg1;
}
}
}//package
Section 92
//MoveBase (MoveBase)
package {
import flash.events.*;
class MoveBase extends McBase {
protected var FlgFirstAdd:Boolean;
protected var iMoveCount:int;
protected var FlgEnterFrame:Boolean;
protected var ArrMove:Array;
function MoveBase(_arg1:Boolean=false){
var _local2:Object;
super();
FlgEnterFrame = _arg1;
iMoveCount = 0;
FlgFirstAdd = true;
ArrMove = new Array();
_local2 = Fmove.GetMoveStraight(0, 0, 0, 0);
_local2.SetTarget(this);
ArrMove.push(_local2);
}
function MainScript(){
}
function NextMoveNone(){
}
function GetMoveY(){
return (ArrMove[iMoveCount].GetMoveY());
}
function GetMoveX(){
return (ArrMove[iMoveCount].GetMoveX());
}
function GetMove(_arg1){
return (ArrMove[_arg1]);
}
function SetEnterFrame(){
addEventListener(Event.ENTER_FRAME, EnterFrameScript);
}
function Moving(){
var _local1:Boolean;
if (ArrMove[iMoveCount] != null){
_local1 = ArrMove[iMoveCount].MainScript();
if (_local1 == true){
SetNextMove();
};
} else {
MoveNone();
};
}
function GetMoveArray(){
return (ArrMove);
}
function First(){
rotation = ArrMove[iMoveCount].GetSita();
}
function MoveNone(){
}
function SetImageMove(){
if (ArrMove[iMoveCount].GetImage() != null){
SetImage(ArrMove[iMoveCount].GetImage());
};
}
function SetNextMove(){
if (iMoveCount < (ArrMove.length - 1)){
iMoveCount++;
ArrMove[iMoveCount].First();
SetImageMove();
SetNextMoveOption();
} else {
NextMoveNone();
};
}
function EnterFrameScript(_arg1:Event){
MainScript();
}
function SetNextMoveOption(){
}
function SetLastMove(){
iMoveCount = (ArrMove.length - 2);
SetNextMove();
}
function Move(){
Moving();
}
function AddMove(_arg1:Object){
if (FlgFirstAdd){
FlgFirstAdd = false;
ArrMove[0] = null;
ArrMove = new Array();
};
_arg1.SetTarget(this);
ArrMove.push(_arg1);
}
}
}//package
Section 93
//MoveBound (MoveBound)
package {
class MoveBound extends MoveUtil {
protected var _FlgTop:Boolean;
protected var _FlgLeft:Boolean;
protected var _FlgRight:Boolean;
protected var _FlgDown:Boolean;
protected var _BoundCount:int;
function MoveBound(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:int=0, _arg10:Array=null, _arg11:Array=null){
_Sita = _arg6;
_Spd = _arg7;
_Rot = _arg8;
_MoveCount = _arg9;
_FlgLeft = _arg2;
_FlgRight = _arg3;
_FlgTop = _arg4;
_FlgDown = _arg5;
_BoundCount = _arg1;
_ArrNextImage = _arg10;
_CntNextImage = 0;
_StageData.ChangeSize(0, _arg2, _arg3, _arg4, _arg5);
Set();
_TimeCount = 0;
_MoveTimeCount = 0;
}
override function GetNew(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint){
var _local5:Object;
_local5 = new MoveBound(_BoundCount, _FlgLeft, _FlgRight, _FlgTop, _FlgDown, (_arg1 + _Sita), (_Spd + _arg2), (_Rot + _arg3), _MoveCount, _ArrNextImage);
_local5.SetImage(_ImgObject);
_local5.SetReTarget(_FlgReTarget, _ReTarget);
if (_ArrNextStageData != null){
_local5.SetNextStageData(_ArrNextStageData);
};
return (_local5);
}
override function OutCheck(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
var _local5:Number;
var _local6:Number;
var _local7:int;
var _local8:uint;
_local5 = _Target.x;
_local6 = _Target.y;
_local7 = OutCheckOld(_arg1, _arg2, _arg3, _arg4);
if (_local7 < 0){
if (_BoundCount > 0){
_arg1 = _StageData.Left;
_arg2 = _StageData.Right;
_arg3 = _StageData.Top;
_arg4 = _StageData.Down;
_local8 = 0;
if ((((((_local5 < _arg1)) && (_FlgLeft))) || ((((_local5 > _arg2)) && (_FlgRight))))){
_local8 = 1;
} else {
if ((((((_local6 < _arg3)) && (_FlgTop))) || ((((_local6 > _arg4)) && (_FlgDown))))){
_local8 = 2;
};
};
if (_local8 > 0){
BoundSet(_local8);
return (0);
};
};
};
return (_local7);
}
function BoundSet(_arg1:uint){
_MoveTimeCount = 0;
if (_arg1 == 1){
_Sita = Math2.GetSitaMirrorX(_Sita);
} else {
_Sita = Math2.GetSitaMirrorY(_Sita);
};
Set();
_Target.rotation = _Sita;
_BoundCount--;
_Target.CountReset();
if (((!((_ArrNextImage == null))) && ((_ArrNextImage.length > _CntNextImage)))){
_Target.SetImage(_ArrNextImage[_CntNextImage]);
_CntNextImage++;
};
if (_FlgNextStageData){
if (_CntNextStageData < (_ArrNextStageData.length - 1)){
_CntNextStageData++;
_StageData = _ArrNextStageData[_CntNextStageData];
_OutChecker.SetStageData(_StageData);
};
};
}
override function Set(){
_MoveX = (Math2.GetCosB(_Sita) * _Spd);
_MoveY = (Math2.GetSinB(_Sita) * _Spd);
}
function OutCheckOld(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
return (super.OutCheck(_arg1, _arg2, _arg3, _arg4));
}
override function Moving(){
if (_MoveTimeCount == 0){
_BaseX = _Target.x;
_BaseY = _Target.y;
};
_Target.x = (_Target.x + _MoveX);
_Target.y = (_Target.y + _MoveY);
if (_Rot != 0){
_Target.rotation = (_Target.rotation + _Rot);
};
_TimeCount++;
_MoveTimeCount++;
if ((_MoveTimeCount % 10) == 0){
_Target.x = (_BaseX + (_MoveX * _MoveTimeCount));
_Target.y = (_BaseY + (_MoveY * _MoveTimeCount));
};
}
}
}//package
Section 94
//MoveBoundNext (MoveBoundNext)
package {
class MoveBoundNext extends MoveBound {
protected var _BoundTarget:Object;
function MoveBoundNext(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:int=0, _arg10:Array=null){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10);
}
override function GetNew(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint){
var _local5:Object;
_local5 = new MoveBoundNext(_BoundCount, _FlgLeft, _FlgRight, _FlgTop, _FlgDown, (_arg1 + _Sita), (_Spd + _arg2), _Rot, _MoveCount);
_local5.SetImage(_ImgObject);
_local5.SetReTarget(_FlgReTarget, _ReTarget);
return (_local5);
}
override function BoundSet(_arg1:uint){
_MoveTimeCount = 0;
_FlgNextMove = true;
}
}
}//package
Section 95
//MoveBoundRock (MoveBoundRock)
package {
class MoveBoundRock extends MoveBound {
protected var _BoundTarget:Object;
function MoveBoundRock(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Object, _arg7:Number, _arg8:Number, _arg9:Number, _arg10:int=0, _arg11:Array=null){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg7, _arg8, _arg9, _arg10, _arg11);
_BoundTarget = _arg6;
}
override function GetNew(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint){
var _local5:Object;
_local5 = new MoveBoundRock(_BoundCount, _FlgLeft, _FlgRight, _FlgTop, _FlgDown, _Target, (_arg1 + _Sita), _Spd, _Rot, _MoveCount);
_local5.SetImage(_ImgObject);
_local5.SetReTarget(_FlgReTarget, _ReTarget);
return (_local5);
}
override function BoundSet(_arg1:uint){
_Sita = Math2.GetTargetSitaB(_BoundTarget, _Target);
Set();
_Target.rotation = _Sita;
_BoundCount--;
_Target.CountReset();
if (((!((_ArrNextImage == null))) && ((_ArrNextImage.length > _CntNextImage)))){
_Target.SetImage(_ArrNextImage[_CntNextImage]);
_CntNextImage++;
};
}
}
}//package
Section 96
//MoveBoundRockMove (MoveBoundRockMove)
package {
class MoveBoundRockMove extends MoveBound {
protected var _RockSpd:Number;
protected var _RockSita:Number;
protected var _RockRot:Number;
function MoveBoundRockMove(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number, _arg10:Number, _arg11:Number, _arg12:int=0, _arg13:Array=null){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg9, _arg10, _arg11, _arg12, _arg13);
_RockSita = _arg6;
_RockSpd = _arg7;
_RockRot = _arg8;
}
override function BoundSet(_arg1:uint){
_Sita = _RockSita;
_Spd = _RockSpd;
_Rot = _RockRot;
Set();
_Target.rotation = _Sita;
_BoundCount--;
_Target.CountReset();
if (((!((_ArrNextImage == null))) && ((_ArrNextImage.length > _CntNextImage)))){
_Target.SetImage(_ArrNextImage[_CntNextImage]);
_CntNextImage++;
};
_MoveTimeCount = 0;
}
override function GetNew(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint){
var _local5:Object;
_local5 = new MoveBoundRockMove(_BoundCount, _FlgLeft, _FlgRight, _FlgTop, _FlgDown, _RockSita, _RockSpd, _RockRot, (_arg1 + _Sita), (_Spd + _arg2), _Rot, _MoveCount);
_local5.SetImage(_ImgObject);
_local5.SetReTarget(_FlgReTarget, _ReTarget);
return (_local5);
}
}
}//package
Section 97
//MoveChange (MoveChange)
package {
class MoveChange extends MoveUtil {
protected var _LimitValue:Number;
protected var _LimSpd:Number;
protected var _ChangeSpd:Number;
protected var _FlgAccel:Boolean;
protected var _LimX:Number;
protected var _ChangeValue:Number;
protected var _LimY:Number;
protected var _FlgChange:Boolean;
protected var _ChangeMoveX:Number;
protected var _ChangeMoveY:Number;
function MoveChange(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:int=0){
_Sita = _arg3;
_Spd = _arg4;
_Rot = _arg5;
_MoveCount = _arg6;
_ChangeValue = _arg1;
_LimitValue = _arg2;
Set();
_TimeCount = 0;
}
override function Set(){
_MoveX = (Math2.GetCosB(_Sita) * _Spd);
_MoveY = (Math2.GetSinB(_Sita) * _Spd);
_ChangeMoveX = _MoveX;
_ChangeMoveY = _MoveY;
_ChangeSpd = _Spd;
_LimSpd = (_Spd * _LimitValue);
_FlgChange = true;
_FlgAccel = false;
_LimX = (_MoveX * _LimitValue);
_LimY = (_MoveY * _LimitValue);
if (_ChangeValue > 1){
_FlgAccel = true;
_MoveX = _LimX;
_MoveY = _LimY;
};
}
override function Moving(){
_Target.x = (_Target.x + _ChangeMoveX);
_Target.y = (_Target.y + _ChangeMoveY);
if (_Rot != 0){
_Target.rotation = (_Target.rotation + _Rot);
};
_TimeCount++;
if (_FlgChange){
_ChangeMoveX = (_ChangeMoveX * _ChangeValue);
_ChangeMoveY = (_ChangeMoveY * _ChangeValue);
_ChangeSpd = (_ChangeSpd * _ChangeValue);
if (_FlgAccel){
if (_ChangeSpd > _LimSpd){
_FlgChange = false;
_ChangeMoveX = _LimX;
_ChangeMoveY = _LimY;
_Target.CountReset();
};
} else {
if (_ChangeSpd < _LimSpd){
_FlgChange = false;
_ChangeMoveX = _LimX;
_ChangeMoveY = _LimY;
_MoveX = _ChangeMoveX;
_MoveY = _ChangeMoveY;
_Target.CountReset();
};
};
};
}
override function GetNew(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint){
var _local5:Object;
_local5 = new MoveChange(_ChangeValue, _LimitValue, (_arg1 + _Sita), (_Spd + _arg2), _Rot, _MoveCount);
_local5.SetImage(_ImgObject);
_local5.SetReTarget(_FlgReTarget, _ReTarget);
return (_local5);
}
}
}//package
Section 98
//MoveCurve (MoveCurve)
package {
class MoveCurve extends MoveUtil {
protected var _CurveMoveX:Number;
protected var _CurveMoveY:Number;
protected var _CurveSita:Number;
protected var _CurveTime:int;
protected var _CurveRot:Number;
function MoveCurve(_arg1:Number, _arg2:int, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:int=0){
_Sita = _arg3;
_Spd = _arg4;
_Rot = _arg5;
_MoveCount = _arg6;
_CurveSita = _Sita;
_CurveRot = _arg1;
_CurveTime = _arg2;
_CurveRot = ((_CurveRot + 360) % 360);
Set();
_TimeCount = 0;
}
override function GetNew(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint){
var _local5:Object;
_local5 = new MoveCurve(_CurveRot, _CurveTime, (_arg1 + _Sita), (_Spd + _arg2), _Rot, _MoveCount);
_local5.SetImage(_ImgObject);
_local5.SetReTarget(_FlgReTarget, _ReTarget);
return (_local5);
}
override function OutCheck(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
if (_TimeCount < _CurveTime){
return ((_CurveTime - _TimeCount));
};
return (super.OutCheck(_arg1, _arg2, _arg3, _arg4));
}
override function Set(){
var _local1:Number;
var _local2:Number;
_CurveMoveX = (Math2.GetCosB(_CurveSita) * _Spd);
_CurveMoveY = (Math2.GetSinB(_CurveSita) * _Spd);
if (_CurveSita < 90){
_local1 = _Spd;
_local2 = _Spd;
} else {
if (_CurveSita < 180){
_local1 = -(_Spd);
_local2 = _Spd;
} else {
if (_CurveSita < 270){
_local1 = -(_Spd);
_local2 = -(_Spd);
} else {
_local1 = _Spd;
_local2 = -(_Spd);
};
};
};
if (((!((_local1 == _MoveX))) || (!((_local2 == _MoveY))))){
if (_Target != null){
_Target.CountReset();
};
};
_MoveX = _local1;
_MoveY = _local2;
}
override function Moving(){
_Target.x = (_Target.x + _CurveMoveX);
_Target.y = (_Target.y + _CurveMoveY);
if (_Rot != 0){
_Target.rotation = (_Target.rotation + _Rot);
};
if (_TimeCount < _CurveTime){
_Target.rotation = (_Target.rotation + _CurveRot);
_CurveSita = ((_CurveSita + _CurveRot) % 360);
Set();
};
_TimeCount++;
}
}
}//package
Section 99
//MoveNear (MoveNear)
package {
class MoveNear extends MoveUtil {
protected var _NearSpd:Number;
protected var _TargetX:Number;
protected var _TargetY:Number;
function MoveNear(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:int=0){
_Sita = _arg4;
_Spd = _arg5;
_Rot = _arg6;
_MoveCount = _arg7;
_TargetX = _arg1;
_TargetY = _arg2;
_NearSpd = _arg3;
_TimeCount = 0;
}
override function GetNew(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint){
var _local5:Object;
_local5 = new MoveNear(_TargetX, _TargetY, _NearSpd, (_arg1 + _Sita), _Spd, _Rot, _MoveCount);
_local5.SetImage(_ImgObject);
_local5.SetReTarget(_FlgReTarget, _ReTarget);
return (_local5);
}
override function Set(){
_MoveX = ((_TargetX - _Target.x) / _NearSpd);
_MoveY = ((_TargetY - _Target.y) / _NearSpd);
}
override function Moving(){
Set();
_Target.x = (_Target.x + _MoveX);
_Target.y = (_Target.y + _MoveY);
if (_Rot != 0){
_Target.rotation = (_Target.rotation + _Rot);
};
_TimeCount++;
}
}
}//package
Section 100
//MoveNearTarget (MoveNearTarget)
package {
class MoveNearTarget extends MoveNear {
protected var _NearTarget:Object;
function MoveNearTarget(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:int=0){
super(_arg1.x, _arg1.y, _arg2, _arg3, _arg4, _arg5, _arg6);
_NearTarget = _arg1;
_TimeCount = 0;
}
override function GetNew(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint){
var _local5:Object;
_local5 = new MoveNearTarget(_NearTarget, _NearSpd, (_arg1 + _Sita), _Spd, _Rot, _MoveCount);
_local5.SetImage(_ImgObject);
_local5.SetReTarget(_FlgReTarget, _ReTarget);
return (_local5);
}
override function Set(){
_TargetX = _NearTarget.x;
_TargetY = _NearTarget.y;
if (_NearSpd != 0){
_MoveX = ((_TargetX - _Target.x) / _NearSpd);
_MoveY = ((_TargetY - _Target.y) / _NearSpd);
} else {
_MoveX = 0;
_MoveY = 0;
};
}
}
}//package
Section 101
//MoveNearTargetXY (MoveNearTargetXY)
package {
class MoveNearTargetXY extends MoveUtil {
protected var _NearSpd:Number;
protected var _TargetNear:Object;
protected var _NearY:Number;
protected var _NearX:Number;
function MoveNearTargetXY(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:int=0){
_Sita = _arg5;
_Spd = _arg6;
_Rot = _arg7;
_MoveCount = _arg8;
_TargetNear = _arg1;
_NearSpd = _arg2;
_NearX = _arg3;
_NearY = _arg4;
}
override function Moving(){
var _local1:Number;
var _local2:Number;
_local1 = (_TargetNear.x + _NearX);
_local2 = (_TargetNear.y + _NearY);
if (_NearSpd != 0){
_Target.x = (_Target.x + ((_local1 - _Target.x) / _NearSpd));
_Target.y = (_Target.y + ((_local2 - _Target.y) / _NearSpd));
};
if (_Rot != 0){
_Target.rotation = (_Target.rotation + _Rot);
};
_TimeCount++;
}
function ResetData(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number){
_TargetNear = _arg1;
_NearSpd = _arg2;
_NearX = _arg3;
_NearY = _arg4;
}
}
}//package
Section 102
//MoveReverse (MoveReverse)
package {
class MoveReverse extends MoveBound {
function MoveReverse(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:int=0, _arg10:Array=null){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10);
}
override function GetNew(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint){
var _local5:Object;
_local5 = new MoveStraight((_arg1 + _Sita), _Spd, _Rot, _MoveCount);
_local5.SetImage(_ImgObject);
_local5.SetReTarget(_FlgReTarget, _ReTarget);
return (_local5);
}
override function BoundSet(_arg1:uint){
_Sita = ((_Sita + 180) % 360);
Set();
_Target.rotation = _Sita;
_BoundCount--;
_Target.CountReset();
if (((!((_ArrNextImage == null))) && ((_ArrNextImage.length > _CntNextImage)))){
_Target.SetImage(_ArrNextImage[_CntNextImage]);
_CntNextImage++;
};
}
}
}//package
Section 103
//MoveScroll (MoveScroll)
package {
class MoveScroll extends MoveBound {
function MoveScroll(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:Boolean, _arg5:Boolean, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:int=0, _arg10:Array=null){
super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10);
}
override function GetNew(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint){
var _local5:Object;
_local5 = new MoveScroll(_BoundCount, _FlgLeft, _FlgRight, _FlgTop, _FlgDown, (_arg1 + _Sita), (_Spd + _arg2), _Rot, _MoveCount);
_local5.SetImage(_ImgObject);
_local5.SetReTarget(_FlgReTarget, _ReTarget);
return (_local5);
}
override function OutCheck(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
var _local5:Number;
var _local6:Number;
var _local7:int;
var _local8:uint;
_local5 = _Target.x;
_local6 = _Target.y;
_local7 = super.OutCheckOld(_arg1, _arg2, _arg3, _arg4);
if (_local7 < 0){
if (_BoundCount > 0){
_arg1 = _StageData.Left;
_arg2 = _StageData.Right;
_arg3 = _StageData.Top;
_arg4 = _StageData.Down;
_local8 = 0;
if ((((((_local5 < _arg1)) && (_FlgLeft))) || ((((_local5 > _arg2)) && (_FlgRight))))){
_local8 = 1;
} else {
if ((((((_local6 < _arg3)) && (_FlgTop))) || ((((_local6 > _arg4)) && (_FlgDown))))){
_local8 = 2;
};
};
if (_local8 > 0){
if (_local5 < _arg1){
_Target.x = (_arg2 - (_arg1 - _local5));
} else {
if (_local5 > _arg2){
_Target.x = (_arg1 + (_local5 - _arg2));
} else {
if (_local6 < _arg3){
_Target.y = (_arg4 - (_arg3 - _local6));
} else {
if (_local6 > _arg4){
_Target.y = (_arg3 + (_local6 - _arg4));
};
};
};
};
_BoundCount--;
_Target.CountReset();
_MoveTimeCount = 0;
if (((!((_ArrNextImage == null))) && ((_ArrNextImage.length > _CntNextImage)))){
_Target.SetImage(_ArrNextImage[_CntNextImage]);
_CntNextImage++;
};
return (0);
};
};
};
return (_local7);
}
}
}//package
Section 104
//MoveStraight (MoveStraight)
package {
class MoveStraight extends MoveUtil {
function MoveStraight(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int=0){
_Sita = _arg1;
_Spd = _arg2;
_Rot = _arg3;
_MoveCount = _arg4;
Set();
_TimeCount = 0;
_MoveTimeCount = 0;
}
override function GetNew(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint){
var _local5:Object;
_local5 = new MoveStraight((_arg1 + _Sita), (_arg2 + _Spd), _Rot, _MoveCount);
_local5.SetImage(_ImgObject);
_local5.SetReTarget(_FlgReTarget, _ReTarget);
return (_local5);
}
override function Set(){
_MoveX = (Math2.GetCosB(_Sita) * _Spd);
_MoveY = (Math2.GetSinB(_Sita) * _Spd);
}
override function Moving(){
if (_MoveTimeCount == 0){
_BaseX = _Target.x;
_BaseY = _Target.y;
};
_Target.x = (_Target.x + _MoveX);
_Target.y = (_Target.y + _MoveY);
if (_Rot != 0){
_Target.rotation = (_Target.rotation + _Rot);
};
_TimeCount++;
_MoveTimeCount++;
if ((_MoveTimeCount % 10) == 0){
_Target.x = (_BaseX + (_MoveX * _MoveTimeCount));
_Target.y = (_BaseY + (_MoveY * _MoveTimeCount));
};
}
}
}//package
Section 105
//MoveTargetRotation (MoveTargetRotation)
package {
class MoveTargetRotation extends MoveUtil {
protected var _TargetSita:Number;
protected var _TargetRange:Number;
protected var _RotationTarget:Object;
protected var _TargetRot:Number;
function MoveTargetRotation(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:int=0){
_Sita = _arg5;
_Spd = _arg6;
_Rot = _arg7;
_MoveCount = _arg8;
_RotationTarget = _arg1;
_TargetSita = _arg2;
_TargetRot = _arg3;
_TargetRange = _arg4;
}
override function Moving(){
_Target.x = (_RotationTarget.x + (Math2.GetCosB(_TargetSita) * _TargetRange));
_Target.y = (_RotationTarget.y + (Math2.GetSinB(_TargetSita) * _TargetRange));
_TargetSita = (_TargetSita + _TargetRot);
if (_Rot != 0){
_Target.rotation = (_Target.rotation + _Rot);
};
_TimeCount++;
}
}
}//package
Section 106
//MoveUtil (MoveUtil)
package {
class MoveUtil {
protected var _BaseX:Number;
protected var _BaseY:Number;
protected var _FlgNextMove:Boolean;
protected var _HitRangeX:Number;
protected var _MoveX:Number;
protected var _MoveY:Number;
protected var _TimeCount:int;
protected var _MoveCount:int;
protected var _StageData:StageData;
protected var _ReTarget:Object;
protected var _CntNextStageData:uint;
protected var _HitRangeY:Number;
protected var _ArrNextStageData:Array;
protected var _FlgNextStageData:Boolean;
protected var _Sita:Number;
protected var _ImgObject:Object;
protected var _CntNextImage:uint;
protected var _ArrNextImage:Array;
protected var _Spd:Number;
protected var _Target:Object;
protected var _MoveTimeCount:uint;
protected var _FlgReTarget:Boolean;
protected var _FlgHitCheck:Boolean;
protected var _HitChecker:HitChecker;
protected var _GrazeRate:Number;
protected var _OutChecker:OutChecker;
protected var _Rot:Number;
protected var _FlgOutCheck:Boolean;
function MoveUtil(){
_HitRangeX = 4;
_HitRangeY = 4;
_CntNextImage = 0;
_StageData = MainValue._StageData.GetNew();
_FlgOutCheck = true;
_FlgHitCheck = true;
_OutChecker = new OutChecker(0, 0);
_HitChecker = new HitChecker(0, 0);
_OutChecker.SetStageData(_StageData);
_FlgNextMove = false;
_FlgNextStageData = false;
_ArrNextStageData = new Array();
_CntNextStageData = 0;
}
function SetTarget(_arg1:Object){
_Target = _arg1;
}
function GetNew(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint){
return (null);
}
function MainScript(){
Moving();
if (_FlgNextMove){
return (true);
};
return (CheckTime());
}
function GetMoveX(){
return (_MoveX);
}
function SetMoveCheck(_arg1:Boolean=true, _arg2:Boolean=true){
_FlgHitCheck = _arg1;
_FlgOutCheck = _arg2;
}
function GetNextImage(){
return (_ArrNextImage);
}
function Reset(_arg1:Number, _arg2:Number, _arg3:Number, _arg4){
_Sita = _arg1;
_Spd = _arg2;
_Rot = _arg3;
_MoveCount = _arg4;
Set();
}
function GetSita(){
return (_Sita);
}
function GetMoveY(){
return (_MoveY);
}
function GrazeCheck(_arg1:Object, _arg2:Number, _arg3:Number){
var _local4:Number;
var _local5:Number;
var _local6:Number;
var _local7:Number;
_local4 = Math.abs((_arg1.x - _Target.x));
_local5 = Math.abs((_arg1.y - _Target.y));
_local6 = (_GrazeRate * 4);
if ((((_local4 < _local6)) && ((_local5 < _local6)))){
return (-1);
};
_local7 = Math.floor(Math.min((_local4 / _arg2), (_local5 / _arg3)));
if (_local7 < 0){
_local7 = 1000;
};
return (_local7);
}
function First(){
_BaseX = _Target.x;
_BaseY = _Target.y;
if (_FlgReTarget){
_Sita = Math2.GetTargetSitaB(_ReTarget, _Target);
Set();
};
}
function SetReTarget(_arg1:Boolean, _arg2:Object){
_FlgReTarget = _arg1;
_ReTarget = _arg2;
}
function SetImage(_arg1:Object){
_ImgObject = _arg1;
}
function SetHitRange(_arg1:Number, _arg2:Number, _arg3:Number){
_HitRangeX = _arg1;
_HitRangeY = _arg2;
_GrazeRate = _arg3;
}
function Set(){
}
function GetImage(){
return (_ImgObject);
}
function SetNextImage(_arg1:Array){
_ArrNextImage = _arg1;
}
function CheckTime(){
if (_MoveCount > 0){
_MoveCount--;
if (_MoveCount == 0){
return (true);
};
} else {
return (false);
};
}
function HitCheck(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){
_HitChecker.SetMove(_MoveX, _MoveY);
_HitChecker.SetTargetMove(_arg2, _arg3);
if (_HitChecker.HitCheck(_arg1, _Target.x, _Target.y, _arg4, _arg5)){
return (-1);
};
return (_HitChecker.GetCount());
}
function GetTarget(){
return (_Target);
}
function Moving(){
}
function SetNextStageData(_arg1:Array){
var _local2:uint;
if (_arg1.length > 0){
_local2 = 0;
while (_local2 < _arg1.length) {
_ArrNextStageData[_local2] = _arg1[_local2].GetNew();
_local2++;
};
_FlgNextStageData = true;
_StageData = _ArrNextStageData[_CntNextStageData];
_OutChecker.SetStageData(_StageData);
};
}
function OutCheck(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
if (_FlgOutCheck){
_OutChecker.SetMove(_MoveX, _MoveY);
if (_OutChecker.OutCheck(_Target.x, _Target.y, _arg1, _arg2, _arg3, _arg4) == true){
return (-1);
};
return (_OutChecker.GetCount());
};
return (1000);
}
}
}//package
Section 107
//NoSound (NoSound)
package {
import flash.media.*;
public dynamic class NoSound extends Sound {
}
}//package
Section 108
//Option (Option)
package {
class Option extends MoveBase {
protected var CKey:KeyControl;
protected var NearX2:Number;
protected var NearX1:Number;
protected var NearY2:Number;
protected var Target2:Object;
protected var Target1:Object;
protected var FlgShift:Boolean;
protected var NearSpd1:Number;
protected var NearSpd2:Number;
protected var NearY1:Number;
function Option(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null, _arg6:Number=0, _arg7:Number=0, _arg8:Number=0){
var _local9:Object;
super();
Target1 = _arg1;
NearSpd1 = _arg2;
NearX1 = _arg3;
NearY1 = _arg4;
Target2 = _arg5;
NearSpd2 = _arg6;
NearX2 = _arg7;
NearY2 = _arg8;
CKey = MainValue.CKey;
_local9 = Fmove.GetMoveNearTargetXY(_arg1, _arg2, _arg3, _arg4, 0, 0, 6, 0);
AddMove(_local9);
FlgShift = false;
}
function PlayerMove(_arg1:Number, _arg2:Number){
x = (x + _arg1);
y = (y + _arg2);
}
override function Move(){
if (CKey.IsKeyStatus(16) != FlgShift){
FlgShift = CKey.IsKeyStatus(16);
if (FlgShift == false){
ArrMove[iMoveCount].ResetData(Target1, NearSpd1, NearX1, NearY1);
} else {
ArrMove[iMoveCount].ResetData(Target2, NearSpd2, NearX2, NearY2);
};
};
super.Move();
}
}
}//package
Section 109
//Option1 (Option1)
package {
import flash.display.*;
public dynamic class Option1 extends MovieClip {
}
}//package
Section 110
//OptionMenu (OptionMenu)
package {
import flash.display.*;
public class OptionMenu extends MenuBase {
public var Item9:MovieClip;
public var Item1:MovieClip;
public var Item4:MovieClip;
public var Item5:MovieClip;
public var Item2:MovieClip;
public var Item3:MovieClip;
public function OptionMenu(){
AddItemMc(this.Item1);
AddItemMc(this.Item2);
AddItemMc(this.Item3);
AddItemMc(this.Item4);
AddItemMc(this.Item5);
AddItemMc(this.Item9);
AddNextMenu(-1);
AddNextMenu(-1);
AddNextMenu(-1);
AddNextMenu(-1);
AddNextMenu(-1);
AddNextMenu(MainMenu);
_PrevMenu = MainMenu;
SetItem();
}
override function EtcKeyEvent(){
if (CKey.IsKeyOnce(37)){
} else {
if (CKey.IsKeyOnce(39)){
};
};
}
override function SelectEvent(_arg1:int){
}
}
}//package
Section 111
//OutChecker (OutChecker)
package {
class OutChecker {
protected var _MoveX:Number;
protected var _MoveY:Number;
protected var _StageData:StageData;
protected var _HitCount:int;
function OutChecker(_arg1:Number, _arg2:Number){
SetMove(_arg1, _arg2);
_HitCount = 0;
}
function GetCount(){
var _local1:int;
if (_HitCount > 600){
_HitCount = 600;
};
_local1 = _HitCount;
_HitCount = 0;
return (_local1);
}
function SetMove(_arg1:Number, _arg2:Number){
_MoveX = _arg1;
_MoveY = _arg2;
}
function SetStageData(_arg1:StageData){
_StageData = _arg1;
}
function OutCheck(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number){
var _local7:int;
var _local8:int;
_arg3 = _StageData.Left;
_arg4 = _StageData.Right;
_arg5 = _StageData.Top;
_arg6 = _StageData.Down;
if (_MoveX < 0){
_local7 = Math.floor(((_arg3 - _arg1) / _MoveX));
} else {
if (_MoveX > 0){
_local7 = Math.floor(((_arg4 - _arg1) / _MoveX));
} else {
_local7 = 1000;
};
};
if (_MoveY < 0){
_local8 = Math.floor(((_arg5 - _arg2) / _MoveY));
} else {
if (_MoveY > 0){
_local8 = Math.floor(((_arg6 - _arg2) / _MoveY));
} else {
_local8 = 1000;
};
};
_HitCount = Math.min(_local7, _local8);
if (_HitCount < 0){
return (true);
};
return (false);
}
}
}//package
Section 112
//PauseMenu (PauseMenu)
package {
import flash.display.*;
public class PauseMenu extends MenuBase {
public var Item2:MovieClip;
public var Item1:MovieClip;
public function PauseMenu(){
AddItemMc(this.Item1);
AddItemMc(this.Item2);
AddNextMenu(0);
AddNextMenu(0);
SetItem();
}
override function SelectEvent(_arg1:int){
if (_arg1 == 1){
MainValue._FlgReturnTitle = true;
};
}
}
}//package
Section 113
//PlayerImgMarisa (PlayerImgMarisa)
package {
import flash.display.*;
public dynamic class PlayerImgMarisa extends MovieClip {
}
}//package
Section 114
//PlayerScript (PlayerScript)
package {
public class PlayerScript extends PlayerScriptBase {
public function PlayerScript(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
Speed = MainValue.PlayerSpeed;
_StageData = MainValue._StageData;
ShotCount = 0;
ShotWait = 3;
CKey = MainValue.CKey;
FlgBomb = false;
BombCount = 0;
FlgDead = false;
DeadCount = 0;
ShotType = MainValue.PlayerShotType;
ArrOption = new Array();
SetPlayerOption();
SetPower(MainValue.FirstPower);
}
function OptionShot(){
var _local1:uint;
if ((((ShotType == 0)) || ((ShotType == 7)))){
_local1 = 0;
while (_local1 < ArrOption.length) {
SingleShot(ArrOption[_local1].x, (ArrOption[_local1].y - 15));
_local1++;
};
};
}
function SetOption(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object, _arg6:Number, _arg7:Number, _arg8:Number){
var _local9:Option;
_local9 = new Option(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8);
_local9.SetImage(Option1);
_local9.x = x;
_local9.y = y;
_local9.First();
MainValue.CharaStage.addChild(_local9);
ArrOption.push(_local9);
}
function GetItem(_arg1:Object){
var _local2:int;
_local2 = _arg1.GetItemType();
if (_local2 == 1){
SetPower(5);
} else {
if (_local2 == 2){
SetPower(50);
} else {
if (_local2 == 3){
MainValue.ScorePoint++;
MainValue._PlayInformation.SetScorePoint(MainValue.ScorePoint);
};
};
};
}
function SingleShot(_arg1:Number, _arg2:Number, _arg3:Number=270, _arg4:Number=10, _arg5:uint=0){
Fps.SetBasePosition(_arg1, _arg2, 0, 0);
Fps.SetMoveBase(_arg3, _arg4, 0, 0);
Fps.SetShotNumber(_arg5);
Fps.Shot();
}
function Hit(_arg1:Object){
if (((((FlgBomb) || (FlgDead))) || (FlgFirst))){
return;
};
Ec.PlayerDead(x, y);
FlgDead = true;
DeadCount = 15;
}
override function PlayerShot(){
var _local1:int;
Fps.SetShotType(ShotType);
_local1 = MainValue.ShotPower;
if (ShotType == 0){
SingleShot((x - 10), (y - 15));
SingleShot((x + 10), (y - 15));
OptionShot();
if (_local1 == 500){
SingleShot((x - 20), (y - 15), 280);
SingleShot((x + 20), (y - 15), 260);
};
} else {
if (ShotType == 5){
SingleShot((x - 10), (y - 15));
SingleShot((x + 10), (y - 15));
OptionShot();
if (_local1 == 500){
SingleShot((x - 20), (y - 15), 280);
SingleShot((x + 20), (y - 15), 260);
};
} else {
if (ShotType == 7){
SingleShot((x - 10), (y - 15), 260);
SingleShot((x + 0), (y - 15), 270);
SingleShot((x + 10), (y - 15), 280);
OptionShot();
};
};
};
}
function SetPower(_arg1:int){
var _local2:int;
_local2 = ShotPower;
ShotPower = (ShotPower + _arg1);
ShotPower = Math2.IF_NUMBER((ShotPower < 0), 0, ShotPower);
ShotPower = Math2.IF_NUMBER((ShotPower > 500), 500, ShotPower);
MainValue._PlayInformation.SetShotPower(ShotPower);
if (Math.floor((_local2 / 100)) != Math.floor((ShotPower / 100))){
SetPlayerOption();
};
}
function SetPlayerOption(){
var _local1:uint;
_local1 = 0;
while (_local1 < ArrOption.length) {
if (ArrOption[_local1] != null){
MainValue.CharaStage.removeChild(ArrOption[_local1]);
};
_local1++;
};
ArrOption = new Array();
if (ShotType == 0){
if (ShotPower < 100){
} else {
if (ShotPower < 200){
SetOption(this, 3, 0, -15, this, 3, 0, -15);
} else {
if (ShotPower < 300){
SetOption(this, 3, 15, 10, this, 3, 5, -15);
SetOption(this, 3, -15, 10, this, 3, -5, -15);
} else {
if (ShotPower < 400){
SetOption(this, 3, 0, -15, this, 3, 0, -15);
SetOption(this, 3, 15, 10, this, 3, 5, -15);
SetOption(this, 3, -15, 10, this, 3, -5, -15);
} else {
if (ShotPower <= 500){
SetOption(this, 3, 15, 10, this, 3, 5, -15);
SetOption(this, 3, -15, 10, this, 3, -5, -15);
SetOption(this, 3, 25, 15, this, 3, 10, -5);
SetOption(this, 3, -25, 15, this, 3, -10, -5);
};
};
};
};
};
} else {
if (ShotType == 5){
if (ShotPower < 100){
} else {
if (ShotPower < 200){
SetOption(this, 3, 0, -15, this, 0, 0, -15);
} else {
if (ShotPower < 300){
SetOption(this, 3, 15, 10, this, 0, 5, -15);
SetOption(this, 3, -15, 10, this, 0, -5, -15);
} else {
if (ShotPower < 400){
SetOption(this, 3, 0, -15, this, 0, 0, -15);
SetOption(this, 3, 15, 10, this, 0, 5, -15);
SetOption(this, 3, -15, 10, this, 0, -5, -15);
} else {
if (ShotPower <= 500){
SetOption(this, 3, 15, 10, this, 0, 5, -15);
SetOption(this, 3, -15, 10, this, 0, -5, -15);
SetOption(this, 3, 25, 15, this, 0, 10, -5);
SetOption(this, 3, -25, 15, this, 0, -10, -5);
};
};
};
};
};
} else {
if (ShotType == 7){
if (ShotPower < 100){
} else {
if (ShotPower < 200){
SetOption(this, 3, 0, -15, this, 3, 0, -15);
} else {
if (ShotPower < 300){
SetOption(this, 3, 30, 10, this, 3, 15, -15);
SetOption(this, 3, -30, 10, this, 3, -15, -15);
} else {
if (ShotPower < 400){
SetOption(this, 3, 0, -15, this, 3, 0, -15);
SetOption(this, 3, 30, 10, this, 3, 15, -15);
SetOption(this, 3, -30, 10, this, 3, -15, -15);
} else {
if (ShotPower <= 500){
SetOption(this, 3, 30, 10, this, 3, 15, -15);
SetOption(this, 3, -30, 10, this, 3, -15, -15);
SetOption(this, 3, 50, 15, this, 3, 20, -5);
SetOption(this, 3, -50, 15, this, 3, -20, -5);
};
};
};
};
};
};
};
};
}
}
}//package
Section 115
//PlayerScriptBase (PlayerScriptBase)
package {
class PlayerScriptBase extends McBase {
protected var CSe:SeControl;
protected var ShotPower:int;// = 0
protected var DeadCount:int;
protected var ShotCount:Number;
protected var CKey:KeyControl;
protected var _StageData:StageData;
protected var Speed:Number;
protected var ArrOption:Array;
protected var FlgDead:Boolean;
protected var FirstCount:int;
protected var Attack:Number;// = 1
protected var ShotType:uint;// = 0
protected var BombCount:int;
protected var FlgBomb:Boolean;
protected var MoveX:Number;
protected var MoveY:Number;
protected var ShotWait:Number;
protected var FlgMove:Boolean;// = true
protected var FlgShot:Boolean;// = true
protected var FlgFirst:Boolean;
function PlayerScriptBase(_arg1:Number, _arg2:Number){
FlgShot = true;
FlgMove = true;
Attack = 1;
ShotType = 0;
ShotPower = 0;
super();
SetPosition(_arg1, _arg2);
CSe = MainValue.CSe;
}
function Move(){
Moving();
}
function GetMoveY(){
return (Speed);
}
function GetMoveX(){
return (Speed);
}
function MainScript(){
if (FlgDead){
DeadScript();
return;
};
ShotScript();
Move();
OptionScript();
BombScript();
if (FlgFirst){
if (--FirstCount == 0){
FlgFirst = false;
};
};
}
function BombScript(){
if (BombCount == 0){
if ((((FlgBomb == false)) && (CKey.IsKeyOnce(88)))){
Ec.Bomb(x, y);
FlgBomb = true;
BombCount = 160;
};
} else {
BombCount--;
if (BombCount == 0){
FlgBomb = false;
};
};
}
function Moving(){
var _local1:Number;
var _local2:Number;
if (FlgMove == false){
return;
};
_local1 = 0;
_local2 = 0;
if (CKey.IsKeyStatus(38)){
_local2 = -(Speed);
} else {
if (CKey.IsKeyStatus(40)){
_local2 = Speed;
};
};
if (CKey.IsKeyStatus(37)){
_local1 = -(Speed);
} else {
if (CKey.IsKeyStatus(39)){
_local1 = Speed;
};
};
if (CKey.IsKeyStatus(16)){
_local1 = (_local1 / 2);
_local2 = (_local2 / 2);
};
x = (x + _local1);
y = (y + _local2);
if (x < _StageData.Left){
x = _StageData.Left;
};
if (x > _StageData.Right){
x = _StageData.Right;
};
if (y < _StageData.Top){
y = _StageData.Top;
};
if (y > _StageData.Down){
y = _StageData.Down;
};
MoveX = _local1;
MoveY = _local2;
}
function DeadScript(){
if (CKey.IsKeyOnce(88)){
FlgDead = false;
DeadCount = 0;
Ec.Bomb(x, y);
FlgBomb = true;
BombCount = 160;
} else {
if (DeadCount-- == 0){
Dead();
};
};
}
function Dead(){
FlgDead = false;
DeadCount = 0;
MainValue.ArrEnemyShot.RemoveAll();
x = _StageData.CenterX;
y = (_StageData.Down - 30);
FlgFirst = true;
FirstCount = 120;
if (MainValue.CBattle != null){
MainValue.CBattle.PlayerDead();
};
}
function ShotScript(){
if (FlgShot == false){
return;
};
if (CKey.IsKeyStatus(90)){
if (ShotCount == 0){
CSe.SePlay(0, 0.25);
PlayerShot();
ShotCount = ShotWait;
};
};
if (ShotCount > 0){
ShotCount--;
};
}
function PlayerShot(){
}
function GetSpeed(){
return (Speed);
}
function SetFlg(_arg1:Boolean, _arg2:Boolean){
FlgShot = _arg1;
FlgMove = _arg2;
}
function OptionScript(){
var _local1:uint;
_local1 = 0;
while (_local1 < ArrOption.length) {
if (ShotType != 5){
ArrOption[_local1].PlayerMove(MoveX, MoveY);
};
ArrOption[_local1].Move();
_local1++;
};
}
}
}//package
Section 116
//PlayerShot (PlayerShot)
package {
class PlayerShot extends ShotBase {
function ResetHitCount(){
HitCount = 0;
}
}
}//package
Section 117
//PlayerShot2_1 (PlayerShot2_1)
package {
import flash.display.*;
public dynamic class PlayerShot2_1 extends MovieClip {
}
}//package
Section 118
//PlayerShot2_2 (PlayerShot2_2)
package {
import flash.display.*;
public dynamic class PlayerShot2_2 extends MovieClip {
}
}//package
Section 119
//PlayerShot6_1 (PlayerShot6_1)
package {
import flash.display.*;
public dynamic class PlayerShot6_1 extends MovieClip {
}
}//package
Section 120
//PlayerShot6_2 (PlayerShot6_2)
package {
import flash.display.*;
public dynamic class PlayerShot6_2 extends MovieClip {
}
}//package
Section 121
//PlayInformation (PlayInformation)
package {
import flash.display.*;
import flash.text.*;
class PlayInformation extends Sprite {
protected var _TxtNowScore:TextField;
protected var _TxtPower:TextField;
protected var _TextFormat:TextFormat;
protected var _StrDifficult:TextField;
protected var _StrHiScore:TextField;
protected var _TxtHiScore:TextField;
protected var _StrPoint:TextField;
protected var _TxtPoint:TextField;
protected var StageOutFrame:Sprite;
protected var _StrNowScore:TextField;
protected var _StrPlayer:TextField;
protected var _StrPower:TextField;
protected var ArrLife:Array;
function PlayInformation(){
var _local1:uint;
var _local2:int;
var _local3:String;
var _local4:ImgLogo;
var _local5:Number;
var _local6:Number;
var _local7:Sprite;
super();
SetOutFrameData();
_TextFormat = new TextFormat();
_TextFormat.size = 24;
_TxtHiScore = CMath.CreateTextField(470, 20, 160, 24, 0xFFFFFF, "2211110000");
_TxtHiScore.autoSize = TextFieldAutoSize.RIGHT;
_TxtHiScore.setTextFormat(_TextFormat);
_TxtHiScore.defaultTextFormat = _TextFormat;
addChild(_TxtHiScore);
_TxtNowScore = CMath.CreateTextField(470, 50, 160, 24, 0xFFFFFF, "2211110000");
_TxtNowScore.autoSize = TextFieldAutoSize.RIGHT;
_TxtNowScore.setTextFormat(_TextFormat);
_TxtNowScore.defaultTextFormat = _TextFormat;
addChild(_TxtNowScore);
_TextFormat.size = 20;
_StrHiScore = CMath.CreateTextField(420, 25, 80, 24, 0xFFFFFF, "HISCORE");
_StrHiScore.autoSize = TextFieldAutoSize.RIGHT;
_StrHiScore.setTextFormat(_TextFormat);
addChild(_StrHiScore);
_StrNowScore = CMath.CreateTextField(420, 53, 80, 24, 0xFFFFFF, "SCORE");
_StrNowScore.autoSize = TextFieldAutoSize.RIGHT;
_StrNowScore.setTextFormat(_TextFormat);
addChild(_StrNowScore);
_StrPlayer = CMath.CreateTextField(420, 100, 60, 24, 0xFFFFFF, "PLAYER");
_StrPlayer.autoSize = TextFieldAutoSize.RIGHT;
_StrPlayer.setTextFormat(_TextFormat);
addChild(_StrPlayer);
_StrPower = CMath.CreateTextField(420, 130, 60, 24, 0xFFFFFF, "POWER");
_StrPower.autoSize = TextFieldAutoSize.RIGHT;
_StrPower.setTextFormat(_TextFormat);
addChild(_StrPower);
_StrPoint = CMath.CreateTextField(420, 160, 60, 24, 0xFFFFFF, "POINT");
_StrPoint.autoSize = TextFieldAutoSize.RIGHT;
_StrPoint.setTextFormat(_TextFormat);
addChild(_StrPoint);
ArrLife = new Array();
_local1 = 0;
while (_local1 < 8) {
_local5 = (490 + (_local1 * 18));
_local6 = 107;
_local7 = GMath.DrawRect(_local5, _local6, 12, 12, 0xFF0000, 1, true, 0xFFFF00);
addChild(_local7);
ArrLife.push(_local7);
_local1++;
};
_TxtPower = CMath.CreateTextField(490, 130, 60, 24, 0xFFFFFF, "0.00");
_TxtPower.autoSize = TextFieldAutoSize.LEFT;
_TxtPower.setTextFormat(_TextFormat);
_TxtPower.defaultTextFormat = _TextFormat;
addChild(_TxtPower);
_TxtPoint = CMath.CreateTextField(490, 160, 60, 24, 0xFFFFFF, "0000/0000");
_TxtPoint.autoSize = TextFieldAutoSize.LEFT;
_TxtPoint.setTextFormat(_TextFormat);
_TxtPoint.defaultTextFormat = _TextFormat;
addChild(_TxtPoint);
_local2 = MainValue.Difficult;
_local3 = "";
if (_local2 == 0){
_local3 = "EASY";
} else {
if (_local2 == 1){
_local3 = "NORMAL";
} else {
if (_local2 == 2){
_local3 = "HARD";
} else {
if (_local2 == 3){
_local3 = "LUNATIC";
};
};
};
};
_StrDifficult = CMath.CreateTextField(545, 200, 90, 24, 0xFFFFFF, _local3);
_StrDifficult.autoSize = TextFieldAutoSize.RIGHT;
_StrDifficult.setTextFormat(_TextFormat);
_StrDifficult.defaultTextFormat = _TextFormat;
addChild(_StrDifficult);
_local4 = new ImgLogo();
_local4.x = 440;
_local4.y = 250;
addChild(_local4);
SetHiScore(0);
SetNowScore(0);
SetLifeCount(2);
SetShotPower(0);
SetScorePoint(0);
}
function SetScorePoint(_arg1:Number){
_TxtPoint.text = ((Math2.FormatString(4, _arg1) + " / ") + Math2.FormatString(4, 9999));
}
function SetShotPower(_arg1:Number){
var _local2:uint;
var _local3:uint;
var _local4:String;
_local2 = Math.floor((_arg1 / 100));
_local3 = (_arg1 % 100);
_local4 = ((_local2 + ".") + Math2.FormatString(2, _local3));
_TxtPower.text = _local4;
}
function SetLifeCount(_arg1:uint){
var _local2:uint;
_local2 = 0;
while (_local2 < ArrLife.length) {
ArrLife[_local2].visible = (_local2 < _arg1);
_local2++;
};
}
function SetOutFrameData(){
var _local1:Sprite;
var _local2:Sprite;
var _local3:Sprite;
var _local4:Sprite;
StageOutFrame = new Sprite();
_local1 = GMath.DrawRect(0, 0, 400, 20, 0xFFFFFF, 0, true, 0);
_local2 = GMath.DrawRect(0, 20, 20, 440, 0xFFFFFF, 0, true, 0);
_local3 = GMath.DrawRect(0, 460, 400, 20, 0xFFFFFF, 0, true, 0);
_local4 = GMath.DrawRect(400, 0, 240, 480, 0xFFFFFF, 0, true, 0);
StageOutFrame.addChild(_local1);
StageOutFrame.addChild(_local2);
StageOutFrame.addChild(_local3);
StageOutFrame.addChild(_local4);
addChild(StageOutFrame);
}
function SetHiScore(_arg1:Number){
_TxtHiScore.text = Math2.FormatString(10, _arg1);
}
function SetNowScore(_arg1:Number){
_TxtNowScore.text = Math2.FormatString(10, _arg1);
}
}
}//package
Section 122
//PointData (PointData)
package {
class PointData {
public var PointX:Number;
public var PointY:Number;
function PointData(_arg1:Number=0, _arg2:Number=0){
SetValue(_arg1, _arg2);
}
function get px(){
return (PointX);
}
function SetValue(_arg1:Number, _arg2:Number){
PointX = _arg1;
PointY = _arg2;
}
function SetX(_arg1:Number){
PointX = _arg1;
}
function SetY(_arg1:Number){
PointY = _arg1;
}
function get py(){
return (PointY);
}
}
}//package
Section 123
//PointList (PointList)
package {
class PointList extends PointListBase {
function SetRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:uint, _arg6:uint, _arg7:Boolean=false){
SetLine(_arg1, _arg2, _arg3, _arg2, _arg5);
SetLine(_arg3, _arg2, _arg3, _arg4, _arg6);
SetLine(_arg3, _arg4, _arg1, _arg4, _arg5);
SetLine(_arg1, _arg4, _arg1, _arg2, _arg6);
}
function SetLine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Boolean=false){
var _local7:Number;
var _local8:Number;
var _local9:Number;
_local7 = ((_arg3 - _arg1) / _arg5);
_local8 = ((_arg4 - _arg2) / _arg5);
_local9 = 0;
while (_local9 < _arg5) {
Add((_arg1 + (_local7 * _local9)), (_arg2 + (_local8 * _local9)));
_local9++;
};
if (_arg6){
Add(_arg3, _arg4);
};
}
function SetSinCurvePoint(_arg1:uint, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8){
var _local9:uint;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
_local9 = 0;
while (_local9 < _arg1) {
_local10 = (_arg4 + (_arg5 * _local9));
_local11 = (_arg2 + (((_arg5 * _local9) / 90) * _arg6));
_local12 = (_arg3 + ((Math2.GetSinB(_local10) * _arg6) * _arg7));
if (_arg8 != 0){
_local13 = Math2.GetRotX(_local11, _local12, _arg2, _arg3, _arg8);
_local14 = Math2.GetRotY(_local11, _local12, _arg2, _arg3, _arg8);
};
Add(_local13, _local14);
_local9++;
};
}
function SetCircle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:uint, _arg7:Boolean=true, _arg8:Number=1, _arg9:Number=1){
var _local10:Number;
var _local11:uint;
var _local12:Number;
var _local13:Number;
var _local14:Number;
if (_arg7){
_local10 = (_arg4 / _arg6);
} else {
_local10 = (360 - (_arg4 / _arg6));
};
_local11 = 0;
while (_local11 < _arg6) {
_local12 = ((_arg3 + (_local10 * _local11)) % 360);
_local13 = (_arg1 + ((Math2.GetCosB(_local12) * _arg5) * _arg8));
_local14 = (_arg2 + ((Math2.GetSinB(_local12) * _arg5) * _arg9));
Add(_local13, _local14);
_local11++;
};
}
function SetStar(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:uint, _arg6:Boolean=false){
var _local7:Number;
var _local8:uint;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:Number;
_local7 = Math2.IF_NUMBER((_arg6 == false), 144, (360 - 144));
_local8 = 0;
while (_local8 < 5) {
_local9 = ((_arg3 + (_local7 * (_local8 + 0))) % 360);
_local10 = ((_arg3 + (_local7 * (_local8 + 1))) % 360);
_local11 = ((Math2.GetCosB(_local9) * _arg4) + _arg1);
_local12 = ((Math2.GetSinB(_local9) * _arg4) + _arg2);
_local13 = ((Math2.GetCosB(_local10) * _arg4) + _arg1);
_local14 = ((Math2.GetSinB(_local10) * _arg4) + _arg2);
SetLine(_local11, _local12, _local13, _local14, _arg5);
_local8++;
};
}
function SetCCLine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:uint, _arg7:uint, _arg8:uint){
var _local9:PointList;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:Number;
var _local14:Number;
var _local15:Number;
var _local16:Number;
_local9 = new PointList();
_local9.SetCircle(_arg1, _arg2, _arg3, 360, _arg4, _arg6, true, _arg5);
_local10 = _local9.GetLength();
_local11 = 0;
_local12 = 0;
while (_local12 < _local10) {
_local13 = _local9.X(((_local11 + 0) % _local10));
_local14 = _local9.Y(((_local11 + 0) % _local10));
_local15 = _local9.X(((_local11 + _arg7) % _local10));
_local16 = _local9.Y(((_local11 + _arg7) % _local10));
_local11 = (_local11 + _arg7);
SetLine(_local13, _local14, _local15, _local16, _arg8);
_local12++;
};
}
function SetCrossLine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number){
var _local6:Number;
var _local7:Number;
var _local8:Number;
var _local9:Number;
_local6 = (_arg1 + (Math2.GetCosB((_arg3 + 90)) * _arg4));
_local7 = (_arg2 + (Math2.GetSinB((_arg3 + 90)) * _arg4));
_local8 = (_arg1 + (Math2.GetCosB((_arg3 + 270)) * _arg4));
_local9 = (_arg2 + (Math2.GetSinB((_arg3 + 270)) * _arg4));
SetLine(_local6, _local7, _arg1, _arg2, _arg5);
SetLine(_local8, _local9, _arg1, _arg2, _arg5);
Add(_arg1, _arg2);
}
function SetArrow(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number){
var _local7:Number;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:Number;
_local7 = (_arg1 + (Math2.GetCosB(_arg3) * _arg5));
_local8 = (_arg2 + (Math2.GetSinB(_arg3) * _arg5));
_local9 = (_arg1 + (Math2.GetCosB((_arg3 + _arg4)) * _arg5));
_local10 = (_arg2 + (Math2.GetSinB((_arg3 + _arg4)) * _arg5));
_local11 = (_arg1 + (Math2.GetCosB((_arg3 - _arg4)) * _arg5));
_local12 = (_arg2 + (Math2.GetSinB((_arg3 - _arg4)) * _arg5));
SetLine(_local9, _local10, _local7, _local8, _arg6);
SetLine(_local11, _local12, _local7, _local8, _arg6);
Add(_local7, _local8);
}
}
}//package
Section 124
//PointListBase (PointListBase)
package {
class PointListBase {
protected var ArrY:Array;
protected var ArrX:Array;
function PointListBase(){
Init();
}
function Set(_arg1:Number, _arg2:Number, _arg3:Number){
ArrX[_arg1] = _arg2;
ArrY[_arg1] = _arg3;
}
function GetY(_arg1:Number){
return (ArrY[_arg1]);
}
function Add(_arg1:Number, _arg2:Number){
ArrX.push(_arg1);
ArrY.push(_arg2);
}
function GetX(_arg1:Number){
return (ArrX[_arg1]);
}
function ChangeRelation(_arg1:Number, _arg2:Number){
var _local3:uint;
_local3 = 0;
while (_local3 < ArrX.length) {
ArrX[_local3] = (ArrX[_local3] - _arg1);
ArrY[_local3] = (ArrY[_local3] - _arg2);
_local3++;
};
}
function AddPointValue(_arg1:Number, _arg2:Number){
var _local3:uint;
_local3 = 0;
while (_local3 < ArrX.length) {
ArrX[_local3] = (ArrX[_local3] + _arg1);
ArrY[_local3] = (ArrY[_local3] + _arg2);
_local3++;
};
}
function ChangeRot(_arg1:Number, _arg2:Number, _arg3:Number){
var _local4:uint;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:Number;
_local4 = 0;
while (_local4 < ArrX.length) {
_local5 = ArrX[_local4];
_local6 = ArrY[_local4];
_local7 = Math2.GetRotX(_local5, _local6, _arg1, _arg2, _arg3);
_local8 = Math2.GetRotY(_local5, _local6, _arg1, _arg2, _arg3);
ArrX[_local4] = _local7;
ArrY[_local4] = _local8;
_local4++;
};
}
function GetArrayX(){
return (ArrX);
}
function GetArrayY(){
return (ArrY);
}
function Init(){
ArrX = new Array();
ArrY = new Array();
}
function Y(_arg1:Number){
return (ArrY[_arg1]);
}
function GetLength():Number{
return (ArrX.length);
}
function X(_arg1:Number){
return (ArrX[_arg1]);
}
}
}//package
Section 125
//RectData (RectData)
package {
class RectData {
protected var _CenterX:Number;
protected var _CenterY:Number;
protected var _Left:Number;
protected var _LineLeft:LineData;
protected var _Down:Number;
protected var _LineTop:LineData;
protected var _PointRD:PointData;
protected var _Height:Number;
protected var _Width:Number;
protected var _PointLD:PointData;
protected var _LineRight:LineData;
protected var _PointRT:PointData;
protected var _LineDown:LineData;
protected var _Top:Number;
protected var _PointLT:PointData;
protected var _Right:Number;
function RectData(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
_Left = _arg1;
_Right = _arg2;
_Top = _arg3;
_Down = _arg4;
_CenterX = ((_Left + _Right) / 2);
_CenterY = ((_Top + _Down) / 2);
_Width = (_Right - _Left);
_Height = (_Down - _Top);
}
function get CenterX(){
return (_CenterX);
}
function get Down(){
return (_Down);
}
function get Height(){
return (_Height);
}
function get Top(){
return (_Top);
}
function get CenterY(){
return (_CenterY);
}
function GetArraySeparateY(_arg1:uint){
var _local2:Array;
var _local3:uint;
_local2 = new Array();
_local3 = 0;
while (_local3 < (_arg1 + 1)) {
_local2.push((_Top + (((_Down - _Top) / _arg1) * _local3)));
_local3++;
};
return (_local2);
}
function get Left(){
return (_Left);
}
function get Right(){
return (_Right);
}
function get Width(){
return (_Width);
}
function GetArraySeparateX(_arg1:uint){
var _local2:Array;
var _local3:uint;
_local2 = new Array();
_local3 = 0;
while (_local3 < (_arg1 + 1)) {
_local2.push((_Left + (((_Right - _Left) / _arg1) * _local3)));
_local3++;
};
return (_local2);
}
}
}//package
Section 126
//RetryMenu (RetryMenu)
package {
import flash.display.*;
public class RetryMenu extends MenuBase {
public var Item2:MovieClip;
public var Item1:MovieClip;
function PauseMenu(){
AddItemMc(this.Item1);
AddItemMc(this.Item2);
AddNextMenu(0);
AddNextMenu(0);
SetItem();
}
override function SelectEvent(_arg1:int){
if (_arg1 == 1){
MainValue._FlgReturnTitle = true;
};
}
}
}//package
Section 127
//S01_Enemy01 (S01_Enemy01)
package {
public class S01_Enemy01 extends EnemyBase {
public function S01_Enemy01(_arg1:Number, _arg2:Number){
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:int;
var _local7:Object;
super(_arg1, _arg2);
SetHP(20);
_local3 = Math2.IF_NUMBER((x < _StageData.CenterX), 0, 180);
_local4 = 2;
_local5 = 0;
_local6 = 0;
if (x < _StageData.CenterX){
scaleX = -1;
};
_local7 = Fmove.GetMoveStraight(_local3, _local4, _local5, _local6);
AddMove(_local7);
}
}
}//package
Section 128
//S01_Enemy02 (S01_Enemy02)
package {
public class S01_Enemy02 extends EnemyBase {
protected var MoveX2:Number;
protected var MoveY2:Number;
public function S01_Enemy02(_arg1:Number, _arg2:Number){
var _local3:Object;
var _local4:Number;
var _local5:Object;
super(_arg1, _arg2);
SetHP(100);
_local3 = Fmove.GetMoveStraight(90, 0.5, 0, 240);
AddMove(_local3);
_local4 = Math2.IF_NUMBER((x < 240), 15, 165);
_local5 = Fmove.GetMoveStraight(_local4, 2, 0, 0);
AddMove(_local5);
}
}
}//package
Section 129
//S01_Enemy03 (S01_Enemy03)
package {
public class S01_Enemy03 extends EnemyBase {
public function S01_Enemy03(_arg1:Number, _arg2:Number){
var _local3:Object;
var _local4:Object;
SetHP(100);
super(_arg1, _arg2);
_local3 = Fmove.GetMoveNear(x, (y + 100), 10, 0, 0, 0, 75);
AddMove(_local3);
_local4 = Fmove.GetMoveStraight(270, 0.5, 0, 0);
AddMove(_local4);
}
override function ShotAction(){
if (TimeCount == 75){
FesUtil.SetBasePosition(x, y, 0, 0);
FesUtil.SetImage(ShotCircle, ColorRed);
FesUtil.SetMoveBase(90, 3, 0, 0);
FesUtil.SetMoveStraight();
Fes.SingleShot(0, 0);
};
}
}
}//package
Section 130
//S01_Enemy04 (S01_Enemy04)
package {
public class S01_Enemy04 extends ServantMasterEnemy {
public function S01_Enemy04(_arg1:Number, _arg2:Number){
var _local3:Object;
var _local4:Object;
super(_arg1, _arg2);
SetHP(1000);
_local3 = Fmove.GetMoveNear(x, (y + 100), 20, 0, 0, 0, 300);
AddMove(_local3);
_local4 = Fmove.GetMoveStraight(270, 1, 0, 0);
AddMove(_local4);
}
override function Action(){
if (TimeCount == 0){
CreateServantCircle(6, 0, 50);
};
}
override function ShotAction(){
if ((((60 <= TimeCount)) && ((TimeCount <= 300)))){
if ((TimeCount % 60) == 0){
FesUtil.SetBasePosition(x, y, 0, 0);
FesUtil.SetImage(ShotBigBall, ColorRed);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetMoveStraight();
Fes.LineShot(5, GetRock(), 2, 0.5);
};
};
}
}
}//package
Section 131
//S01_Enemy05 (S01_Enemy05)
package {
public class S01_Enemy05 extends EnemyBase {
protected var _Master:Object;
public function S01_Enemy05(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number){
var _local5:Object;
SetHP(300);
super(_arg1, _arg2);
_Master = _arg3;
_local5 = Fmove.GetMoveTargetRotation(_Master, _arg4, 6, 50, 0, 0, 0, 0);
AddMove(_local5);
scaleX = 0.5;
scaleY = 0.5;
}
}
}//package
Section 132
//S01_Enemy07 (S01_Enemy07)
package {
public class S01_Enemy07 extends EnemyBase {
public function S01_Enemy07(_arg1:Number, _arg2:Number){
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
SetHP(500);
super(_arg1, _arg2);
_local3 = x;
_local4 = (y + 100);
_local5 = Fmove.GetMoveNear(_local3, _local4, 30, 0, 0, 0, 150);
AddMove(_local5);
_local6 = Fmove.GetMoveStraight(270, 0.5, 0, 0);
AddMove(_local6);
}
override function ShotAction(){
if ((((60 <= TimeCount)) && ((TimeCount <= 300)))){
if ((TimeCount % 20) == 0){
FesUtil.SetBasePosition(x, y, 0, 0);
FesUtil.SetImage(2, 1);
if (Difficult > 1){
FesUtil.SetMoveBase(90, 3, 0, 0);
FesUtil.SetMoveStraight();
Fes.SingleShot(0, 0);
};
FesUtil.SetMoveBase(GetRockSita(Player), 3, 0, 0);
FesUtil.SetMoveStraight();
Fes.SingleShot(0, 0);
};
};
}
}
}//package
Section 133
//S01_Enemy08 (S01_Enemy08)
package {
public class S01_Enemy08 extends EnemyBase {
public function S01_Enemy08(_arg1:Number, _arg2:Number){
var _local3:Number;
var _local4:Number;
var _local5:Object;
var _local6:Object;
SetHP(5000);
super(_arg1, _arg2);
_local3 = x;
_local4 = (y + 100);
_local5 = Fmove.GetMoveNear(_local3, _local4, 30, 0, 0, 0, 150);
AddMove(_local5);
_local6 = Fmove.GetMoveStraight(270, 0.2, 0, 0);
AddMove(_local6);
}
function Shot01(){
FesUtil.SetBasePosition(x, y, 0, 0);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetImage(ShotRice, ColorRed);
FesUtil.SetMoveStraight();
Fes.NwayShot(6, GetRock(), 15, 3);
}
function Shot02(){
if (Difficult < 2){
return;
};
FesUtil.SetBasePosition(x, y, 0, 0);
FesUtil.SetMoveBase(GetRock(), 5, 0, 0);
FesUtil.SetImage(ShotBigBall, ColorRed);
FesUtil.SetMoveStraight();
Fes.SingleShot();
}
override function ShotAction(){
if ((((60 <= TimeCount)) && ((TimeCount <= 600)))){
if ((TimeCount % 15) == 0){
Shot01();
};
if ((TimeCount % 60) == 0){
Shot02();
};
};
}
}
}//package
Section 134
//S01_Enemy09 (S01_Enemy09)
package {
public class S01_Enemy09 extends EnemyBase {
public function S01_Enemy09(_arg1:Number, _arg2:Number){
var _local3:Object;
var _local4:Object;
SetHP(100);
super(_arg1, _arg2);
Ec.EnemyBreak(x, y);
_local3 = Fmove.GetMoveStraight(Math2.GetRandom(360, 0), 0.02, 0, 120);
AddMove(_local3);
_local4 = Fmove.GetMoveStraight(270, 0.2, 0, 0);
AddMove(_local4);
}
function Shot01(){
if (Difficult < 2){
return;
};
FesUtil.SetBasePosition(x, y, 0, 0);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetImage(ShotRice, ColorGreen);
FesUtil.SetMoveStraight();
Fes.NwayShot(3, GetRock(), 15, 3);
}
override function ShotAction(){
if (TimeCount == 0){
Shot01();
};
}
}
}//package
Section 135
//SE000 (SE000)
package {
import flash.media.*;
public dynamic class SE000 extends Sound {
}
}//package
Section 136
//SE005 (SE005)
package {
import flash.media.*;
public dynamic class SE005 extends Sound {
}
}//package
Section 137
//SE100 (SE100)
package {
import flash.media.*;
public dynamic class SE100 extends Sound {
}
}//package
Section 138
//SE101 (SE101)
package {
import flash.media.*;
public dynamic class SE101 extends Sound {
}
}//package
Section 139
//SE102 (SE102)
package {
import flash.media.*;
public dynamic class SE102 extends Sound {
}
}//package
Section 140
//SeControl (SeControl)
package {
class SeControl extends SeControlBase {
}
}//package
Section 141
//SeControlBase (SeControlBase)
package {
import flash.media.*;
class SeControlBase {
protected var ArrVol:Array;
protected var ArrSe:Array;
function SeControlBase(){
ArrSe = new Array();
ArrVol = new Array();
}
function SetSE(_arg1:uint, _arg2:Object, _arg3:Number=1){
ArrSe[_arg1] = new NoSound();
ArrSe[_arg1].play();
ArrSe[_arg1] = _arg2;
ArrVol[_arg1] = _arg3;
}
function SePlay(_arg1:uint, _arg2:Number=1){
var _local3:Sound;
var _local4:SoundChannel;
var _local5:SoundTransform;
if (ArrSe[_arg1] != null){
_local3 = new (ArrSe[_arg1]);
_local4 = _local3.play();
_local5 = new SoundTransform();
_local5.volume = _arg2;
_local4.soundTransform = _local5;
};
}
}
}//package
Section 142
//ServantMasterEnemy (ServantMasterEnemy)
package {
class ServantMasterEnemy extends EnemyBase {
protected var ArrServant:Array;
function ServantMasterEnemy(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
}
function CreateServantSide(){
}
override function Dead(){
DestroyServant();
super.Dead();
}
function CreateServantCircle(_arg1:uint, _arg2:Number, _arg3:Number){
var _local4:uint;
var _local5:Number;
var _local6:Number;
var _local7:Number;
var _local8:S01_Enemy05;
ArrServant = new Array();
_local4 = 0;
while (_local4 < _arg1) {
_local5 = (_arg2 + ((360 / _arg1) * _local4));
_local6 = (x + (Math2.GetCosB(_local5) * _arg3));
_local7 = (y + (Math2.GetSinB(_local5) * _arg3));
_local8 = new S01_Enemy05(_local6, _local7, this, _local5);
_local8.SetItemType(0);
_local8.SetImage(Magic_RED);
MainValue.ArrEnemy.Add(_local8);
ArrServant.push(_local8);
_local4++;
};
}
function DestroyServant(){
var _local1:uint;
var _local2:Object;
_local1 = 0;
while (_local1 < ArrServant.length) {
_local2 = ArrServant[_local1];
if (_local2.FlgExistArrayList){
_local2.Dead();
};
_local1++;
};
}
}
}//package
Section 143
//Shot1_BLACK (Shot1_BLACK)
package {
import flash.display.*;
public dynamic class Shot1_BLACK extends MovieClip {
}
}//package
Section 144
//Shot1_BLUE (Shot1_BLUE)
package {
import flash.display.*;
public dynamic class Shot1_BLUE extends MovieClip {
}
}//package
Section 145
//Shot1_GREEN (Shot1_GREEN)
package {
import flash.display.*;
public dynamic class Shot1_GREEN extends MovieClip {
}
}//package
Section 146
//Shot1_PINK (Shot1_PINK)
package {
import flash.display.*;
public dynamic class Shot1_PINK extends MovieClip {
}
}//package
Section 147
//Shot1_PURPLE (Shot1_PURPLE)
package {
import flash.display.*;
public dynamic class Shot1_PURPLE extends MovieClip {
}
}//package
Section 148
//Shot1_RED (Shot1_RED)
package {
import flash.display.*;
public dynamic class Shot1_RED extends MovieClip {
}
}//package
Section 149
//Shot1_WHITE (Shot1_WHITE)
package {
import flash.display.*;
public dynamic class Shot1_WHITE extends MovieClip {
}
}//package
Section 150
//Shot1_YELLOW (Shot1_YELLOW)
package {
import flash.display.*;
public dynamic class Shot1_YELLOW extends MovieClip {
}
}//package
Section 151
//Shot10_BLUE (Shot10_BLUE)
package {
import flash.display.*;
public dynamic class Shot10_BLUE extends MovieClip {
}
}//package
Section 152
//Shot2_BLUE (Shot2_BLUE)
package {
import flash.display.*;
public dynamic class Shot2_BLUE extends MovieClip {
}
}//package
Section 153
//Shot2_GREEN (Shot2_GREEN)
package {
import flash.display.*;
public dynamic class Shot2_GREEN extends MovieClip {
}
}//package
Section 154
//Shot2_PURPLE (Shot2_PURPLE)
package {
import flash.display.*;
public dynamic class Shot2_PURPLE extends MovieClip {
}
}//package
Section 155
//Shot2_RED (Shot2_RED)
package {
import flash.display.*;
public dynamic class Shot2_RED extends MovieClip {
}
}//package
Section 156
//Shot2_WHITE (Shot2_WHITE)
package {
import flash.display.*;
public dynamic class Shot2_WHITE extends MovieClip {
}
}//package
Section 157
//Shot2_YELLOW (Shot2_YELLOW)
package {
import flash.display.*;
public dynamic class Shot2_YELLOW extends MovieClip {
}
}//package
Section 158
//Shot3_BLUE (Shot3_BLUE)
package {
import flash.display.*;
public dynamic class Shot3_BLUE extends MovieClip {
}
}//package
Section 159
//Shot3_GREEN (Shot3_GREEN)
package {
import flash.display.*;
public dynamic class Shot3_GREEN extends MovieClip {
}
}//package
Section 160
//Shot3_PINK (Shot3_PINK)
package {
import flash.display.*;
public dynamic class Shot3_PINK extends MovieClip {
}
}//package
Section 161
//Shot3_PURPLE (Shot3_PURPLE)
package {
import flash.display.*;
public dynamic class Shot3_PURPLE extends MovieClip {
}
}//package
Section 162
//Shot3_RED (Shot3_RED)
package {
import flash.display.*;
public dynamic class Shot3_RED extends MovieClip {
}
}//package
Section 163
//Shot3_WHITE (Shot3_WHITE)
package {
import flash.display.*;
public dynamic class Shot3_WHITE extends MovieClip {
}
}//package
Section 164
//Shot3_YELLOW (Shot3_YELLOW)
package {
import flash.display.*;
public dynamic class Shot3_YELLOW extends MovieClip {
}
}//package
Section 165
//Shot4_RED (Shot4_RED)
package {
import flash.display.*;
public dynamic class Shot4_RED extends MovieClip {
}
}//package
Section 166
//Shot5_RED (Shot5_RED)
package {
import flash.display.*;
public dynamic class Shot5_RED extends MovieClip {
}
}//package
Section 167
//Shot6_RED (Shot6_RED)
package {
import flash.display.*;
public dynamic class Shot6_RED extends MovieClip {
}
}//package
Section 168
//Shot7_RED (Shot7_RED)
package {
import flash.display.*;
public dynamic class Shot7_RED extends MovieClip {
}
}//package
Section 169
//Shot8_BLUE (Shot8_BLUE)
package {
import flash.display.*;
public dynamic class Shot8_BLUE extends MovieClip {
}
}//package
Section 170
//Shot8_GREEN (Shot8_GREEN)
package {
import flash.display.*;
public dynamic class Shot8_GREEN extends MovieClip {
}
}//package
Section 171
//Shot8_PINK (Shot8_PINK)
package {
import flash.display.*;
public dynamic class Shot8_PINK extends MovieClip {
}
}//package
Section 172
//Shot8_PURPLE (Shot8_PURPLE)
package {
import flash.display.*;
public dynamic class Shot8_PURPLE extends MovieClip {
}
}//package
Section 173
//Shot8_RED (Shot8_RED)
package {
import flash.display.*;
public dynamic class Shot8_RED extends MovieClip {
}
}//package
Section 174
//Shot8_YELLOW (Shot8_YELLOW)
package {
import flash.display.*;
public dynamic class Shot8_YELLOW extends MovieClip {
}
}//package
Section 175
//Shot9_RED (Shot9_RED)
package {
import flash.display.*;
public dynamic class Shot9_RED extends MovieClip {
}
}//package
Section 176
//ShotBase (ShotBase)
package {
class ShotBase extends StageObject {
protected var TimeCount:Number;
protected var Attack:Number;
protected var WaitCount:Number;
protected var InvisibleCount:int;
function ShotBase(){
Attack = 0;
TimeCount = 0;
InvisibleCount = 0;
WaitCount = 0;
}
function GetAttack():Number{
return (Attack);
}
function GetCount(){
return (TimeCount);
}
function SetAttack(_arg1:Number){
Attack = _arg1;
}
override function HitCheck(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Array=null):Boolean{
if (visible == false){
return (false);
};
return (super.HitCheck(_arg1, _arg2, _arg3, _arg4));
}
function Option(){
if (InvisibleCount == 0){
visible = true;
} else {
InvisibleCount--;
};
}
function SetDelete(_arg1:Number){
FlgDeleteCheck = true;
DeleteCount = _arg1;
}
function SetInvisible(_arg1:int){
InvisibleCount = _arg1;
visible = false;
}
function Delete(){
FlgDeleteCheck = true;
DeleteCount = 0;
}
function SetHitDammy(){
FlgHitCheck = false;
}
override function SetNextMoveOption(){
rotation = ArrMove[iMoveCount].GetSita();
CountReset();
}
function SetWait(_arg1:Number){
WaitCount = _arg1;
}
override function NextMoveNone(){
Delete();
}
override function Move(){
if (WaitCount == 0){
Moving();
} else {
WaitCount--;
};
Option();
TimeCount++;
}
function SetOutDammy(){
FlgOutCheck = false;
}
}
}//package
Section 177
//ShotMenu (ShotMenu)
package {
import flash.display.*;
public class ShotMenu extends MenuBase {
public var Item2:MovieClip;
public var Item6:MovieClip;
public var Item1:MovieClip;
public var Item4:MovieClip;
public var Item5:MovieClip;
public var Item7:MovieClip;
public var Item8:MovieClip;
public var Item3:MovieClip;
public function ShotMenu(){
var _local1:Array;
var _local2:Object;
var _local3:uint;
super();
AddItemMc(this.Item1);
AddItemMc(this.Item2);
AddItemMc(this.Item3);
AddItemMc(this.Item4);
AddItemMc(this.Item5);
AddItemMc(this.Item6);
AddItemMc(this.Item7);
AddItemMc(this.Item8);
_local1 = new Array(0, -1, -1, -1, -1, -1, -1, 0);
if (MainValue.SELECT_MODE == MainValue.SELECT_NORMAL){
_local2 = null;
} else {
if (MainValue.SELECT_MODE == MainValue.SELECT_EXTRA){
_local2 = null;
} else {
if (MainValue.SELECT_MODE == MainValue.SELECT_SPELLPRACTICE){
_local2 = SpellPracticeMenu;
} else {
if (MainValue.SELECT_MODE == MainValue.SELECT_PRACTICE){
_local2 = null;
};
};
};
};
_local3 = 0;
while (_local3 < 8) {
if (_local2 != null){
AddNextMenu(_local2);
} else {
AddNextMenu(_local1[_local3]);
};
_local3++;
};
if (MainValue.SELECT_MODE == MainValue.SELECT_SPELLPRACTICE){
_PrevMenu = MainMenu;
} else {
_PrevMenu = DifficultMenu;
};
SetItem();
}
override function SelectEvent(_arg1:int){
MainValue.PlayerShotType = _arg1;
}
}
}//package
Section 178
//Spell01_001 (Spell01_001)
package {
public class Spell01_001 extends SpellBase {
private var _Sita:Number;
public static var SpellName:String = "弾幕 『ステージ1:通常弾幕』";
public function Spell01_001(){
MAXHP = (1000 * MainValue.SpellHP);
}
function Shot01(_arg1:uint){
var _local2:int;
var _local3:uint;
var _local4:Boolean;
if (TimeCount == 0){
_Sita = GetRock();
};
_local2 = (TimeCount + 10);
_local3 = (3 - (TimeCount / 20));
SetBaseInformation(Boss.x, Boss.y, _local2, 0, 0, _local3, 0, 0, 0, 0);
FesUtil.SetEffect(true, _local3);
FesUtil.SetMoveBase(0, 8, 0, 60);
FesUtil.SetMoveChange(0.95, 0);
FesUtil.SetMoveBase(45, 3, 0, 0);
FesUtil.SetMoveStraight();
FesUtil.SetWaitEx(true, (90 - TimeCount), 0);
FesUtil.SetInvisibleEx(true, 0, 1);
_local4 = !(Math2.GetBooleanByNumber(((TimeCount / 20) % 2)));
Fes.CircleShotEx(_arg1, _Sita, 0, _local4);
FesUtil.SetWaitEx();
FesUtil.SetInvisibleEx();
FesUtil.SetEffect(false);
}
function Shot03(_arg1:uint){
var _local2:Number;
var _local3:uint;
SetBaseInformation(Boss.x, Boss.y, 0, 0, 2, 3, 0, 0, 0, 0);
_local2 = Math2.GetTargetSitaB(Player, Boss);
_local3 = 0;
while (_local3 < 3) {
FesUtil.SetMoveBase(0, 20, 0, 30);
FesUtil.SetMoveChange(0.8, 0.1);
FesUtil.SetMoveBase(((315 + (45 * _local3)) % 360), 3, 0, 0);
FesUtil.SetMoveStraight();
Fes.CircleShot(_arg1, _local2, 0);
_local3++;
};
FesUtil.SetMoveBase(0, 20, 0, 30);
FesUtil.SetMoveChange(0.8, 0.1);
FesUtil.SetMoveBase(170, 6, 0, 0);
FesUtil.SetMoveStraight();
Fes.CircleShot(_arg1, _local2, 0);
}
function Shot02(_arg1:uint){
if (TimeCount == 80){
_Sita = GetRock();
};
SetBaseInformation(Boss.x, Boss.y, 30, 45, 1, 0, 0, 0, 0, 0);
FesUtil.SetMoveStraight();
Fes.RandomShot(_arg1, 40, (_Sita - 20), 2);
_Sita = ((_Sita + 27) % 360);
FesUtil.SetEffect(false);
}
override function CommonScript(){
if (TimeCount < 80){
if ((TimeCount % 20) == 0){
Shot01(IF_DIF(10, 12, 18, 20));
};
} else {
if (TimeCount < 120){
if ((TimeCount % 3) == 0){
Shot02(IF_DIF(1, 3, 5, 7));
};
} else {
if (TimeCount < 150){
} else {
if (TimeCount < 240){
if ((TimeCount % 10) == 0){
Shot03(IF_DIF(6, 8, 12, 18));
};
};
};
};
};
TimeCount++;
if (TimeCount == 300){
TimeCount = 0;
};
}
}
}//package
Section 179
//Spell01_002 (Spell01_002)
package {
public class Spell01_002 extends SpellBase {
private var FlgShot2:uint;
private var FlgShot1:uint;
private var PerCount1:uint;
private var ArrMagic:Array;
public static var SpellName:String = "霊符 『ステージ1:スペルカード1』";
public function Spell01_002(){
var _local1:int;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Object;
super();
MAXHP = (1000 * MainValue.SpellHP);
FlgSpellCard = true;
ArrMagic = new Array();
_local1 = 0;
while (_local1 < 4) {
_local2 = ((_local1 * 90) + 45);
_local3 = 50;
_local4 = (Boss.x + (Math2.GetCosB(_local2) * _local3));
_local5 = (Boss.y + (Math2.GetSinB(_local2) * _local3));
Fmag.SetBaseData(_local4, _local5);
Fmag.SetImage(Magic_RED);
_local6 = Fmag.MagicFix();
_local6.AddMove(Fmove.GetMoveStraight(0, 0, 5, 0));
ArrMagic.push(_local6);
_local1++;
};
PerCount1 = IF_DIF(90, 60, 60, 30);
FlgShot1 = IF_DIF(0, 1, 1, 1);
FlgShot2 = IF_DIF(0, 0, 1, 1);
}
function Shot01(){
var _local1:uint;
var _local2:Number;
var _local3:Number;
var _local4:Object;
_local1 = 0;
while (_local1 < 4) {
_local2 = (15 + (_local1 * 90));
_local3 = (75 + (_local1 * 90));
_local4 = ArrMagic[_local1];
FesUtil.SetImage(0, 0);
FesUtil.SetBasePosition(_local4.x, _local4.y, 0, 0);
FesUtil.SetMoveBase(_local2, 10, 0, 0);
FesUtil.SetMoveStraight();
Fes.SingleShot(0, 0);
FesUtil.SetMoveBase(_local3, 10, 0, 0);
FesUtil.SetMoveStraight();
Fes.SingleShot(0, 0);
_local1++;
};
}
function Shot03(){
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:Number;
SetBaseInformation(Boss.x, Boss.y, 10, 0, 1, 3, 0, 0, 0, 0);
_local1 = Math2.GetTargetSitaB(Player, Boss);
_local2 = 0;
while (_local2 < 5) {
_local3 = (_local2 * 10);
_local4 = (_local2 * 4);
FesUtil.SetInvisibleEx(true, _local3, 0);
FesUtil.SetWaitEx(true, _local3, 0);
FesUtil.SetMoveBase(_local4, 3, 0, 0);
FesUtil.SetMoveStraight();
Fes.CircleShotEx(18, _local1, 0);
FesUtil.SetInvisibleEx(false);
FesUtil.SetWaitEx(false);
_local2++;
};
}
function Shot02(){
var _local1:uint;
var _local2:Object;
var _local3:Number;
_local1 = 0;
while (_local1 < ArrMagic.length) {
_local2 = ArrMagic[_local1];
FesUtil.SetBasePosition(_local2.x, _local2.y, 0, 0);
_local3 = Math2.GetTargetSitaB(Player, _local2);
FesUtil.SetImage(1, 0);
FesUtil.SetMoveBase(_local3, 8, 0, 0);
FesUtil.SetMoveChange(0.96, 0.25);
Fes.SingleShot(0, 0);
_local1++;
};
}
override function CommonScript(){
if ((TimeCount % 10) == 0){
Shot01();
};
if ((TimeCount % PerCount1) == 0){
Shot02();
};
if (TimeCount == 120){
if (FlgShot1 > 0){
Shot03();
};
} else {
if (TimeCount == 180){
if (FlgShot1 > 0){
Shot04();
};
};
};
if (TimeCount < 240){
} else {
if (TimeCount < 300){
if (FlgShot2 > 0){
Shot05();
};
};
};
TimeCount++;
if (TimeCount == 300){
TimeCount = 0;
};
}
function Shot05(){
var _local1:Number;
_local1 = Math2.GetTargetSitaB(Player, Boss);
_local1 = (_local1 + (Math2.GetRandom(1000, -500) / 100));
SetBaseInformation(Boss.x, Boss.y, 20, 0, 2, 3, _local1, 4, 10, 0);
FesUtil.SetMoveStraight();
Fes.SingleShot(0, 0);
}
function Shot04(){
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:Number;
SetBaseInformation(Boss.x, Boss.y, 10, 0, 1, 3, 0, 0, 0, 0);
_local1 = Math2.GetTargetSitaB(Player, Boss);
_local2 = 0;
while (_local2 < 5) {
_local3 = (_local2 * 10);
_local4 = (360 - (_local2 * 4));
FesUtil.SetInvisibleEx(true, _local3, 0);
FesUtil.SetWaitEx(true, _local3, 0);
FesUtil.SetMoveBase(_local4, 3, 0, 0);
FesUtil.SetMoveStraight();
Fes.CircleShotEx(18, _local1, 0, true);
FesUtil.SetInvisibleEx(false);
FesUtil.SetWaitEx(false);
_local2++;
};
}
}
}//package
Section 180
//Spell01_003 (Spell01_003)
package {
public class Spell01_003 extends SpellBase {
private var ShotCount1:uint;
private var ShotCount2:uint;
public static var SpellName:String = "弾幕 『ステージ1:通常弾幕2』";
public function Spell01_003(){
MAXHP = (1000 * MainValue.SpellHP);
ShotCount1 = IF_DIF(9, 12, 18, 24);
ShotCount2 = IF_DIF(9, 9, 18, 18);
}
function Shot01(_arg1:uint){
var _local2:Number;
var _local3:uint;
var _local4:Number;
var _local5:uint;
SetBaseInformation(Boss.x, Boss.y, 10, 0, 1, 0);
_local2 = Math2.GetTargetSitaB(Player, Boss);
_local3 = 45;
_local4 = 4;
_local5 = 0;
while (_local5 < 5) {
if (_local5 > 0){
FesUtil.SetInvisible(true, _local3);
};
FesUtil.SetMoveBase(0, 6, 0, _local3);
FesUtil.SetMoveChange(0.96, 0);
FesUtil.SetMoveBase((45 + (_local5 * 15)), _local4, 0, 0);
FesUtil.SetMoveStraight();
Fes.CircleShot(_arg1, _local2, 0);
if (_local5 > 0){
FesUtil.SetInvisible(false, 0);
};
_local5++;
};
}
function Shot03(_arg1:uint){
var _local2:Number;
var _local3:uint;
var _local4:Number;
var _local5:Number;
var _local6:Number;
SetBaseInformation(Boss.x, Boss.y, 10, 0, 1, 3, 0, 0, 0, 0);
_local2 = Math2.GetTargetSitaB(Player, Boss);
_local3 = 0;
while (_local3 < 8) {
if ((_local3 % 2) == 0){
_local4 = 90;
FesUtil.SetImage(2, 3);
} else {
_local4 = 270;
FesUtil.SetImage(2, 4);
};
_local5 = (0.98 - (_local3 * 0.01));
FesUtil.SetMoveBase(0, 10, 0, 60);
FesUtil.SetMoveChange(_local5, 0);
FesUtil.SetMoveBase(0, (5 + (_local3 * 0.5)), 0, 60);
FesUtil.SetMoveStraight();
_local6 = Math2.IF_NUMBER((_arg1 == 9), 22.5, 12);
Fes.NwayShot(_arg1, (_local2 + _local4), _local6, 0);
_local3++;
};
}
function Shot02(_arg1:uint){
var _local2:Number;
var _local3:uint;
var _local4:Number;
var _local5:uint;
SetBaseInformation(Boss.x, Boss.y, 10, 0, 1, 2);
_local2 = Math2.GetTargetSitaB(Player, Boss);
_local3 = 45;
_local4 = 4;
_local5 = 0;
while (_local5 < 5) {
if (_local5 > 0){
FesUtil.SetInvisible(true, _local3);
};
FesUtil.SetMoveBase(0, 6, 0, _local3);
FesUtil.SetMoveChange(0.96, 0);
FesUtil.SetMoveBase((315 - (_local5 * 15)), _local4, 0, 0);
FesUtil.SetMoveStraight();
Fes.CircleShot(_arg1, _local2, 0);
if (_local5 > 0){
FesUtil.SetInvisible(false, 0);
};
_local5++;
};
}
override function CommonScript(){
if (TimeCount < 300){
if (TimeCount == 0){
Shot01(ShotCount1);
} else {
if (TimeCount == 60){
Shot02(ShotCount1);
} else {
if (TimeCount == 120){
Shot01(ShotCount1);
} else {
if (TimeCount == 180){
Shot02(ShotCount1);
};
};
};
};
} else {
if (TimeCount < 600){
if ((TimeCount % 30) == 0){
Shot03(ShotCount2);
};
};
};
TimeCount++;
if (TimeCount == 600){
TimeCount = 0;
};
}
}
}//package
Section 181
//Spell01_004 (Spell01_004)
package {
public class Spell01_004 extends SpellBase {
private var _PointList:PointList;
private var PerCount1:uint;
public static var SpellName:String = "境符 『ステージ1:スペルカード2』";
public function Spell01_004(){
MAXHP = (400 * MainValue.SpellHP);
FlgSpellCard = true;
PerCount1 = IF_DIF(300, 200, 150, 150);
}
function Shot01(_arg1:uint, _arg2:uint){
var _local3:*;
_local3 = new PointList();
_local3.SetSinCurvePoint(300, Boss.x, Boss.y, _arg1, 4, 50, 0.5, GetRock());
FesUtil.SetBasePosition(0, 0, 0, 0);
FesUtil.SetImage(2, _arg2);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetMoveStraight();
FesUtil.SetWaitEx(true, 300, -1);
FesUtil.SetInvisibleEx(true, 0, 0.25);
Fes.PointShotEx(_local3.GetArrayX(), _local3.GetArrayY(), GetRock(), 4);
FesUtil.SetWaitEx(false, 0);
FesUtil.SetInvisibleEx(false, 0);
}
override function CommonScript(){
var _local1:uint;
if ((TimeCount % PerCount1) == 0){
_local1 = 0;
while (_local1 < 1) {
Shot01(90, ColorRed);
Shot01(270, ColorWhite);
_local1++;
};
};
TimeCount++;
if (TimeCount == 300){
TimeCount = 0;
};
}
}
}//package
Section 182
//Spell01_005 (Spell01_005)
package {
public class Spell01_005 extends SpellBase {
private var PerCount1:uint;
public static var SpellName:String = "霊符 『ステージ1:スペルカード3』";
public function Spell01_005(){
MAXHP = (1000 * MainValue.SpellHP);
FlgSpellCard = true;
Boss.SetMove(_StageData.CenterX, _StageData.CenterY);
PerCount1 = IF_DIF(30, 20, 15, 10);
TimeCount = -20;
}
function Shot01(){
var _local1:Object;
var _local2:Object;
SetBaseInformation(Boss.x, Boss.y, 0, 0, 0, 0, 0, 0, 0, 0);
FesUtil.SetNextStageData(true, new Array(_StageData.GetNew(-100), _StageData.GetNew()));
FesUtil.SetWaitEx(true, 0, 2);
FesUtil.SetInvisibleEx(true, 0, 2);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetImage(ShotNormal, ColorRed);
_local1 = MainValue.ArrEnemyShotImg[ShotNormal][ColorRed];
_local2 = MainValue.ArrEnemyShotImg[ShotNormal][ColorWhite];
FesUtil.SetMoveBound(2, true, true, true, true, new Array(_local2, _local1));
Fes.LineShotEx(10, (Math2.GetRandom(3600, 0) / 10), 2, 0);
FesUtil.SetWaitEx(false);
FesUtil.SetInvisibleEx(false);
FesUtil.SetNextStageData(false);
}
override function CommonScript(){
if (TimeCount < 0){
TimeCount++;
return;
};
if ((TimeCount % PerCount1) == 0){
Shot01();
};
TimeCount++;
if (TimeCount == 600){
TimeCount = 0;
};
}
}
}//package
Section 183
//Spell01_006 (Spell01_006)
package {
public class Spell01_006 extends SpellBase {
private var ShotCount1:uint;
private var ArrMagic:Array;
private var _CircleRange:Number;// = 100
public static var SpellName:String = "境符 『ステージ1:スペルカード4』";
public function Spell01_006(){
_CircleRange = 100;
super();
MAXHP = (2000 * MainValue.SpellHP);
FlgSpellCard = true;
ShotCount1 = IF_DIF(9, 12, 18, 36);
}
function Shot01(_arg1:uint, _arg2:Number){
var _local3:Number;
FesUtil.SetEffect(true, 4);
FesUtil.SetWaitEx(true, 72, 1);
FesUtil.SetInvisibleEx(true, 0, 1);
FesUtil.SetImage(2, ColorPurple);
FesUtil.SetBasePosition(_StageData.CenterX, _StageData.CenterY, _arg2, 0);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetMoveStraight();
_local3 = (Math2.GetRandom(Math.floor((360 / _arg1)), 0) + 270);
_local3 = 270;
Fes.CircleShotEx(_arg1, _local3, 8);
FesUtil.SetWaitEx(false);
FesUtil.SetInvisibleEx(false);
FesUtil.SetEffect(false);
}
function Shot02(_arg1:Number, _arg2:Number, _arg3:uint){
var _local4:Number;
FesUtil.SetImage(2, ColorRed);
FesUtil.SetBasePosition(_arg1, _arg2, 10, 0);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetMoveBound(1, true, true, true, true);
_local4 = Math2.GetRandom(Math.floor((360 / _arg3)), 0);
Fes.CircleShotEx(_arg3, _local4, 0.5);
}
override function CommonScript(){
if ((TimeCount % 72) == 0){
Shot01(72, _CircleRange);
_CircleRange = (_CircleRange - 2);
};
if ((TimeCount % 144) == 0){
Shot02((_StageData.Left + 20), (_StageData.Top + 20), ShotCount1);
Shot02((_StageData.Right - 20), (_StageData.Top + 20), ShotCount1);
Shot02((_StageData.Right - 20), (_StageData.Down - 20), ShotCount1);
Shot02((_StageData.Left + 20), (_StageData.Down - 20), ShotCount1);
};
TimeCount++;
if (TimeCount == 720){
TimeCount = 0;
};
}
}
}//package
Section 184
//Spell01_007 (Spell01_007)
package {
public class Spell01_007 extends SpellBase {
private var _RangeX:Number;
private var Spd1:Number;
private var _PointList:PointList;
private var ShotCount1:uint;
private var _CenterY:Number;
private var _CenterX:Number;
private var ArrSeparateX:Array;
private var ArrSeparateY:Array;
private var _FlgFirst:Boolean;
private var PerCount1:uint;
private var _RangeY:Number;
public static var SpellName:String = "逢符 『ステージ1:スペルカード5";
public function Spell01_007(){
var _local1:uint;
super();
MAXHP = (750 * MainValue.SpellHP);
FlgSpellCard = true;
_FlgFirst = true;
_local1 = 3;
ArrSeparateX = _StageData.GetArraySeparateX(_local1);
ArrSeparateY = _StageData.GetArraySeparateY(_local1);
_RangeX = (ArrSeparateX[1] - ArrSeparateX[0]);
_RangeY = (ArrSeparateY[1] - ArrSeparateY[0]);
ShotCount1 = IF_DIF(5, 10, 15, 30);
PerCount1 = IF_DIF(180, 120, 60, 60);
Spd1 = IF_DIF(2, 3, 4, 4);
}
function Shot02(_arg1:uint, _arg2:Number){
SetBaseInformation(Boss.x, Boss.y, 0, 0, 0, 0, 0, 0, 0, 0);
FesUtil.SetWaitEx(true, 0, 2);
FesUtil.SetInvisibleEx(true, 0, 2);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetImage(2, ColorPurple);
FesUtil.SetMoveScroll(4, true, true, true, true);
Fes.LineShotEx(_arg1, (Math2.GetRandom(3600, 0) / 10), _arg2, 0);
FesUtil.SetWaitEx(false);
FesUtil.SetInvisibleEx(false);
}
override function CommonScript(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
if (TimeCount == 0){
Shot01(0, 0);
} else {
if (TimeCount == 60){
_local1 = Math2.IF_NUMBER(IsLeftPoint(), 180, 0);
_local2 = (_RangeX / 60);
Shot01(_local1, _local2);
} else {
if (TimeCount == 120){
Shot01(0, 0);
} else {
if (TimeCount == 180){
_local3 = Math2.IF_NUMBER(IsTopPoint(), 270, 90);
_local4 = (_RangeY / 60);
Shot01(_local3, _local4);
};
};
};
};
if ((TimeCount % PerCount1) == 0){
Shot02(ShotCount1, Spd1);
};
TimeCount++;
if (TimeCount == 240){
TimeCount = 0;
};
}
function IsLeftPoint(){
var _local1:uint;
var _local2:Number;
_local1 = GetMassX(Player.x);
_local2 = ((ArrSeparateX[_local1] + ArrSeparateX[(_local1 + 1)]) / 2);
if (Player.x < _local2){
return (true);
};
return (false);
}
function IsTopPoint(){
var _local1:uint;
var _local2:Number;
_local1 = GetMassY(Player.y);
_local2 = ((ArrSeparateY[_local1] + ArrSeparateY[(_local1 + 1)]) / 2);
if (Player.y < _local2){
return (true);
};
return (false);
}
function GetMassY(_arg1:Number){
var _local2:uint;
_local2 = 0;
while (_local2 < (ArrSeparateY.length - 1)) {
if ((((ArrSeparateY[_local2] <= _arg1)) && ((_arg1 <= ArrSeparateY[(_local2 + 1)])))){
return (_local2);
};
_local2++;
};
}
function Shot01(_arg1:Number, _arg2:Number){
var _local3:uint;
var _local4:uint;
var _local5:Number;
var _local6:Number;
var _local7:Number;
SetRect();
_local3 = _PointList.GetArrayX().length;
_local4 = 0;
while (_local4 < _local3) {
if (_FlgFirst){
FesUtil.SetInvisible(true, (Math.floor((_local4 / 2)) % (_local3 / 4)));
};
_local5 = _PointList.GetX(_local4);
_local6 = _PointList.GetY(_local4);
FesUtil.SetImage(1, 0);
FesUtil.SetBasePosition(_local5, _local6, 0, 0);
FesUtil.SetMoveBase(_arg1, _arg2, 0, 60);
FesUtil.SetMoveStraight();
_local7 = Math2.GetTargetSitaXYB(_local5, _local6, _CenterX, _CenterY);
FesUtil.SetMoveBase(_local7, 10, 0, 0);
FesUtil.SetMoveStraight();
Fes.SingleShot(0, 0);
FesUtil.SetInvisible(false);
_local4++;
};
if (_FlgFirst){
_FlgFirst = false;
};
}
function GetMassX(_arg1:Number){
var _local2:uint;
_local2 = 0;
while (_local2 < (ArrSeparateX.length - 1)) {
if ((((ArrSeparateX[_local2] <= _arg1)) && ((_arg1 <= ArrSeparateX[(_local2 + 1)])))){
return (_local2);
};
_local2++;
};
}
function SetRect(){
var _local1:uint;
var _local2:uint;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local1 = GetMassX(Player.x);
_local2 = GetMassY(Player.y);
_local3 = ArrSeparateX[(_local1 + 0)];
_local4 = ArrSeparateY[(_local2 + 0)];
_local5 = ArrSeparateX[(_local1 + 1)];
_local6 = ArrSeparateY[(_local2 + 1)];
_PointList = new PointList();
_PointList.SetRect(_local3, _local4, _local5, _local6, 20, 20);
_CenterX = ((_local3 + _local5) / 2);
_CenterY = ((_local4 + _local6) / 2);
}
}
}//package
Section 185
//Spell02_001 (Spell02_001)
package {
public class Spell02_001 extends SpellBase {
private var Spd1:Number;
private var PerCount1:uint;
public static var SpellName:String = "ステージ2:通常弾幕1";
public function Spell02_001(){
MAXHP = (1000 * MainValue.SpellHP);
PerCount1 = IF_DIF(12, 8, 5, 3);
Spd1 = IF_DIF(2, 4, 6, 8);
}
function Shot01(_arg1:Number, _arg2:Number, _arg3:Number){
SetBaseInformation(Boss.x, Boss.y, 0, 0, 0, 0, 0, 0, 0, 0);
FesUtil.SetMoveBase((Math2.GetRandom((_arg2 * 10), (_arg1 * 10)) / 10), _arg3, 0, 0);
FesUtil.SetImage(ShotNormal, ColorRed);
FesUtil.SetMoveBoundNext(1, false, false, false, true, new Array(Shot1_RED));
FesUtil.SetReTarget(true, Player);
FesUtil.SetMoveBase(0, (_arg3 / 2), 0, 0);
FesUtil.SetImage(ShotRice, ColorRed);
FesUtil.SetMoveStraight();
FesUtil.SetReTarget(false, null);
Fes.SingleShot(0, 0);
}
override function CommonScript(){
if ((TimeCount % 120) == 0){
SetBaseInformation(Boss.x, Boss.y, 0, 0, ShotBigBall, ColorRed, 0, 0, 0, 0);
FesUtil.SetMoveStraight();
Fes.NwayShot(32, 270, 10, 8);
};
if ((TimeCount % 100) < 50){
if ((TimeCount % PerCount1) == 0){
Shot01(70, 0, Spd1);
};
} else {
if ((TimeCount % PerCount1) == 0){
Shot01(110, 0, Spd1);
};
};
TimeCount++;
if (TimeCount == 600){
TimeCount = 0;
};
}
}
}//package
Section 186
//Spell02_002 (Spell02_002)
package {
public class Spell02_002 extends SpellBase {
protected var _Sita:Number;
public static var SpellName:String = "ステージ2:スペルカード2( 妖夢スペル )";
public function Spell02_002(){
MAXHP = 1000;
}
function Shot01(_arg1:Number){
var _local2:PointList;
var _local3:Number;
_local2 = new PointList();
_local3 = GetRock();
_local2.SetLine(Boss.x, Boss.y, (Boss.x + (Math2.GetCosB(_local3) * 400)), (Boss.y + (Math2.GetSinB(_local3) * 400)), 50);
SetBaseInformation(Boss.x, Boss.y, 0, 0, 2, ColorWhite, 0, 0, 0, 0);
FesUtil.SetWaitEx(true, 120, 1);
FesUtil.SetInvisibleEx(true, 0, 0.25);
FesUtil.SetMoveStraight();
Fes.PointShotEx(_local2.GetArrayX(), _local2.GetArrayY(), _local3, 4, _arg1);
FesUtil.SetWaitEx(false);
FesUtil.SetInvisibleEx(false);
}
override function CommonScript(){
if (TimeCount == 0){
Ec.ChargeEffect(Boss.x, Boss.y, 30);
MainValue.CBattle.SetPerFrame(2);
} else {
if (TimeCount < 60){
} else {
if (TimeCount == 60){
MainValue.CBattle.SetPerFrame(1);
};
};
};
if (TimeCount == 60){
Shot01(4);
Shot01(0);
Shot01(356);
};
TimeCount++;
if (TimeCount == 300){
TimeCount = 0;
};
}
}
}//package
Section 187
//Spell02_003 (Spell02_003)
package {
public class Spell02_003 extends SpellBase {
private var Spd1:Number;
private var PerCount1:uint;
public static var SpellName:String = "ステージ2:通常弾幕2( 幽々子 )";
public function Spell02_003(){
MAXHP = 1000;
PerCount1 = IF_DIF(12, 8, 5, 3);
Spd1 = IF_DIF(2, 4, 6, 8);
}
function Shot02(){
SetBaseInformation(Boss.x, Boss.y, 30, 0, 0, ColorPurple);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetMoveStraight();
Fes.NwayShot(7, GetRock(), 8, 2);
}
function Shot01(_arg1:Number, _arg2:uint){
var _local3:Number;
var _local4:uint;
var _local5:Number;
_local3 = (GetRock() + 180);
_local4 = 0;
while (_local4 < 4) {
SetBaseInformation(Boss.x, Boss.y, 0, 0, 2, ColorPurple, 0, 0, 0, 0);
SetWaitInvisibleOn(0, 3, 0, 0);
_local5 = Math2.IF_NUMBER((_arg1 > 0), (_local3 + (20 * _local4)), (_local3 - (20 * _local4)));
FesUtil.SetMoveBase(_local5, 3, 0, 0);
FesUtil.SetMoveCurve(_arg1, (180 / Math.abs(_arg1)));
Fes.LineShotEx(_arg2, 0, 0);
SetWaitInvisibleOff();
_local4++;
};
}
override function CommonScript(){
if ((TimeCount % 120) == 0){
Shot01(1.5, 15);
Shot01(-1.5, 15);
};
if ((TimeCount % 30) == 0){
Shot02();
};
TimeCount++;
if (TimeCount == 600){
TimeCount = 0;
};
}
}
}//package
Section 188
//Spell02_004 (Spell02_004)
package {
public class Spell02_004 extends SpellBase {
private var Spd1:Number;
private var PerCount1:uint;
public static var SpellName:String = "ステージ2:スペルカード2 ( 幽々子 )";
public function Spell02_004(){
MAXHP = 1000;
PerCount1 = IF_DIF(12, 8, 5, 3);
Spd1 = IF_DIF(2, 4, 6, 8);
}
function Shot02(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
_local1 = Math2.GetRandom(_StageData.Width, _StageData.Left);
_local2 = Math2.GetRandom(60, (Boss.y - 30));
_local3 = (Math2.GetRandom(150, 150) / 100);
FesUtil.SetEffect(true, ColorPurple);
FesUtil.SetWait(true, 30);
FesUtil.SetImage(2, ColorPurple);
FesUtil.SetBasePosition(_local1, _local2);
FesUtil.SetMoveBase(90, _local3);
FesUtil.SetMoveStraight();
Fes.SingleShot(0, 0);
FesUtil.SetEffect(false);
FesUtil.SetWait(false);
}
function Shot01(_arg1:Number, _arg2:Number){
var _local3:Number;
var _local4:Number;
var _local5:Number;
SetBaseInformation(Boss.x, Boss.y, 0, 0, 0, 0, 0, 0, 0, 0);
_local3 = (GetRock() + _arg1);
_local4 = (90 / Math.abs(_arg2));
_local5 = (Math2.GetDistance(Boss.x, Boss.y, Player.x, Player.y) / _local4);
FesUtil.SetMoveBase(_local3, _local5, 0, 0);
FesUtil.SetImage(0, ColorPurple);
FesUtil.SetMoveCurve(_arg2, _local4);
Fes.SingleShot(0, 0);
}
override function CommonScript(){
var _local1:uint;
if ((TimeCount % 30) == 0){
_local1 = 0;
while (_local1 < 4) {
Shot01(45, (-1.5 - (0.5 * _local1)));
Shot01(315, (1.5 + (0.5 * _local1)));
_local1++;
};
};
if ((TimeCount % 5) == 0){
Shot02();
};
TimeCount++;
if (TimeCount == 600){
TimeCount = 0;
};
}
}
}//package
Section 189
//Spell02_005 (Spell02_005)
package {
public class Spell02_005 extends SpellBase {
private var ArrShot2:Array;
private var ArrShot1:Array;
public static var SpellName:String = "ステージ2:スペルカード3( 妖夢 )";
public function Spell02_005(){
MAXHP = 1000;
}
function Shot01(_arg1:Number, _arg2:Number, _arg3:Number){
SetBaseInformation(_arg1, _arg2, 0, 0, ShotNormal, ColorWhite, 0, 0, 0, 120);
FesUtil.SetMoveStraight();
return (Fes.LineShot(11, _arg3, 0, 0.4));
}
function Shot03(){
SetBaseInformation(Boss.x, Boss.y, 0, 0, ShotReihu, ColorRed, Math2.GetRandom(360, 0), 3, 0, 0);
FesUtil.SetMoveStraight();
Fes.SingleShot();
}
function Shot02(_arg1:Number, _arg2:Number, _arg3:Number){
SetBaseInformation(_arg1, _arg2, 0, 0, ShotNormal, ColorWhite, 0, 0, 0, 300);
FesUtil.SetMoveStraight();
return (Fes.LineShot(10, _arg3, 0.4, 0.4));
}
override function CommonScript(){
var _local1:Number;
var _local2:uint;
var _local3:uint;
var _local4:Object;
var _local5:Object;
if (TimeCount == 60){
Ec.ChargeEffect(Boss.x, Boss.y, 30);
MainValue.CBattle.SetPerFrame(2);
};
if (TimeCount == 90){
MainValue.CBattle.SetPerFrame(1);
};
if (TimeCount == 0){
_local1 = Math2.GetRandom(20, (Boss.y - 10));
ArrShot1 = Shot01((_StageData.Left + 5), _local1, 90);
ArrShot2 = Shot01((_StageData.Right - 5), (_local1 - 20), 90);
} else {
if (TimeCount == 90){
_local2 = 0;
while (_local2 < ArrShot1.length) {
_local4 = ArrShot1[_local2];
if (_local4 != null){
Shot02(_local4.x, _local4.y, 0);
};
_local2++;
};
_local3 = 0;
while (_local3 < ArrShot2.length) {
_local5 = ArrShot2[_local3];
if (_local5 != null){
Shot02(_local5.x, _local5.y, 180);
};
_local3++;
};
};
};
TimeCount++;
if (TimeCount == 360){
TimeCount = 0;
};
}
}
}//package
Section 190
//Spell02_006 (Spell02_006)
package {
public class Spell02_006 extends SpellBase {
public static var SpellName:String = "ステージ2:スペルカード4( 幽々子 )";
public function Spell02_006(){
MAXHP = 1000;
}
function Shot01(){
var _local1:Number;
var _local2:uint;
var _local3:Number;
_local1 = GetRock();
_local2 = 0;
while (_local2 < 12) {
_local3 = (_local1 + (_local2 * 30));
SetBaseInformation(Boss.x, Boss.y, 30, 0, ShotBigBall, ColorPink);
FesUtil.SetMoveStraight();
Fes.LineShot(20, _local3, 0.5, 0.4);
_local2++;
};
}
function Shot03(){
var _local1:uint;
_local1 = 0;
while (_local1 < 5) {
SetBaseInformation(Boss.x, Boss.y, 0, 0, ShotNormal, ColorPink);
FesUtil.SetMoveBase((GetRock() - 135), 5, 0, 75);
FesUtil.SetMoveCurve(-5, 45);
FesUtil.SetMoveBase(((GetRock() - 30) + (15 * _local1)), 3, 0, 0);
FesUtil.SetMoveStraight();
Fes.SingleShot();
_local1++;
};
}
function Shot02(){
var _local1:uint;
_local1 = 0;
while (_local1 < 5) {
SetBaseInformation(Boss.x, Boss.y, 0, 0, ShotNormal, ColorPink);
FesUtil.SetMoveBase((GetRock() + 135), 5, 0, 75);
FesUtil.SetMoveCurve(5, 45);
FesUtil.SetMoveBase(((GetRock() - 30) + (15 * _local1)), 3, 0, 0);
FesUtil.SetMoveStraight();
Fes.SingleShot();
_local1++;
};
}
override function CommonScript(){
if (TimeCount == 0){
Shot01();
} else {
if (TimeCount > 30){
if ((TimeCount % 15) == 0){
Shot02();
Shot03();
};
if ((TimeCount % 3) == 0){
Shot04();
};
};
};
TimeCount++;
if (TimeCount == 360){
TimeCount = 0;
};
}
function Shot04(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
_local1 = Math2.GetRandom(_StageData.Width, _StageData.Left);
_local2 = Math2.GetRandom(60, (Boss.y - 30));
_local3 = (Math2.GetRandom(150, 150) / 100);
FesUtil.SetEffect(true, ColorPurple);
FesUtil.SetWait(true, 30);
FesUtil.SetImage(2, ColorPink);
FesUtil.SetBasePosition(_local1, _local2);
FesUtil.SetMoveBase(90, _local3);
FesUtil.SetMoveStraight();
Fes.SingleShot(0, 0);
FesUtil.SetEffect(false);
FesUtil.SetWait(false);
}
}
}//package
Section 191
//Spell03_001 (Spell03_001)
package {
public class Spell03_001 extends SpellBase {
private var ArrMagic:Array;
public static var SpellName:String = "ステージ1:スペルカード3";
public function Spell03_001(){
MAXHP = 1000;
}
function Shot01(_arg1:Number, _arg2:uint, _arg3:uint){
FesUtil.SetEffect(true, 0);
FesUtil.SetWaitEx(true, _arg2, 0);
FesUtil.SetInvisibleEx(true, _arg3, 0);
FesUtil.SetImage(ShotBigBall, ColorRed);
FesUtil.SetBasePosition(Boss.x, Boss.y, 30, 0);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetMoveStraight();
Fes.NwayShotEx(35, (_arg1 + 180), 10, 8);
FesUtil.SetWaitEx(false);
FesUtil.SetInvisibleEx(false);
FesUtil.SetEffect(false, 0);
}
override function CommonScript(){
var _local1:Number;
var _local2:uint;
var _local3:Number;
var _local4:uint;
if (TimeCount == 0){
_local1 = GetRock();
_local2 = 0;
while (_local2 < 8) {
Shot01((GetRock() + (_local2 * 3)), (_local2 * 5), (_local2 * 5));
_local2++;
};
} else {
if (TimeCount == 60){
_local3 = GetRock();
_local4 = 0;
while (_local4 < 8) {
Shot01((_local3 - (_local4 * 3)), (_local4 * 5), (_local4 * 5));
_local4++;
};
};
};
TimeCount++;
if (TimeCount == 120){
TimeCount = 0;
};
}
}
}//package
Section 192
//Spell03_002 (Spell03_002)
package {
public class Spell03_002 extends SpellBase {
private var ArrMagic:Array;
public static var SpellName:String = "ステージ3:スペルカード1";
public function Spell03_002(){
MAXHP = 1000;
}
function Shot01(_arg1:Number, _arg2:Number){
var _local3:PointList;
_local3 = new PointList();
_local3.SetStar(_arg1, _arg2, 270, 100, 10);
FesUtil.SetImage(2, 3);
FesUtil.SetEffect(true, 3);
FesUtil.SetWaitEx(true, 90, 0);
FesUtil.SetInvisibleEx(true, 0, 1);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetMoveStraight();
Fes.PointShotEx(_local3.GetArrayX(), _local3.GetArrayY(), 90, 1, 14.4, 0);
FesUtil.SetWaitEx(false);
FesUtil.SetInvisibleEx(false);
FesUtil.SetEffect(false, 0);
}
override function CommonScript(){
if ((TimeCount % 150) == 0){
if (Difficult == 0){
Shot01(Boss.x, Boss.y);
} else {
if (Difficult == 1){
Shot01((Boss.x + 100), Boss.y);
Shot01((Boss.x - 100), Boss.y);
} else {
if (Difficult == 2){
Shot01((Boss.x + 100), (Boss.y + 50));
Shot01((Boss.x - 100), (Boss.y + 50));
Shot01((Boss.x + 0), (Boss.y - 50));
} else {
if (Difficult == 3){
Shot01((Boss.x + 50), (Boss.y + 50));
Shot01((Boss.x - 50), (Boss.y + 50));
Shot01((Boss.x + 50), (Boss.y - 50));
Shot01((Boss.x - 50), (Boss.y - 50));
};
};
};
};
};
TimeCount++;
if (TimeCount == 600){
TimeCount = 0;
};
}
}
}//package
Section 193
//SpellBase (SpellBase)
package {
class SpellBase {
protected var Player:PlayerScript;
protected var ShotCircle:uint;// = 1
protected var ShotStar:uint;// = 3
protected var Boss:BossScript;
protected var ShotRice:uint;// = 2
protected var FlgSpellCard:Boolean;
protected var ColorYellow:uint;// = 3
protected var ShotNormal:uint;// = 0
public var TimeCount:int;
protected var ShotBigBall:uint;// = 7
protected var _StageData:StageData;
protected var ShotKnife:uint;// = 4
protected var ColorWhite:uint;// = 5
protected var ShotMiniBall:uint;// = 5
protected var ShotReihu:uint;// = 8
protected var ColorBlue:uint;// = 2
protected var ShotNormalBall:uint;// = 6
protected var ColorGreen:uint;// = 1
protected var ColorDammy:uint;// = 6
protected var MAXHP:uint;
protected var ColorRed:uint;// = 0
protected var Difficult:Number;
protected var ColorPurple:uint;// = 4
protected var ColorPink:uint;// = 6
function SpellBase(){
ShotNormal = 0;
ShotCircle = 1;
ShotRice = 2;
ShotStar = 3;
ShotKnife = 4;
ShotMiniBall = 5;
ShotNormalBall = 6;
ShotBigBall = 7;
ShotReihu = 8;
ColorRed = 0;
ColorGreen = 1;
ColorBlue = 2;
ColorYellow = 3;
ColorPurple = 4;
ColorWhite = 5;
ColorDammy = 6;
ColorPink = 6;
super();
Player = MainValue.Player;
Boss = MainValue.Boss;
Difficult = MainValue.Difficult;
_StageData = MainValue._StageData;
FlgSpellCard = false;
TimeCount = 0;
}
function MainScript(){
if (Difficult == 0){
Easy();
} else {
if (Difficult == 1){
Normal();
} else {
if (Difficult == 2){
Hard();
} else {
if (Difficult == 3){
Lunatic();
};
};
};
};
}
function Hard(){
CommonScript();
}
function Normal(){
CommonScript();
}
function SetWaitInvisibleOff(){
FesUtil.SetWaitEx(false);
FesUtil.SetInvisibleEx(false);
}
function SetWaitInvisibleOn(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
FesUtil.SetWaitEx(true, _arg1, _arg2);
FesUtil.SetInvisibleEx(true, _arg3, _arg4);
}
function Easy(){
CommonScript();
}
function CommonScript(){
}
function GetRock(){
return (Math2.GetTargetSitaB(Player, Boss));
}
function IF_DIF(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number){
if (Difficult == 0){
return (_arg1);
};
if (Difficult == 1){
return (_arg2);
};
if (Difficult == 2){
return (_arg3);
};
if (Difficult == 3){
return (_arg4);
};
}
function Lunatic(){
CommonScript();
}
function GetSpellCardFlg(){
return (FlgSpellCard);
}
function GetMaxHP(){
return (MAXHP);
}
function SetBaseInformation(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:uint, _arg6:uint, _arg7:Number=0, _arg8:Number=0, _arg9:uint=0, _arg10:int=0){
FesUtil.SetBasePosition(_arg1, _arg2, _arg3, _arg4);
FesUtil.SetImage(_arg5, _arg6);
FesUtil.SetMoveBase(_arg7, _arg8, _arg9, _arg10);
}
}
}//package
Section 194
//SpellBreak (SpellBreak)
package {
class SpellBreak extends EffectBase {
function SpellBreak(_arg1:Number, _arg2:Number){
super(_arg1, _arg2);
addChild(GMath.DrawCircle(0, 0, 400, 0xFFFFFF));
scaleX = 0.1;
scaleY = 0.1;
TimeCount = 0;
DeleteCount = 30;
}
override function Move(){
super.Move();
scaleX = (scaleX + 0.03);
scaleY = (scaleY + 0.03);
TimeCount++;
return ((TimeCount < DeleteCount));
}
}
}//package
Section 195
//SpellCardImageControl (SpellCardImageControl)
package {
import flash.display.*;
class SpellCardImageControl {
protected var ArrImageBoss:Array;
protected var ArrImageSubBoss:Array;
protected var _LoadImageControl:LoadImageControl;
function SpellCardImageControl(){
ArrImageBoss = new Array();
ArrImageSubBoss = new Array();
_LoadImageControl = new LoadImageControl();
_LoadImageControl.LoadImage("./image/img_sub1.png", this, 0);
}
function GetImage(_arg1:uint){
return (ArrImageBoss[_arg1]);
}
function ImageLoadComplete(_arg1:DisplayObjectContainer, _arg2:int){
ArrImageBoss[_arg2] = _arg1;
}
function LoadError(_arg1:int){
ArrImageBoss[_arg1] = null;
}
}
}//package
Section 196
//SpellControl (SpellControl)
package {
class SpellControl extends SpellControlBase {
function SpellControl(_arg1:uint, _arg2:uint, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
}
}//package
Section 197
//SpellControlBase (SpellControlBase)
package {
import flash.display.*;
import flash.text.*;
class SpellControlBase {
protected var ResultTimeCount:int;
protected var FlgSpellCard:Boolean;
protected var BattleMode:uint;
protected var ResultTime:int;
protected var NowHP:int;
protected var FlgSpellCardGet:Boolean;
protected var TextScore:TextField;
protected var StageNumber:uint;
protected var TextSpellTime:TextField;
protected var TextResult:TextField;
protected var MaxHP:uint;
protected var SpellStage:Sprite;
protected var FlgEnd:Boolean;
protected var ArrSpell:Array;
protected var ObjStage:Object;
protected var SpellNumber:uint;
protected var Bar:Sprite;
protected var SpellTime:int;
protected var _NowSpell:Object;
function SpellControlBase(_arg1:uint, _arg2:uint, _arg3:Boolean=false){
StageNumber = _arg1;
SpellNumber = _arg2;
ObjStage = MainValue.SpellStage;
GetSpellData(_arg3);
BattleMode = 0;
FlgEnd = false;
SpellTime = 3000;
SetBarImage();
}
function MainScript(){
var _local1:uint;
var _local2:Boolean;
var _local3:uint;
if (FlgEnd){
return (FlgEnd);
};
if (BattleMode == 1){
if (_NowSpell != null){
_NowSpell.MainScript();
};
if (SpellTime > 0){
SpellTime--;
_local1 = Math.floor((SpellTime / 60));
TextSpellTime.text = Math2.FormatString(2, _local1);
if (SpellTime == 0){
NowHP = 0;
Damage(1);
};
};
} else {
if (BattleMode == 0){
_local2 = BarGagePlus();
if (_local2){
SetSpell();
BattleMode = 1;
};
} else {
if (BattleMode == 2){
if (FlgSpellCard){
DisplaySpellResult();
};
if (ResultTimeCount++ >= ResultTime){
if (FlgSpellCard){
MainValue.CharaStage.removeChild(TextResult);
MainValue.CharaStage.removeChild(TextScore);
};
MainValue.Boss.SetMove(MainValue._BossBaseX, MainValue._BossBaseY);
if (SpellNumber < MainValue.ArrBossType.length){
if (MainValue.ArrBossType[(SpellNumber - 1)] != MainValue.ArrBossType[(SpellNumber + 0)]){
if (MainValue._FlgSubBoss == false){
_local3 = (((StageNumber - 1) * 2) + MainValue.ArrBossType[(SpellNumber + 0)]);
MainValue.Boss.SetImage(MainValue.ArrBossImg[_local3]);
};
};
};
BattleMode = 0;
FlgEnd = true;
};
};
};
};
return (FlgEnd);
}
function SetSpell(){
_NowSpell = new (ArrSpell[(SpellNumber - 1)]);
FlgSpellCard = _NowSpell.GetSpellCardFlg();
if (FlgSpellCard){
FlgSpellCardGet = true;
};
MaxHP = _NowSpell.GetMaxHP();
NowHP = MaxHP;
}
function BarGagePlus():Boolean{
Bar.scaleX = (Bar.scaleX + 0.01);
if (Bar.scaleX >= 1){
Bar.scaleX = 1;
return (true);
};
return (false);
}
function GetSpell(){
var _local1:Object;
_local1 = new (ArrSpell[(SpellNumber - 1)]);
MaxHP = _local1.GetMaxHP();
NowHP = MaxHP;
return (_local1);
}
function Damage(_arg1:int){
if (BattleMode == 1){
NowHP = (NowHP - _arg1);
if (NowHP <= 0){
NowHP = 0;
Bar.scaleX = 0;
SpellBreak();
} else {
Bar.scaleX = (NowHP / MaxHP);
};
};
}
function PlayerDead(){
if (FlgSpellCard){
FlgSpellCardGet = false;
};
}
function SetStageObject(_arg1:Object){
ObjStage = _arg1;
}
function SetSpellTimeText(){
var _local1:TextFormat;
if (TextSpellTime == null){
TextSpellTime = CMath.CreateTextField(360, 20, 30, 30, 0xFFFFFF, "00");
_local1 = new TextFormat(null, 25);
TextSpellTime.defaultTextFormat = _local1;
TextSpellTime.setTextFormat(_local1);
ObjStage.addChild(TextSpellTime);
};
}
function SpellEnd(){
ObjStage.removeChild(SpellStage);
ObjStage.removeChild(TextSpellTime);
}
function GetBattleMode(){
return (BattleMode);
}
function SetNextSpell(){
SpellNumber++;
BattleMode = 0;
SpellTime = 3000;
FlgEnd = false;
}
function SpellBreak(){
Bar.scaleX = 0;
TextSpellTime.text = "";
BattleMode = 2;
ResultTime = 180;
ResultTimeCount = 0;
Ec.SpellBreakEffect(MainValue.Boss.x, MainValue.Boss.y);
MainValue.ArrEnemyShot.RemoveAll();
}
function GetSpellData(_arg1:Boolean){
if (_arg1 == false){
ArrSpell = MainValue.CSpellData.GetSpellData(StageNumber);
} else {
ArrSpell = MainValue.CSpellData.GetSubSpellData(StageNumber);
};
}
function DisplaySpellResult(){
var _local1:TextFormat;
var _local2:TextFormat;
if (ResultTimeCount == 30){
if (FlgSpellCardGet){
TextResult = CMath.CreateTextField(20, 150, 380, 50, 0xFF0000, "SPELL CARD BONUS");
TextScore = CMath.CreateTextField(20, 180, 380, 50, 0xFF0000, "100,000");
} else {
TextResult = CMath.CreateTextField(20, 150, 380, 50, 0x444444, "SPELL CARD FAILED");
TextScore = CMath.CreateTextField(20, 180, 380, 50, 0xFF0000, "");
};
_local1 = new TextFormat(null, 24);
_local2 = new TextFormat(null, 36);
TextResult.autoSize = TextFieldAutoSize.CENTER;
TextScore.autoSize = TextFieldAutoSize.CENTER;
TextResult.defaultTextFormat = _local1;
TextScore.defaultTextFormat = _local2;
TextResult.setTextFormat(_local1);
TextScore.setTextFormat(_local2);
MainValue.CharaStage.addChild(TextResult);
MainValue.CharaStage.addChild(TextScore);
};
}
function GetEndFlg(){
return (FlgEnd);
}
function CheckNextSpell(){
if (SpellNumber < ArrSpell.length){
return (true);
};
return (false);
}
function SetBarImage(){
SpellStage = new Sprite();
Bar = GMath.DrawRect(30, 30, 320, 5, 0xFF0000, 1, true, 0xFF0000, 1);
Bar.scaleX = 0;
SpellStage.addChild(Bar);
ObjStage.addChild(SpellStage);
}
}
}//package
Section 198
//SpellDataControl (SpellDataControl)
package {
class SpellDataControl {
protected var StageCount:uint;
public var ArrSubSpellData:Array;
public var ArrSpellData:Array;
function SpellDataControl(_arg1:uint){
StageCount = _arg1;
ArrSpellData = new Array(_arg1);
ArrSubSpellData = new Array(_arg1);
}
function GetSubSpellData(_arg1:uint){
return (ArrSubSpellData[(_arg1 - 1)]);
}
function SetSubSpell(_arg1:uint, _arg2:uint, _arg3:Object){
if (ArrSubSpellData[(_arg1 - 1)] == null){
ArrSubSpellData[(_arg1 - 1)] = new Array();
};
ArrSubSpellData[(_arg1 - 1)][(_arg2 - 1)] = _arg3;
}
function SetSpell(_arg1:uint, _arg2:uint, _arg3:Object){
if (ArrSpellData[(_arg1 - 1)] == null){
ArrSpellData[(_arg1 - 1)] = new Array();
};
ArrSpellData[(_arg1 - 1)][(_arg2 - 1)] = _arg3;
}
function GetStageCount(){
return (StageCount);
}
function SetSpellArray(_arg1:uint, _arg2:Array){
ArrSpellData[(_arg1 - 1)] = _arg2;
}
function SetSubSpellArray(_arg1:uint, _arg2:Array){
ArrSubSpellData[(_arg1 - 1)] = _arg2;
}
function GetSpellData(_arg1:uint){
return (ArrSpellData[(_arg1 - 1)]);
}
}
}//package
Section 199
//SpellPracticeMenu (SpellPracticeMenu)
package {
import flash.display.*;
import flash.text.*;
public class SpellPracticeMenu extends MenuBase {
protected var _TextX1:Number;// = 0
protected var _TextX3:Number;// = 320
protected var _StageNumber:uint;
protected var _TextHeight1:Number;// = 25
protected var _TextHeight3:Number;// = 25
protected var _TextY1:Number;// = 0
protected var _TextY3:Number;// = 0
protected var _RangeText:Number;// = 30
protected var _StageCount:int;
protected var _TextWidth1:Number;// = 240
protected var _TextWidth3:Number;// = 80
protected var _SpellCount:int;
protected var _BaseX:Number;// = 20
protected var _BaseY:Number;// = 20
protected var _SpellNumber:uint;
protected var ArrSpellDataSub:Array;
protected var _Difficult:int;
protected var _SubSpellCount:int;
protected var ArrSaveItem:Array;
protected var _TextDifficult:TextField;
protected var ArrSpellData:Array;
public function SpellPracticeMenu(){
var _local1:Sprite;
_TextX1 = 0;
_TextX3 = 320;
_TextY1 = 0;
_TextY3 = 0;
_TextWidth1 = 240;
_TextWidth3 = 80;
_TextHeight1 = 25;
_TextHeight3 = 25;
_BaseX = 20;
_BaseY = 20;
_RangeText = 30;
super();
_Difficult = MainValue.SP_Difficult;
_StageNumber = MainValue.SP_StageNumber;
_SpellNumber = MainValue.SP_SpellNumber;
_StageCount = MainValue.CSpellData.GetStageCount();
_StageCount = 3;
_SpellCount = 0;
ArrSaveItem = new Array();
GetSpellData();
Index = Math2.IF_NUMBER(MainValue._FlgSubBoss, (_SpellNumber - 1), ((_SpellNumber + _SubSpellCount) - 1));
_PrevMenu = ShotMenu;
_local1 = GMath.DrawRect(0, 0, 100, 100, 0xFFFFFF, 0, true, 0xFF);
_local1.alpha = 0.5;
SetCurcor(_local1);
_CursorType = 1;
SetItemData();
SetItem();
_TextDifficult = CMath.CreateTextField(560, 10, 70, 20, 0xFFFFFF);
_TextDifficult.autoSize = TextFieldAutoSize.RIGHT;
addChild(_TextDifficult);
SetDifficult();
}
function SetDifficult(){
if (_Difficult == 0){
_TextDifficult.text = "EASY";
} else {
if (_Difficult == 1){
_TextDifficult.text = "NORMAL";
} else {
if (_Difficult == 2){
_TextDifficult.text = "HARD";
} else {
_TextDifficult.text = "LUNATIC";
};
};
};
}
function GetSpellData(){
var _local1:Array;
var _local2:Array;
_local1 = MainValue.CSpellData.GetSpellData(_StageNumber);
_local2 = MainValue.CSpellData.GetSubSpellData(_StageNumber);
ArrSpellData = new Array();
Math2.AddArrayData(ArrSpellData, _local2);
Math2.AddArrayData(ArrSpellData, _local1);
_SpellCount = ArrSpellData.length;
_SubSpellCount = _local2.length;
}
override function SelectEvent(_arg1:int){
var _local2:Boolean;
_local2 = (_arg1 < _SubSpellCount);
MainValue._FlgSubBoss = _local2;
_arg1 = Math2.IF_NUMBER(_local2, _arg1, (_arg1 - _SubSpellCount));
MainValue.Difficult = _Difficult;
MainValue._StageNumber = _StageNumber;
MainValue.SP_Difficult = _Difficult;
MainValue.SP_StageNumber = _StageNumber;
MainValue.SP_SpellNumber = (_arg1 + 1);
}
override function EtcKeyEvent(){
if (CKey.IsKeyOnce(37)){
if (_StageNumber == 1){
_StageNumber = _StageCount;
} else {
_StageNumber--;
};
GetSpellData();
SetItemData();
} else {
if (CKey.IsKeyOnce(39)){
if (_StageNumber == _StageCount){
_StageNumber = 1;
} else {
_StageNumber++;
};
GetSpellData();
SetItemData();
} else {
if (CKey.IsKeyOnce(16)){
_Difficult = ((_Difficult + 1) % 4);
SetDifficult();
};
};
};
}
function SetItemData(){
var _local1:uint;
var _local2:uint;
var _local3:uint;
var _local4:Sprite;
var _local5:String;
var _local6:TextFormat;
var _local7:TextField;
var _local8:TextField;
_local1 = 0;
while (_local1 < ArrSaveItem.length) {
this.removeChild(ArrSaveItem[_local1]);
_local1++;
};
ArrSaveItem = new Array();
Index = Math2.IF_NUMBER((Index < _SpellCount), Index, (_SpellCount - 1));
ItemCount = 0;
GetSpellData();
_local2 = 0;
while (_local2 < _SpellCount) {
_local4 = new Sprite();
_local5 = ArrSpellData[_local2].SpellName;
_local6 = new TextFormat(null, 16, 0xFFFFFF, true);
_local7 = CMath.CreateTextField(_TextX1, _TextY1, _TextWidth1, _TextHeight1, 0xFFFFFF, _local5, false);
_local8 = CMath.CreateTextField(_TextX3, _TextY3, _TextWidth3, _TextHeight3, 0xFFFFFF, "(000/000)", false);
_local7.defaultTextFormat = _local6;
_local8.defaultTextFormat = _local6;
_local7.setTextFormat(_local6);
_local8.setTextFormat(_local6);
_local4.addChild(_local7);
_local4.addChild(_local8);
_local4.x = _BaseX;
_local4.y = (_BaseY + (_RangeText * _local2));
ArrSaveItem.push(_local4);
AddItem(_local4);
_local2++;
};
_local3 = 0;
while (_local3 < _SpellCount) {
AddNextMenu(0);
_local3++;
};
SetItem();
}
}
}//package
Section 200
//StageControl (StageControl)
package {
import flash.display.*;
class StageControl extends StageControlBase {
protected var CMenu:MenuControl;
protected var SELECT_MODE:int;// = 0
protected var SELECT_TALK:uint;// = 10
protected var SELECT_BATTLE:uint;// = 0
protected var CKey:KeyControl;
protected var MainStage:MovieClip;
protected var SELECT_STOP:uint;// = 20
protected var MenuStage:Sprite;
function StageControl(_arg1:MovieClip, _arg2:uint){
SELECT_MODE = 0;
SELECT_BATTLE = 0;
SELECT_TALK = 10;
SELECT_STOP = 20;
super(_arg2);
MainStage = _arg1;
SELECT_MODE = SELECT_BATTLE;
CKey = MainValue.CKey;
}
override function MainScript(){
var _local1:Boolean;
if (SELECT_MODE == SELECT_BATTLE){
if (CKey.IsKeyOnce(81)){
MenuInitialize();
return (FlgEnd);
};
return (super.MainScript());
} else {
if (SELECT_MODE == SELECT_STOP){
_local1 = CMenu.MainScript();
if (_local1){
MenuTermination();
if (MainValue._FlgReturnTitle){
FlgEnd = true;
} else {
SELECT_MODE = SELECT_BATTLE;
};
};
};
};
return (FlgEnd);
}
function MenuTermination(){
CMenu = null;
MainStage.removeChild(MenuStage);
MenuStage = null;
}
override function MainObjectScript(){
MainValue.Player.MainScript();
MainValue.ArrPlayerShot.MainScript();
MainValue.ArrEnemyShot.MainScript();
MainValue.ArrEnemy.MainScript();
MainValue.ArrItem.MainScript();
MainValue.ArrEffect.MainScript();
}
function MenuInitialize(){
SELECT_MODE = SELECT_STOP;
CMenu = new MenuControl();
MenuStage = new Sprite();
MainStage.addChild(MenuStage);
CMenu.SetStage(MenuStage);
CMenu.SetMainMenu(PauseMenu);
}
}
}//package
Section 201
//StageControlBase (StageControlBase)
package {
class StageControlBase {
protected var CEnemy:EnemyControl;
protected var _StageNumber:uint;
protected var FlgEnd:Boolean;
function StageControlBase(_arg1:uint){
_StageNumber = _arg1;
CEnemy = new EnemyControl(_StageNumber);
FlgEnd = false;
}
function MainObjectScript(){
}
function MainScript(){
var _local1:Boolean;
var _local2:int;
MainObjectScript();
_local1 = CEnemy.MainScript();
if (_local1){
FlgEnd = true;
_local2 = CEnemy.GetBossType();
if (_local2 == 1){
MainValue._FlgSubBoss = true;
} else {
if (_local2 == 2){
MainValue._FlgSubBoss = false;
};
};
FlgEnd = true;
};
return (FlgEnd);
}
function Restart(){
FlgEnd = false;
CEnemy.Restart();
}
}
}//package
Section 202
//StageData (StageData)
package {
class StageData extends RectData {
function StageData(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number=0){
super(_arg1, _arg2, _arg3, _arg4);
ChangeSize(_arg5);
}
function GetNew(_arg1:Number=0){
return (new StageData(_Left, _Right, _Top, _Down, _arg1));
}
function ChangeSize(_arg1:Number, _arg2:Boolean=true, _arg3:Boolean=true, _arg4:Boolean=true, _arg5:Boolean=true){
_Left = Math2.IF_NUMBER(_arg2, (_Left - _arg1), _Left);
_Right = Math2.IF_NUMBER(_arg3, (_Right + _arg1), _Right);
_Top = Math2.IF_NUMBER(_arg4, (_Top - _arg1), _Top);
_Down = Math2.IF_NUMBER(_arg5, (_Down + _arg1), _Down);
}
}
}//package
Section 203
//StageData01 (StageData01)
package {
public class StageData01 extends StageDataBase {
public function StageData01(){
var _local1:int;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:AppearEnemyData;
var _local7:AppearEnemyData;
var _local8:Number;
var _local9:Number;
var _local10:Number;
var _local11:Number;
var _local12:AppearEnemyData;
var _local13:AppearEnemyData;
var _local14:Number;
var _local15:Number;
var _local16:Number;
var _local17:Number;
var _local18:AppearEnemyData;
var _local19:AppearEnemyData;
var _local20:Number;
var _local21:Number;
var _local22:Number;
var _local23:Number;
var _local24:AppearEnemyData;
var _local25:AppearEnemyData;
super();
if (MainValue.FlgDebug){
Add(60, BossScript, BossImgLumia, _StageData.CenterX, -100, ItemNone, FlgSubBoss);
Add(120, BossScript, BossImgReimu, _StageData.CenterX, -100, ItemNone, FlgBoss);
return;
};
_local1 = 0;
_local1 = (_local1 + 0);
_local2 = (_StageData.Left - 20);
_local3 = 50;
_local4 = (_StageData.Right + 20);
_local5 = 100;
_local6 = new AppearEnemyData(_local1, S01_Enemy01, EnemyImg01, _local2, _local3, ItemPower);
_local7 = new AppearEnemyData(_local1, S01_Enemy01, EnemyImg01, _local4, _local5, ItemPower);
AddGroupData(5, _local6, 0, -30, 0);
AddGroupData(5, _local7, 0, 30, 0);
_local1 = (_local1 + 240);
_local8 = (_StageData.Left - 20);
_local9 = 100;
_local10 = (_StageData.Right + 20);
_local11 = 50;
_local12 = new AppearEnemyData(_local1, S01_Enemy01, EnemyImg01, _local8, _local9, ItemPower);
_local13 = new AppearEnemyData(_local1, S01_Enemy01, EnemyImg01, _local10, _local11, ItemPower);
AddGroupData(5, _local12, 0, -30, 0);
AddGroupData(5, _local13, 0, 30, 0);
_local1 = (_local1 + 120);
AddDataValue((_local1 + 0), S01_Enemy02, EnemyImg01, (_StageData.Left + 20), (_StageData.Top - 20), ItemPower);
AddDataValue((_local1 + 0), S01_Enemy02, EnemyImg01, (_StageData.Right - 20), (_StageData.Top - 20), ItemPower);
AddDataValue((_local1 + 60), S01_Enemy02, EnemyImg01, (_StageData.Left + 40), (_StageData.Top - 20), ItemPower);
AddDataValue((_local1 + 60), S01_Enemy02, EnemyImg01, (_StageData.Right - 40), (_StageData.Top - 20), ItemPower);
AddDataValue((_local1 + 120), S01_Enemy02, EnemyImg01, (_StageData.Left + 60), (_StageData.Top - 20), ItemPower);
AddDataValue((_local1 + 120), S01_Enemy02, EnemyImg01, (_StageData.Right - 60), (_StageData.Top - 20), ItemPower);
_local1 = (_local1 + 240);
_local14 = (_StageData.Right - 20);
_local15 = (_StageData.Top - 20);
_local16 = (_StageData.Left + 20);
_local17 = (_StageData.Top - 20);
_local18 = new AppearEnemyData((_local1 + 0), S01_Enemy03, EnemyImg01, _local14, _local15, ItemPower);
_local19 = new AppearEnemyData((_local1 + 300), S01_Enemy03, EnemyImg01, _local16, _local17, ItemPower);
AddGroupData(10, _local18, 20, -35, 0);
AddGroupData(10, _local19, 20, 35, 0);
_local1 = (_local1 + 600);
AddDataValue(_local1, S01_Enemy04, EnemyImg01, _StageData.CenterX, -20, ItemBigPower);
_local1 = (_local1 + 300);
_local20 = (_StageData.Right - 20);
_local21 = (_StageData.Top - 20);
_local22 = (_StageData.Left + 20);
_local23 = (_StageData.Top - 20);
_local24 = new AppearEnemyData((_local1 + 0), S01_Enemy03, EnemyImg01, _local20, _local21, ItemScore);
_local25 = new AppearEnemyData((_local1 + 300), S01_Enemy03, EnemyImg01, _local22, _local23, ItemScore);
AddGroupData(10, _local24, 20, -35, 0);
AddGroupData(10, _local25, 20, 35, 0);
_local1 = (_local1 + 500);
AddDataValue(_local1, S01_Enemy07, EnemyImg01, ((_StageData.CenterX + _StageData.Left) / 2), -20, ItemBigPower);
AddDataValue(_local1, S01_Enemy07, EnemyImg01, ((_StageData.CenterX + _StageData.Right) / 2), -20, ItemBigPower);
AddDataValue((_local1 + 200), S01_Enemy07, EnemyImg01, (_StageData.CenterX + 50), -20, ItemBigPower);
AddDataValue((_local1 + 200), S01_Enemy07, EnemyImg01, (_StageData.CenterX - 50), -20, ItemBigPower);
_local1 = (_local1 + 500);
AddDataValue(_local1, BossScript, BossImgLumia, _StageData.CenterX, -100, ItemNone, FlgSubBoss);
_local1 = (_local1 + 50);
AddDataValue(_local1, S01_Enemy07, EnemyImg01, (_StageData.CenterX + 50), -20, ItemBigPower);
AddDataValue(_local1, S01_Enemy07, EnemyImg01, (_StageData.CenterX - 50), -20, ItemBigPower);
_local1 = (_local1 + 250);
AddDataValue((_local1 + 0), S01_Enemy09, EnemyImg01, 40, 40, ItemSou);
AddDataValue((_local1 + 15), S01_Enemy09, EnemyImg01, 360, 40, ItemSou);
AddDataValue((_local1 + 30), S01_Enemy09, EnemyImg01, 60, 60, ItemSou);
AddDataValue((_local1 + 45), S01_Enemy09, EnemyImg01, 340, 60, ItemSou);
AddDataValue((_local1 + 60), S01_Enemy09, EnemyImg01, 80, 80, ItemSou);
AddDataValue((_local1 + 75), S01_Enemy09, EnemyImg01, 320, 80, ItemSou);
AddDataValue((_local1 + 90), S01_Enemy09, EnemyImg01, 100, 60, ItemSou);
AddDataValue((_local1 + 105), S01_Enemy09, EnemyImg01, 300, 60, ItemSou);
AddDataValue((_local1 + 120), S01_Enemy09, EnemyImg01, 120, 40, ItemSou);
AddDataValue((_local1 + 135), S01_Enemy09, EnemyImg01, 280, 40, ItemSou);
_local1 = (_local1 + 300);
AddDataValue(_local1, S01_Enemy08, EnemyImg01, _StageData.CenterX, -20, ItemBigPower);
_local1 = (_local1 + 600);
AddDataValue(_local1, BossScript, BossImgReimu, _StageData.CenterX, -100, ItemNone, FlgBoss);
SortData();
}
}
}//package
Section 204
//StageDataBase (StageDataBase)
package {
class StageDataBase {
protected var ItemNone:uint;// = 0
protected var FlgBoss:uint;// = 2
public var ArrEnemyData:Array;
protected var ItemPower:uint;// = 1
protected var FlgSubBoss:uint;// = 1
protected var ItemScore:uint;// = 3
protected var ItemSou:uint;// = 4
protected var _StageData:StageData;
public var ArrAppear:Array;
protected var ItemBigPower:uint;// = 2
function StageDataBase(){
ItemNone = 0;
ItemPower = 1;
ItemBigPower = 2;
ItemScore = 3;
ItemSou = 4;
FlgSubBoss = 1;
FlgBoss = 2;
super();
ArrAppear = new Array();
ArrEnemyData = new Array();
_StageData = MainValue._StageData;
}
function GetArray(){
return (ArrEnemyData);
}
function AddGroupData(_arg1:uint, _arg2:Object, _arg3:uint, _arg4:Number, _arg5:Number){
var _local6:uint;
var _local7:uint;
var _local8:Number;
var _local9:Number;
_local6 = 0;
while (_local6 < _arg1) {
_local7 = (_arg2.AppearTime + (_arg3 * _local6));
_local8 = (_arg2.BaseX + (_arg4 * _local6));
_local9 = (_arg2.BaseY + (_arg5 * _local6));
AddData(_arg2.GetNew(_local7, _local8, _local9));
_local6++;
};
}
function Add(_arg1:uint, _arg2:Object, _arg3:Object, _arg4:Number, _arg5:Number, _arg6:uint, _arg7:uint=0){
ArrAppear.push(new Array(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7));
}
function SortData(){
var _local1:uint;
var _local2:uint;
var _local3:Object;
_local1 = 0;
while (_local1 < (ArrEnemyData.length - 1)) {
_local2 = _local1;
while (_local2 < (ArrEnemyData.length - 1)) {
if (ArrEnemyData[_local2].AppearTime > ArrEnemyData[(_local2 + 1)].AppearTime){
_local3 = ArrEnemyData[(_local2 + 1)];
ArrEnemyData[(_local2 + 1)] = ArrEnemyData[_local2];
ArrEnemyData[(_local2 + 0)] = _local3;
};
_local2++;
};
_local1++;
};
}
function AddData(_arg1:Object){
ArrEnemyData.push(_arg1);
}
function AddGrp(_arg1:uint, _arg2:Object, _arg3:Object, _arg4:Number, _arg5:Number, _arg6:uint, _arg7:uint, _arg8:uint, _arg9:Number, _arg10:Number, _arg11:uint=0){
var _local12:uint;
_local12 = 0;
while (_local12 < _arg7) {
Add((_arg1 + (_arg8 * _local12)), _arg2, _arg3, (_arg4 + (_arg9 * _local12)), (_arg5 + (_arg10 * _local12)), _arg6, _arg11);
_local12++;
};
}
function AddDataValue(_arg1:uint, _arg2:Object, _arg3:Object, _arg4:Number, _arg5:Number, _arg6:uint, _arg7:uint=0){
var _local8:AppearEnemyData;
_local8 = new AppearEnemyData(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7);
ArrEnemyData.push(_local8);
}
}
}//package
Section 205
//StageObject (StageObject)
package {
class StageObject extends MoveBase {
protected var FlgDeleteCheck:Boolean;
protected var HitCount:Number;
protected var DeleteCount:Number;
protected var OutCount:Number;
protected var _FlgExistArrayList:Boolean;
protected var FlgOutCheck:Boolean;
protected var FlgHitCheck:Boolean;
function StageObject(_arg1:Boolean=false){
super(_arg1);
FlgOutCheck = true;
FlgHitCheck = true;
FlgDeleteCheck = false;
_FlgExistArrayList = false;
CountReset();
}
function get FlgExistArrayList(){
return (_FlgExistArrayList);
}
function set FlgExistArrayList(_arg1:Boolean){
_FlgExistArrayList = _arg1;
}
function Hit(_arg1:Object){
}
function HitAction(_arg1:Object){
_arg1.Hit(this);
}
function OutCheck(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):Boolean{
if (FlgOutCheck){
if (OutCount <= 0){
if (ArrMove[iMoveCount] == null){
OutCount = 1000;
return (false);
};
OutCount = ArrMove[iMoveCount].OutCheck(_arg1, _arg2, _arg3, _arg4);
if (OutCount < 0){
return (true);
};
};
OutCount--;
};
return (false);
}
function HitCheck(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Array=null):Boolean{
var _local5:int;
var _local6:Number;
if (FlgHitCheck){
if (HitCount <= 0){
if (ArrMove[iMoveCount] == null){
HitCount = 1000;
return (false);
};
if (_arg4 == null){
HitCount = ArrMove[iMoveCount].HitCheck(_arg1, _arg1.GetMoveX(), _arg1.GetMoveY(), _arg2, _arg3);
if (HitCount < 0){
HitAction(_arg1);
return (true);
};
} else {
HitCount = 1000;
_local5 = 0;
while (_local5 < _arg4.length) {
if (_arg4[_local5] != null){
_arg1 = _arg4[_local5];
_local6 = ArrMove[iMoveCount].HitCheck(_arg1, _arg1.GetMoveX(), _arg1.GetMoveY(), _arg2, _arg3);
if (_local6 < 0){
_arg1.Hit(this);
return (true);
};
HitCount = Math.min(_local6, HitCount);
};
_local5++;
};
};
};
HitCount--;
};
return (false);
}
function SetMoveCheck(_arg1:Boolean, _arg2:Boolean){
FlgHitCheck = _arg1;
FlgOutCheck = _arg2;
}
public function CountReset(){
HitCount = 0;
OutCount = 0;
DeleteCount = 0;
}
override function SetNextMoveOption(){
super.SetNextMoveOption();
CountReset();
}
function DeleteCheck():Boolean{
if (FlgDeleteCheck){
if (DeleteCount == 0){
return (true);
};
DeleteCount--;
};
return (false);
}
}
}//package
Section 206
//SubSpell01_001 (SubSpell01_001)
package {
public class SubSpell01_001 extends SpellBase {
private var PerFrame1:uint;
public static var SpellName:String = "弾幕『中ボス通常スペル1』";
public function SubSpell01_001(){
MAXHP = (750 * MainValue.SpellHP);
PerFrame1 = IF_DIF(180, 120, 90, 60);
}
function Shot01(){
var _local1:PointList;
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Number;
var _local6:Number;
_local1 = new PointList();
_local2 = 100;
_local3 = 0.5;
_local4 = 270;
_local5 = (_local4 + 180);
_local1.SetCircle(Boss.x, Boss.y, _local4, 180, _local2, 20, false, 1, 1);
_local1.SetCircle(Boss.x, Boss.y, _local5, 180, _local2, 20, true, _local3, 1);
_local1.ChangeRot(Boss.x, Boss.y, (180 + GetRock()));
FesUtil.SetWaitEx(true, 40, 0);
FesUtil.SetInvisibleEx(true, 0, 1);
FesUtil.SetImage(1, 3);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetMoveStraight();
_local6 = GetRock();
Fes.PointShotEx(_local1.GetArrayX(), _local1.GetArrayY(), _local6, 3, 0, 0);
FesUtil.SetWaitEx(false);
FesUtil.SetInvisibleEx(false);
}
override function CommonScript(){
if ((TimeCount % PerFrame1) == 0){
Shot01();
};
TimeCount++;
if (TimeCount == 300){
TimeCount = 0;
};
}
}
}//package
Section 207
//SubSpell01_002 (SubSpell01_002)
package {
public class SubSpell01_002 extends SpellBase {
protected var _BaseY:Number;
protected var _BaseX:Number;
protected var _PerFrame:uint;
protected var ArrMagic:Array;
protected var _CircleRange:Number;
public static var SpellName:String = "月符『闇宵に沈む月』";
public function SubSpell01_002(){
var _local1:Number;
var _local2:Number;
var _local3:Number;
var _local4:Number;
super();
MAXHP = (500 * MainValue.SpellHP);
FlgSpellCard = true;
_BaseX = Boss.x;
_BaseY = Boss.y;
_local1 = 100;
_local2 = Math2.GetTargetSitaXYB(Player.x, Player.y, _BaseX, _BaseY);
_local3 = (Math2.GetCosB(_local2) * _local1);
_local4 = (Math2.GetSinB(_local2) * _local1);
_BaseX = (_BaseX - (_local3 / 2));
_BaseY = (_BaseY - (_local4 / 2));
_PerFrame = IF_DIF(72, 72, 36, 36);
_CircleRange = IF_DIF(75, 100, 100, 125);
}
function Shot01(_arg1:uint){
var _local2:Number;
var _local3:Number;
var _local4:Number;
var _local5:Boolean;
var _local6:Number;
_local2 = Math2.GetTargetSitaXYB(Player.x, Player.y, _BaseX, _BaseY);
_local3 = (Math2.GetCosB(_local2) * _arg1);
_local4 = (Math2.GetSinB(_local2) * _arg1);
_BaseX = (_BaseX + _local3);
_BaseY = (_BaseY + _local4);
FesUtil.SetWaitEx(true, 60, 1);
FesUtil.SetInvisibleEx(true, 0, 1);
FesUtil.SetImage(1, 3);
FesUtil.SetBasePosition(_BaseX, _BaseY, (_arg1 / 2), 180);
FesUtil.SetMoveBase(0, 0, 0, 15);
FesUtil.SetMoveStraight();
_local5 = true;
if ((TimeCount % 72) == 36){
_local5 = false;
};
_local6 = (Math2.GetRandom(10, 0) + _local2);
Fes.CircleShotEx(36, _local6, 2, _local5);
FesUtil.SetWaitEx(false);
FesUtil.SetInvisibleEx(false);
}
override function CommonScript(){
if ((TimeCount % _PerFrame) == 0){
Shot01(_CircleRange);
};
TimeCount++;
if (TimeCount == 600){
TimeCount = 0;
};
}
}
}//package
Section 208
//SubSpell02_001 (SubSpell02_001)
package {
public class SubSpell02_001 extends SpellBase {
public static var SpellName:String = "ステージ2:中ボス通常スペル1";
public function SubSpell02_001(){
MAXHP = 1000;
}
function Shot01(_arg1:Boolean){
var _local2:Number;
FesUtil.SetWaitEx(true, 36, 1);
FesUtil.SetInvisibleEx(true, 0, 1);
FesUtil.SetBasePosition(_StageData.CenterX, _StageData.CenterY, 240, 180);
FesUtil.SetImage(1, 2);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetMoveStraight();
_local2 = Math2.GetRandom(10, 0);
Fes.CircleShotEx(36, _local2, 4, _arg1);
FesUtil.SetWaitEx(false);
FesUtil.SetInvisibleEx(false);
}
override function CommonScript(){
if ((TimeCount % 60) == 0){
if ((TimeCount % 120) == 0){
Shot01(true);
} else {
if ((TimeCount % 120) == 60){
Shot01(false);
};
};
};
TimeCount++;
if (TimeCount == 300){
TimeCount = 0;
};
}
}
}//package
Section 209
//SubSpell02_002 (SubSpell02_002)
package {
public class SubSpell02_002 extends SpellBase {
private var _PointList:PointList;
public static var SpellName:String = "ステージ2:中ボススペルカード1";
public function SubSpell02_002(){
MAXHP = 1000;
_PointList = new PointList();
_PointList.SetLine(-10, -25, 10, -25, 5);
_PointList.SetLine(10, -25, 0, 25, 6);
_PointList.SetLine(0, 25, -10, -25, 6);
}
function Shot01(_arg1:Number, _arg2:Number, _arg3:int, _arg4:int){
FesUtil.SetBasePosition(0, 0, 0, 0);
FesUtil.SetImage(2, 2);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetMoveStraight();
FesUtil.SetWait(true, _arg3);
FesUtil.SetInvisible(true, _arg4);
_PointList.AddPointValue(_arg1, _arg2);
Fes.PointShot(_PointList.GetArrayX(), _PointList.GetArrayY(), 90, 4);
_PointList.AddPointValue(-(_arg1), -(_arg2));
FesUtil.SetWait(false, 0);
FesUtil.SetInvisible(false, 0);
}
function Shot02(_arg1:Number, _arg2:Number){
FesUtil.SetBasePosition(0, 0, 0, 0);
FesUtil.SetImage(2, 2);
FesUtil.SetMoveBase(0, 0, 0, 0);
FesUtil.SetMoveStraight();
_PointList.AddPointValue(_arg1, _arg2);
Fes.PointShot(_PointList.GetArrayX(), _PointList.GetArrayY(), 90, 2);
_PointList.AddPointValue(-(_arg1), -(_arg2));
}
override function CommonScript(){
var _local1:uint;
var _local2:Number;
var _local3:Number;
var _local4:uint;
var _local5:Number;
var _local6:Number;
if (TimeCount == 0){
_local1 = 0;
while (_local1 < 11) {
_local2 = (_StageData.Left + ((_StageData.Width / 10) * _local1));
_local3 = (Boss.y + 50);
Shot01(_local2, _local3, ((10 * _local1) + 30), (5 * _local1));
_local1++;
};
} else {
if (TimeCount == 150){
_local4 = 0;
while (_local4 < 11) {
_local5 = (_StageData.Right - ((_StageData.Width / 10) * _local4));
_local6 = (Boss.y + 30);
Shot01(_local5, _local6, (10 * _local4), (5 * _local4));
_local4++;
};
};
};
if ((TimeCount % 50) == 0){
Shot02(Player.x, 0);
};
TimeCount++;
if (TimeCount == 250){
TimeCount = 0;
};
}
}
}//package
Section 210
//SubSpell03_001 (SubSpell03_001)
package {
public class SubSpell03_001 extends SpellBase {
private var Sita1:Number;
public static var SpellName:String = "ステージ3:中ボス通常スペル1";
public function SubSpell03_001(){
MAXHP = 1000;
Boss.SetMove(_StageData.CenterX, (_StageData.CenterY - 20));
TimeCount = -30;
Sita1 = 0;
}
function Shot01(){
var _local1:uint;
var _local2:Number;
var _local3:Number;
_local1 = 0;
while (_local1 < 8) {
_local2 = ((_local1 * 45) + Sita1++);
FesUtil.SetBasePosition(Boss.x, Boss.y, 60, _local2);
FesUtil.SetImage(ShotRice, (_local1 % 4));
FesUtil.SetMoveBase(_local2, 3, 0, 90);
FesUtil.SetMoveCurve(6, 60);
FesUtil.SetMoveBase((_local2 + 315), 3, 0, 18);
FesUtil.SetMoveCurve(-6, 18);
_local3 = ((((_local2 + (60 * 6)) + (18 * -6)) + 315) % 360);
FesUtil.SetMoveBase(_local3, 2, 0, 0);
FesUtil.SetMoveStraight();
Fes.SingleShot();
_local1++;
};
}
override function CommonScript(){
if (TimeCount < 0){
TimeCount++;
return;
};
if ((TimeCount % 6) == 0){
Shot01();
};
TimeCount++;
if (TimeCount == 300){
TimeCount = 0;
};
}
}
}//package
Section 211
//SubSpell03_002 (SubSpell03_002)
package {
public class SubSpell03_002 extends SpellBase {
private var Sita1:Number;
public static var SpellName:String = "ステージ3:中ボス通常スペル2";
public function SubSpell03_002(){
MAXHP = 1000;
Boss.SetMove(MainValue._BossBaseX, (MainValue._BossBaseY + 20));
Sita1 = 0;
TimeCount = -10;
}
function Shot01(){
var _local1:uint;
var _local2:Number;
var _local3:uint;
var _local4:Number;
_local1 = 0;
while (_local1 < 8) {
_local2 = ((_local1 * 45) + Sita1++);
FesUtil.SetBasePosition(Boss.x, Boss.y, 50, _local2);
FesUtil.SetImage(ShotRice, (_local1 % 4));
_local3 = 1;
while (_local3 <= 5) {
FesUtil.SetMoveBase(_local2, _local3, 0, 40);
FesUtil.SetMoveCurve(9, 40);
_local3++;
};
_local4 = _local2;
FesUtil.SetMoveBase(_local4, 5, 0, 0);
FesUtil.SetMoveStraight();
Fes.SingleShot();
_local1++;
};
}
override function CommonScript(){
if (TimeCount < 0){
TimeCount++;
return;
};
if ((TimeCount % 6) == 0){
Shot01();
};
TimeCount++;
if (TimeCount == 300){
TimeCount = 0;
};
}
}
}//package
Section 212
//TalkControl (TalkControl)
package {
class TalkControl extends TalkControlBase {
}
}//package
Section 213
//TalkControlBase (TalkControlBase)
package {
import flash.text.*;
class TalkControlBase {
protected var TextIndex:uint;
protected var ArrTextURL:Array;
protected var ArrTalk:Array;
protected var FlgLoad:Boolean;
protected var FlgNext:Boolean;
protected var NowTalkText:TalkText;
protected var TxtTalk:TextField;
protected var FlgEnd:Boolean;
protected var CKey:KeyControl;
protected var TalkIndex:uint;
protected var ObjStage:Object;
protected var ArrTalkText:Array;
protected var ArrKeyStatus:Array;
protected var ArrKeyOnce:Array;
function TalkControlBase(){
TalkIndex = 0;
TextIndex = 0;
ArrTextURL = new Array(new Array(), new Array(), new Array(), new Array(), new Array(), new Array());
ArrTalkText = new Array();
CKey = MainValue.CKey;
FlgLoad = false;
FlgEnd = false;
}
function CheckTalk(_arg1:uint){
if ((((ArrTextURL[(_arg1 - 1)][TextIndex] == null)) || ((ArrTextURL[(_arg1 - 1)][TextIndex] == "")))){
return (false);
};
return (true);
}
function MainScript(){
if (FlgLoad){
if (CKey.IsKeyOnce(90)){
NextText();
} else {
if (CKey.IsKeyStatus(67)){
NextText();
};
};
} else {
if (NowTalkText.LoadText != ""){
FlgLoad = true;
TalkIndex = 0;
ArrTalk = NowTalkText.LoadText.split("\n");
};
};
}
function SetObjStage(_arg1:Object){
ObjStage = _arg1;
}
function get gFlgEnd(){
return (FlgEnd);
}
function SetTalk(_arg1:uint){
var _local2:String;
_local2 = ArrTextURL[(_arg1 - 1)][TextIndex];
NowTalkText = new TalkText(_local2);
FlgLoad = false;
FlgEnd = false;
TalkIndex = 0;
TxtTalk = CMath.CreateTextField(10, 350, 460, 120);
ObjStage.addChild(TxtTalk);
if (TextIndex < (ArrTextURL[(_arg1 - 1)].length - 1)){
TextIndex++;
} else {
TextIndex = 0;
};
}
function SetStage(_arg1:int){
TextIndex = 0;
}
function Add(_arg1:uint, _arg2:String){
if (_arg2 != ""){
ArrTextURL[(_arg1 - 1)].push(_arg2);
} else {
ArrTextURL[(_arg1 - 1)].push(null);
};
}
function NextText(){
if (ArrTalk[TalkIndex] == "ENDTALK"){
FlgEnd = true;
ObjStage.removeChild(TxtTalk);
} else {
TxtTalk.text = ArrTalk[TalkIndex];
TalkIndex++;
};
}
function set sFlgEnd(_arg1:Boolean){
FlgEnd = _arg1;
}
}
}//package
Section 214
//TalkText (TalkText)
package {
class TalkText {
private var FlgLoad:Boolean;
public var LoadText:String;
private var Address:String;
private var Lc:LoadControl;
private var FlgNext:Boolean;
function TalkText(_arg1:String){
Lc = new LoadControl();
}
function SetLoadText(_arg1:String){
LoadText = _arg1;
FlgLoad = true;
}
function ReadNextText():String{
var _local1:String;
_local1 = "";
return (_local1);
}
}
}//package