//ゲーム試作
//格闘ゲームっぽいアクション

//Load_BG_SiriteFile DF35_読込.jpg;
Load_FG_SiriteFile DF40ap01_action01_LOAD.png;
Loop_4_ft 0,1,1.0;




INI seen;

FPS_EF LoadX,0,Liful_2_050615.x;

//------------------------------------------------------------------------------
//マップ
//CALL DF37_GBO2_map_set.txt,Ｄ公園2;
//CALL DF37_map_set.txt,DF40-POSE_EDIT2;//四角

Set_MapColor RGB,0,0,0;
Load_MapFile map_DF40_TELBOX_33_2_Body1.x;
CloneReF_MapFile ;
Load_MapFile_2 map_DF40_TELBOX_33_2_Shadow.x;
CloneReF_MapFile 2;
Load_MapFile_3 map_DF40_TELBOX_33_2_Body2.x;
CloneReF_MapFile 3;

Load_PickFile map_DF40_TELBOX_Pick.x;




Loop_4_Work ;//表示しない内部処理

IconDELL ;





//------------------------------------------------------------------------------
FPS ini;
FPS Set_CharMAX,2;



CALL DF37_char_set.txt,SET_LayerALL_CS;



//戦闘後の再セットはこの位置まで戻る
* メインメニュー;


Music STOP;
//Music LOAD,h-koko.mid;
Music LOAD,DAS.mid;
Music PLAY,true;
SetViewLimit ALL;


//------------------------------------------------------------------------------
//▼主人公ヒロインモデルの準備

FPS Set_CharID,0;

FPS Set_Char_ini,0;
FPS Set_CharST,0,500,2500,30,900,10,0.04;
FPS Set_CharCOM_Deff,0,DF40ap02_女歩行;
FPS Set_CharCOM_G,0,DF40ap02_女歩行;
//FPS Set_CharPT,0,999,,;

FPS Set_CharST2,0,230,0,50;//ID ﾒｲﾝ弾数 性別 ｻﾌﾞ弾数
FPS Set_CharCOM-L,0,マシンガン;
FPS Set_CharCOM-R,0,グレネード;
FPS Set_CharSer_CLS;//セリフ封印


FPS Set_CharModelID,,0;
FPS Set_CharModelID,,1;
FPS Set_CharModelID,,2;
FPS Set_CharModelID,,3;
FPS Set_CharModelID,,4;
FPS Set_CharModelID,,5;
FPS Set_CharModelID,,8;
FPS Set_CharModelID,,9;
FPS Set_CharModelID,,10;
FPS Set_CharModelID,,11;
FPS Set_CharModelID,,12;
FPS Set_CharMotionID,,0;
FPS Set_CharID,END;

//FPS Set_CharPoint,0,  0,1, 1,  0.0010,0.0156,0.9998;
FPS Set_CharPoint,0,  0, 0.5, 0.5,  0.0010,0.0156,0.9998;


//------------------------------------------------------------------------------
//▼男性側、敵キャラの設定
XFile4_ID 6,true;
XFile4_MotionID 6,6;//適応ﾓﾃﾞﾙIDと参照ﾓｰｼｮﾝID
XFile4_Bone_EditPoseLimit DF40_GM4_boneCNV.txt;//DF37の男性モデルをDF40にｺﾝﾊﾞｰﾄ

FPS Set_CharID,1;

FPS Set_Char_ini,1;
FPS Set_CharST,1,500,1000,0,1000,0,0.02;//1番のキャラの設定
FPS Set_CharST2,1,0,1;//弾無制限・1女
//FPS Set_CharCOM_Deff,1,歩行GBO;
//FPS Set_CharPT,1,999,市民_逃げる,;
//FPS Set_CharPT,1,999,敵_格闘炎,;
FPS Set_CharCOM_Deff,1,DF40ap02_男歩行;
FPS Set_CharPT,1,999,DF40app02格闘敵,;
FPS Set_CharSer_CLS;//セリフ封印

FPS Set_CharModelID,,6;
FPS Set_CharMotionID,,6;
FPS Set_CharID,END;

//FPS Set_CharPoint,1,  0,1,-1,  0.0125,0.0110,-1.000;
FPS Set_CharPoint,1,  0,0.5,-0.5,  0.0125,0.0110,-1.000;






//------------------------------------------------------------------------------

//151206 DF401互換。IFFをスクリプトレベルで指定する
FPS Set_CharIFF,0,2;
FPS Set_CharIFF,1,1;




Menu_INI ;//メニューの設定をクリアする
Menu_SetType 0,128,20,12;
Menu_SetPos 260,220;
4HS_Menu_SetType 3,100,20,12;//クリックポイント用



//------------------------------------------------------------------------------
//* メインメニュー;

//Set_View -4.218,0.800,-0.376,0.9990,0.0200,-0.0380,-0.019,0.999,0.000,0.422;
Set_View -4.195,0.802,0.239,0.9995,0.0100,-0.0279,-0.010,0.999,0.000,1.022;
Motion_Load DF40ap01_action01_motion01.txt,true,,;//DF40標準！
Load_FG_SiriteFile DF40ap02_action02_TITLE.png;


Menu_CLS Menu;
Menu_Titol メニュー;
Menu_ADD スタート,,1;
//Menu_ADD MAP選択,,2;
Menu_ADD 終了する,,0;

Loop_4_menu false;

MapBool ,,,false;//FGカット

Goto@ @RetMenu,0,RET;
Goto@ @RetMenu,1,▼ゲーム;
Goto@ @RetMenu,2,MAP変更;
GOTO メインメニュー;


* RET;
Music STOP;
RETURN ;



//------------------------------------------------------------------------------
* ▼ゲーム;
//Loop_DF40ap02 ;
//GOTO メインメニュー;

* 戦闘開始;


Music STOP;
Music LOAD,loose.mid;
Music PLAY,true;
SetViewLimit ALL;

Load_FG_SiriteFile DF40ap02_action02_VS.png;


//Loop_FPS 1;
MSG4_Add ;
MSG4_SetPar1 ,320,300,,559,16,1,MsgWindow_06.png,true,;
MSG4_SetPar2 1,B,2;
MSG4_Print ＧＯ！！;
Loop_4_ft 0,60,1.0;
MSG4_Ini ;




FPS ini,EOF;//終了条件のみ初期化
FPS EOF_Type,自分死亡,0;
FPS EOF_Type,敵死亡,1;

//Loop_FPS ;//FPSを使わないのはキー入力をオーバーライドする為
Loop_DF40ap02 ;
SelectFPS_GOTO 負け,勝ち１;




//------------------------------------------------------------------------------
* 負け;
Loop_DF40ap02 3;

MSG4_Add ;
MSG4_SetPar1 ,320,300,,559,16,1,MsgWindow_06.png,true,;
MSG4_SetPar2 1,B,2;
MSG4_Print ＬＯＯＳＥ！;
Loop_4_ft 0,180,1.0;
MSG4_Ini ;
GOTO メインメニュー;



//------------------------------------------------------------------------------
* 勝ち１;
Loop_DF40ap02 2;

MSG4_Add ;
MSG4_SetPar1 ,320,300,,559,16,1,MsgWindow_06.png,true,;
MSG4_SetPar2 1,B,2;
MSG4_Print ＷＩＮ！！\n;
Loop_4_ft 0,180,1.0;
MSG4_Ini ;
GOTO メインメニュー;





