------------------------------------------------------------------ -- \author takeshita -- \date 2010/07/12 13:03:22 ------------------------------------------------------------------ -- start local id = ccGetScriptId(); -- IAシーン開始 function IA_SceneMain()local frame = ccIa_GetFrameCount(); -- メインアニメーション IA_createAnimation(frame, 0, 0, "data/ia/d05/d05_2\.xfbin", "d05_2015"); -- 背景描画ON IA_enableDrawStage(frame, 0); -- タイマー表示(位置指定) IA_setTimerEx(frame, 15, 40, 5, 640, 260); IA_setTimerLifeRecover(frame, 15, 3); IA_setTimerBonusCommand(frame, 15, false); -- 単発コマンド追加 IA_createCommand(frame, 15, 0, 565, 360, 40, "CROSS"); IA_setCommandParam(frame, 15, 0, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 15, 0, true, false); IA_setCommandSuccessLine(frame, 15, 0, 100); -- 単発コマンド追加 IA_createCommand(frame, 20, 1, 715, 360, 35, "CROSS"); IA_setCommandParam(frame, 20, 1, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 20, 1, true, false); IA_setCommandSuccessLine(frame, 20, 1, 100); -- コマンド失敗による中断 IA_checkFailure(frame, 60); -- タイマー表示 IA_setTimer(frame, 90, 32, 0); IA_setTimerLifeRecover(frame, 90, 3); IA_setTimerBonusCommand(frame, 90, false); -- 単発コマンド追加 IA_createCommand(frame, 90, 0, 400, 360, 32, "RIGHT"); IA_setCommandParam(frame, 90, 0, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 90, 0, true, false); IA_setCommandSuccessLine(frame, 90, 0, 100); -- コマンド失敗による中断 IA_checkFailure(frame, 137); -- タイマー表示 IA_setTimer(frame, 130, 30, 0); IA_setTimerLifeRecover(frame, 130, 3); IA_setTimerBonusCommand(frame, 130, false); -- 単発コマンド追加 IA_createCommand(frame, 130, 1, 800, 360, 30, "LEFT"); IA_setCommandParam(frame, 130, 1, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 130, 1, true, false); IA_setCommandSuccessLine(frame, 130, 1, 100); -- コマンド失敗による中断 IA_checkFailure(frame, 168); -- タイマー表示 IA_setTimer(frame, 165, 28, 0); IA_setTimerLifeRecover(frame, 165, 3); IA_setTimerBonusCommand(frame, 165, false); -- 単発コマンド追加 IA_createCommand(frame, 165, 2, 400, 360, 28, "RIGHT"); IA_setCommandParam(frame, 165, 2, 0, 0, 1, 1, 100, 0); IA_setCommandInterrupt(frame, 165, 2, true, false); IA_setCommandSuccessLine(frame, 165, 2, 100); -- コマンド失敗による中断 IA_checkFailure(frame, 193); -- IAシーン終了 end -- end ------------------------------------------------------------------ -- EOF ------------------------------------------------------------------