--80003160

print ("[lua]sp1001");

fcolor_r = 245;
fcolor_g = 245;
fcolor_b = 245;

--SP_01 = 100006
SP_02 = 108002;
SP_03 = 108003;

SP_04 = 3;
SP_05 = 2;


SE_01 = 1035; --気を貯める
SE_02 = 1036; --気が広がる
SE_03 = 1036; --かめはめ
SE_04 = 1018; --カットイン
SE_05 = 1035; --カットイン攻撃
SE_06 = 43; --発射
SE_07 = 1022; --のびる発射
SE_08 = 1009; --huru
SE_09 = 1010; --HIT
SE_10 = 1024; --爆破
SE_11 = 1054; --割れる音
SE_12 = 1004;

---------------
kame_flag = 0x00;
if (_IS_PLAYER_SIDE_ == 1) then

SP_ATK_3 = 340;
SP_ATK_4 = SP_ATK_3+48;

else

SP_ATK_0 = 6;
SP_ATK_1 = SP_ATK_0+55;
SP_ATK_2 = SP_ATK_1+45;
SP_ATK_3 = SP_ATK_2+70;
SP_ATK_4 = SP_ATK_3+48;

end
------------------
multi_frm = 2;

changeAnime( 0, 0, 30);                       -- 立ち
setDisp( 0, 1, 0);

setMoveKey(   0,   0,    0, -54,   0);
setMoveKey(   1,   0,    0, -54,   0);
setScaleKey(   0,   0, 1.5, 1.5);
setScaleKey(   1,   0, 1.5, 1.5);
setMoveKey(  0,    1,  700,  0,   0);

setVisibleUI( 0, 0);

------------------------------------------------------
-- 気溜め(40F)
------------------------------------------------------
kame_flag = 0x00;
if (_IS_PLAYER_SIDE_ == 1) then

--         frame, eff, atr,tgt, tag,  x, y
changeAnime(  30, 0, 30);                       -- 溜め!
entryEffect(  30,   1501,   0x80, -1,  0,  0,  0);    -- eff_002
entryEffect(  30,   1500,   0,    -1,  0,  0,  0);    -- eff_001
SE001 = playSe( 30, SE_01);

entryFade( 62, 5, 4, 8, fcolor_r, fcolor_g, fcolor_b,  100);     -- white fade

-- ** エフェクト等 ** --
--aura = entryEffectLife(  30,   311, 39, 0x40,  0,  1,  0,  0); -- オーラ
--setEffScaleKey( 30, aura, 1.5, 1.5);
setShakeChara( 30, 0, 19, 5);

-- 書き文字エントリー
ct = entryEffectLife( 30, 10013, 39, 0, -1, 0, 0, 200); -- ズズンッ
setEffShake(30, ct, 40, 7);
setEffAlphaKey(30, ct, 255);
setEffAlphaKey(50, ct, 255);
setEffAlphaKey(70, ct, 0);
setEffScaleKey( 30, ct, 0.1, 0.1);
setEffScaleKey( 40, ct, 2.0, 2.0);
SE002 = playSe( 30, SE_02);

------------------------------------------------------
-- 気力解放！(100F)
------------------------------------------------------
--setVisibleUI(69, 0);
changeAnime( 70, 0, 30);                       -- 溜め!

entryEffect(  70,   1503,   0x80,  -1,  0,  0,  0);   -- eff_004 (気)
entryEffect(  70,   1502,   0,     -1,  0,  0,  0);   -- eff_003 (気)
speff = entryEffect(  80,   1504,   0,     -1,  0,  0,  0);   -- eff_005 (カットイン)
setEffReplaceTexture( speff, 3, 2);                           -- カットイン差し替え
speff = entryEffect(  80,   1505,   0,     -1,  0,  0,  0);   -- eff_006 (セリフ)
setEffReplaceTexture( speff, 4, 5);                           -- セリフ差し替え

SE003 = playSe( 70, SE_03);
SE004 = playSe( 80, SE_04);

--entryFade( 165, 3, 2, 4, fcolor_r, fcolor_g, fcolor_b, 255);     -- white fade

-- ** エフェクト等 ** --
--aura = entryEffectLife(  70,   311, 95, 0x40,  0,  1,  0,  0); -- オーラ
--entryEffectLife( 90, SP_02, 109, 0x40,  0,  0,  0,  0); 
--setEffScaleKey( 30, aura, 1.5, 1.5);
setShakeChara( 70, 0, 49, 5);

-- 書き文字エントリー
ct = entryEffectLife( 90, 10008, 39, 0x100, -1, 0, -190, 300);    -- ゴゴゴ・・・
setEffShake(90, ct, 40, 8);
setEffScaleKey(90, ct, 1.4, 1.4);

------------------------------------------------------
-- カードカットイン(90F)
------------------------------------------------------
setScaleKey( 169,   0, 1.5, 1.5);

cr = entryEffect(  170,   1507,   0,  -1,  0,  0,  0);   -- eff_008
setEffReplaceTexture( cr, 1, 1);
setEffReplaceTexture( cr, 2, 0);                         -- カード差し替え
setEffReplaceTexture( cr, 5, 4);                                  -- 技名テクスチャ差し替え
SE005 = playSe( 170, SE_05);
--entryFade( 255, 3, 10, 4, fcolor_r, fcolor_g, fcolor_b, 255);     -- white fade

-- ** エフェクト等 ** --
--entryFlash( (170+10), 1, fcolor_r, fcolor_g, fcolor_b, 200);
--entryFlash( (170+22), 1, fcolor_r, fcolor_g, fcolor_b, 200);
--entryFlash( (170+36), 1, fcolor_r, fcolor_g, fcolor_b, 200);
--entryFlash( (170+50), 1, fcolor_r, fcolor_g, fcolor_b, 200);
--entryFlash( (170+64), 1, fcolor_r, fcolor_g, fcolor_b, 200);

setEffScaleKey(	170,cr, 1,1);
setEffScaleKey(	260,cr, 1,1);

entryFade( 255, 3, 4, 4, fcolor_r, fcolor_g, fcolor_b, 255);     -- white fade

--[[
setEffShake( 240, ct, 3, 12);
setEffScaleKey(	243,cr, 1.2,1.2);
setEffScaleKey(	248,cr, 1.2,1.2);
setEffShake( 248, ct, 3, 8);
setEffScaleKey(	250,cr, 1.4,1.4);
setEffScaleKey(	256,cr, 1.4,1.4);
setEffShake( 255, ct, 8, 15);
setEffScaleKey(	258,cr, 2,2);
]]
------------------------------------------------------
-- カメハメハ発射(110F)
------------------------------------------------------

entryEffect( 260, SP_02,  0x40,  0,  0,  0,  0); 

setScaleKey( 270, 0, 1.5, 1.5);
setScaleKey( 271, 0, 0.7, 0.7);
changeAnime( 271, 0, 31);                                    -- かめはめ発射ポーズ

--P移動
setMoveKey(  259,    0,      0,  0,   0);
setMoveKey(  305,  0,   0,  0,   0);
setMoveKey(  310,  0,   -100,  0,   0);
setMoveKey(  315,  0,   -150,  0,   0);

SE006 = playSe( 305, SE_06);
--setScaleKey( 306,0,3,3);
setMoveKey(  325,  0, 1700,  0,   0);
setMoveKey(  329,  0, 1700,  0,   0);
setMoveKey(  330,  0, -1700,  0,   0);

setShakeChara( 274, 0, 20, 30);

kamehame_beam = entryEffectLife( 281, SP_03, 79, 0x80, 0,  -800,  0,  0);   -- 伸びるかめはめ波



setEffMoveKey(  281,    kamehame_beam,   -200,  0,   0);
setEffMoveKey(  305,  kamehame_beam,   -200,  0,   0);
setEffMoveKey(  310,  kamehame_beam,   -300,  0,   0);
setEffMoveKey(  315,  kamehame_beam,   -350,  0,   0);
setEffMoveKey(  325,  kamehame_beam, 1700,  0,   0);

SE0=playSe( 260, SE_07);

--spname = entryEffect( 260, 1508,  0,  -1,  0,  0,  0);               -- かめはめ波文字
--setEffReplaceTexture(spname, 7, 4);                                  -- 技名テクスチャ差し替え

-- 途中からカメハメハが伸びる
--setMoveKey(  299,    0,   -100,  0,   0);
--setMoveKey(  300,    0,   -100,  0,   0);
--setMoveKey(  308,    0,   -1100,  0,   0);

--entryFade( 365, 3, 2, 5, fcolor_r, fcolor_g, fcolor_b, 255);     -- white fade

-- ** エフェクト等 ** --
entryFadeBg( 260, 0, 109, 0, 10, 10, 10, 180);       -- ベース暗め　背景
entryFadeBg( 260, 0, 40, 0, 230, 230, 230, 255);    -- 最初だけ明るい　背景
entryFadeBg( 300, 0, 2, 8, 100, 140, 250, 250);     -- 青い　背景

entryEffectLife( 260, 920, 80, 0x80,  -1,  0,  0,  0); -- 流線



shuchusen = entryEffectLife( 260, 906, 60, 0x00,  -1, 0,  0,  0);   -- 集中線
--setEffScaleKey( 260, shuchusen, 1.0, 1.0);
--setEffScaleKey( 300, shuchusen, 1.0, 1.0);
--setEffScaleKey( 309, shuchusen, 2.0, 2.0);

--entryFlash( (260+10), 1, fcolor_r, fcolor_g, fcolor_b, 200);
--entryFlash( (260+22), 1, fcolor_r, fcolor_g, fcolor_b, 200);
--entryFlash( (260+36), 1, fcolor_r, fcolor_g, fcolor_b, 200);
--entryFlash( (260+50), 1, fcolor_r, fcolor_g, fcolor_b, 200);
--entryFlash( (260+64), 1, fcolor_r, fcolor_g, fcolor_b, 200);
--entryFlash( (260+80), 1, fcolor_r, fcolor_g, fcolor_b, 200);
--entryFlash( (260+92), 1, fcolor_r, fcolor_g, fcolor_b, 200);

-- 書き文字エントリー
ct = entryEffectLife( 263, 10012, 32, 0, -1, 0, 150, 350); -- ズオッ
setEffShake(263, ct, 32, 5);
setEffAlphaKey(263, ct, 255);
setEffAlphaKey(290, ct, 255);
setEffAlphaKey(295, ct, 0);
setEffScaleKey(263, ct, 0.0, 0.0);
setEffScaleKey(268, ct, 2.5, 2.5);
setEffScaleKey(290, ct, 2.5, 2.5);
setEffScaleKey(300, ct, 6.0, 6.0);

setEffAlphaKey(	308,spname, 1);
SE1=playSe( 300, SE_07);
--entryFade( 322, 7, 10, 10, fcolor_r, fcolor_g, fcolor_b, 255);     -- white fade


------------------------------------------------------
-- かめはめは迫る(100F)
------------------------------------------------------
--entryEffect( SP_ATK_3+20, SP_03,   0x40, 0,  0,  0,  0);   -- 迫るかめはめ波
kamehame_beam3 = entryEffectLife( SP_ATK_3+24, SP_03, 16, 0x40+0x80, 0, 0, 0, 0);
--setEffScaleKey(SP_ATK_3+24, kamehame_beam3, 1.5, 1.5);
--playSe( SP_ATK_3, SE_08);
--setMoveKey(  SP_ATK_3+24,  0, -700,  0,   0);
--setMoveKey(  SP_ATK_3+35,  0, 1000,  0,   0);

setEffMoveKey(  SP_ATK_3+24,  kamehame_beam3, -700,  0,   5);
setEffMoveKey(  SP_ATK_3+28,  kamehame_beam3, -400,  0,   5);
setEffMoveKey(  SP_ATK_3+30,  kamehame_beam3, -100,  0,   5);
setEffMoveKey(  SP_ATK_3+32,  kamehame_beam3, 300,  0,   5);
setEffMoveKey(  SP_ATK_3+35,  kamehame_beam3, 700,  0,   5);

--end

setDisp( SP_ATK_3, 1, 1);
changeAnime( SP_ATK_3, 1, 104);                        -- ガード

setMoveKey(  SP_ATK_3+15,    1,   700,  0,   0);
setScaleKey( SP_ATK_3+15,   1,   0.5,  0.5);

--entryFade( SP_ATK_3+27, 10,  3, 4, fcolor_r, fcolor_g, fcolor_b, 255);     -- white fade

SE007 = playSe( SP_ATK_3+27, SE_09);
-- 敵吹っ飛ぶモーション
setMoveKey(  SP_ATK_3+25, 1,  180,    0,  0);
setMoveKey(  SP_ATK_3+30, 1,  120,    0,  -120);

setScaleKey( SP_ATK_3+25, 1,  1.4, 1.4);
setScaleKey( SP_ATK_3+30, 1,  1, 1);

-- ** エフェクト等 ** --
setShakeChara( SP_ATK_3+20+5, 1, 99, 20);

entryFadeBg( SP_ATK_3, 4, 40, 4, 10, 10, 10, 150);          -- ベース暗め　背景

entryEffectLife( SP_ATK_3, 921, 34, 0x80,  -1,  0,  0,  0); -- 流線斜め


-- 書き文字エントリー
ct = entryEffectLife( SP_ATK_3, 10014, 99, 0, -1, 0, -100, 255); -- ズドドッ
setEffShake(SP_ATK_3, ct, 99, 20);
setEffScaleKey( SP_ATK_3, ct, 2.4, 2.4);
setEffRotateKey(SP_ATK_3, ct, 70);
setEffAlphaKey(SP_ATK_3, ct, 255);
setEffAlphaKey(SP_ATK_3+20+5, ct, 255);
setEffAlphaKey(SP_ATK_3+25+5, ct, 0);


setDisp( SP_ATK_3, 0, 1);
setScaleKey(   SP_ATK_3-1,   0, 0.7, 0.7);
setScaleKey(   SP_ATK_3,   0, 0.5, 0.5);
setScaleKey(   SP_ATK_3+37,   0, 0.5, 0.5);


setMoveKey(  SP_ATK_3+31, 1,  120,    0,  -120);
setMoveKey(  SP_ATK_3+32, 1,  150,    0,  -120);
setMoveKey(  SP_ATK_3+35, 1,  150,    0,  -120);
setMoveKey(  SP_ATK_3+42, 1,  300,    120,  0);
changeAnime( SP_ATK_3+32, 1, 108);
-- ヒットエフェクト
hit_eff_1 = entryEffect( SP_ATK_3+32,  4,  0x40,  -1,  0,  300, 600);--HIT
hit_eff_2 = entryEffect( SP_ATK_3+32,  906,  0x40,  -1,  0,  300, 600);
hit_eff_3 = entryEffect( SP_ATK_3+32,  908,  0x40,  -1,  0,  300, 600);

setEffScaleKey( SP_ATK_3+32, hit_eff_1, 1.5, 1.5);
setEffScaleKey( SP_ATK_3+32, hit_eff_2, 1.5, 1.5);
setEffScaleKey( SP_ATK_3+32, hit_eff_3, 1.5, 1.5);

setMoveKey(  SP_ATK_3,  0, -1700,  0,   0);
--setMoveKey(  SP_ATK_3+1,  0, -1000,  0,   0);
setMoveKey(  SP_ATK_3+24,  0, -700,  0,   0);
setMoveKey(  SP_ATK_3+35,  0, 1000,  0,   0);
--changeAnime( SP_ATK_3+36, 0, 31);

setShakeChara(SP_ATK_3+40,0,30,14);
setShakeChara(SP_ATK_3+40,1,30,11);

entryEffectLife( SP_ATK_3+40, 906, 35, 0x00,  -1, 0,  0,  0);   -- 集中線
--entryEffectLife( SP_ATK_3+40, 920, 35, 0x80,  -1,  0,  0,  0); -- 流線
entryFade( SP_ATK_3+40, 4,  5, 1, 255, 255, 255, 255);     -- white fade

------------------------------------------------------
-- 回避
------------------------------------------------------

if(_IS_DODGE_ == 1) then

SP_dodge = 320; --エンドフェイズのフレーム数を置き換える

playSe( SP_dodge - 12, 1042);
stopSe( SP_dodge - 14, SE0,0);
stopSe( SP_dodge - 14, SE1,0);
stopSe( SP_dodge - 12, SE001, 0);
stopSe( SP_dodge - 12, SE002, 0);
stopSe( SP_dodge - 12, SE003, 0);
stopSe( SP_dodge - 12, SE004, 0);
stopSe( SP_dodge - 12, SE005, 0);
stopSe( SP_dodge - 12, SE006, 0);
stopSe( SP_dodge - 12, SE007, 0);

speff = entryEffectUnpausable(  SP_dodge-12,   1504,   0x100,     -1,  0,  0,  -350);   -- eff_005 (カットイン)
setEffReplaceTexture( speff, 3, 6);                           -- カットイン差し替え

kaihi = entryEffectUnpausable(  SP_dodge,   1575,  0x100,     -1,  0,  0,  350);   -- 回避の文字表示
setEffScaleKey( SP_dodge, kaihi, 1.0, 1.0);
setEffAlphaKey( SP_dodge, kaihi, 255);

pauseAll( SP_dodge, 67);

entryFade( SP_dodge+5, 4,  7, 4, fcolor_r, fcolor_g, fcolor_b, 255);     -- white fade

endPhase(SP_dodge+10);
do return end
else end
playSe( SP_ATK_3+12, SE_01);
------------------------------------------------------
-- 爆発 (110F)
------------------------------------------------------
setDisp( SP_ATK_4, 1, 1);
setDisp( SP_ATK_4, 0, 0);
setScaleKey( SP_ATK_4, 0, 0.7, 0.7);
setScaleKey( SP_ATK_4+1, 0, 1.0, 1.0);

setMoveKey(  SP_ATK_4,    1,  50,    0,  -120);
setScaleKey( SP_ATK_4,    1,  1.0, 1.0);
setMoveKey(  SP_ATK_4+1,    1,    0,   0,   128);
setScaleKey( SP_ATK_4+1,    1,  0.1, 0.1);

changeAnime( SP_ATK_4+1, 1, 107);-- 手前ダメージ
entryEffect( SP_ATK_4+1, 1509,  0x80,  -1,  0,  0,  0);   -- 爆発
playSe( SP_ATK_4+1, SE_10);

setMoveKey(  SP_ATK_4+8,    1,    0,   0,   128);
setMoveKey(  SP_ATK_4+15,   1,  -60,  -200,  -100);
setMoveKey(  SP_ATK_4+16,   1,  -60,  -200,  -100);

setRotateKey( SP_ATK_4,  1,  30 );
setRotateKey( SP_ATK_4+2,  1,  80 );
setRotateKey( SP_ATK_4+4,  1, 120 );
setRotateKey( SP_ATK_4+6,  1, 160 );
setRotateKey( SP_ATK_4+8,  1, 200 );
setRotateKey( SP_ATK_4+10,  1, 260 );
setRotateKey( SP_ATK_4+12,  1, 320 );
setRotateKey( SP_ATK_4+14,  1,   0 );

setShakeChara( SP_ATK_4+15, 1, 5,  10);
setShakeChara( SP_ATK_4+20, 1, 10, 20);
setShake(SP_ATK_4+14,6,15);
setShake(SP_ATK_4+20,15,10);
-- 書き文字エントリー
ct = entryEffectLife( SP_ATK_4+15, 10005, 100, 0, -1, 0, -50, 230); -- ガッ
setEffShake( SP_ATK_4+15, ct, 30, 10);
setEffRotateKey( SP_ATK_4+15, ct, -40);
setEffScaleKey( SP_ATK_4+15, ct, 4.0, 4.0);
setEffScaleKey( SP_ATK_4+16, ct, 2.0, 2.0);
setEffScaleKey( SP_ATK_4+17, ct, 2.6, 2.6);
setEffScaleKey( SP_ATK_4+18, ct, 4.0, 4.0);
setEffScaleKey( SP_ATK_4+19, ct, 2.6, 2.6);
setEffScaleKey( SP_ATK_4+20, ct, 3.8, 3.8);
setEffScaleKey( SP_ATK_4+110, ct, 3.8, 3.8);
setEffAlphaKey( SP_ATK_4+15, ct, 255);
setEffAlphaKey( SP_ATK_4+105, ct, 255);
setEffAlphaKey( SP_ATK_4+115, ct, 0);

playSe( SP_ATK_4+3, SE_11);
shuchusen = entryEffectLife( SP_ATK_4, 906, 120, 0x00,  -1, 0,  0,  0);   -- 集中線
entryEffect( SP_ATK_4+3, 1600,  0x00,  -1,  0,30, -130);   -- ひび割れ

-- ダメージ表示
dealDamage(SP_ATK_4+10);
endPhase(SP_ATK_4+106);

else
-----------------------------------------
--敵側の攻撃
-----------------------------------------
--キャラ位置
setMoveKey( 0,    0,      0,  0,   0);
setMoveKey( 0,    1,      800,  0,   0);

entryFade( 0, 2, 4, 8, fcolor_r, fcolor_g, fcolor_b, 255);     -- white fade
------------------------------------------------------
-- かめはめ波溜め！(100F)
------------------------------------------------------
setVisibleUI(SP_ATK_0, 0);
changeAnime( SP_ATK_0, 0, 30);                       -- 溜め!
SE001 = playSe( SP_ATK_0, SE_01);

entryEffect( SP_ATK_0,   1503,   0x80,  -1,  0,  0,  0);   -- eff_004 (気)
entryEffect( SP_ATK_0,   1502,   0,     -1,  0,  0,  0);   -- eff_003 (気)

-- ** エフェクト等 ** --
--aura = entryEffectLife( SP_ATK_0,   311, 100, 0x40,  0,  1,  0,  0); -- オーラ

--kamehame_beam = entryEffectLife( SP_ATK_0+5, SP_02, 30, 0x40,  0,  0,  0,  0);   -- 伸びるかめはめ波
--setEffScaleKey(SP_ATK_0+5,kamehame_beam,1.3,1.3);
--setEffScaleKey( SP_ATK_0, aura, 1.5, 1.5);
setShakeChara( SP_ATK_0+15, 0, 49, 5);

------------------------------------------------------
-- カードカットイン(90F)
------------------------------------------------------

speff = entryEffect(  SP_ATK_1,   1507,   0,  -1,  0,  0,  0);   -- カード
setEffReplaceTexture( speff, 1, 1);
setEffReplaceTexture( speff, 2, 0);                         -- カード差し替え
setEffReplaceTexture( speff, 5, 4);                                  -- 技名テクスチャ差し替え
SE002 = playSe( SP_ATK_1, SE_05);

spname = entryEffect( SP_ATK_1+10, 1508,  0x100,  -1,  0,  0,  0);               -- かめはめ波文字
setEffReplaceTexture(spname, 7, 4);                                  -- 技名テクスチャ差し替え

-- ** エフェクト等 ** --
--entryFlash( (SP_ATK_1+10), 1, fcolor_r, fcolor_g, fcolor_b, 100);
--entryFlash( (SP_ATK_1+22), 1, fcolor_r, fcolor_g, fcolor_b, 100);

--entryFlash( (SP_ATK_1+36), 1, fcolor_r, fcolor_g, fcolor_b, 100);
--entryFlash( (SP_ATK_1+50), 1, fcolor_r, fcolor_g, fcolor_b, 200);
----entryFlash( (SP_ATK_1+64), 1, fcolor_r, fcolor_g, fcolor_b, 200);

setEffAlphaKey( (SP_ATK_1), speff, 255);
setEffAlphaKey( (SP_ATK_1+45), speff, 255);
setEffAlphaKey( SP_ATK_1+47, speff, 0);
entryFade( SP_ATK_1+45, 3, 2, 4, fcolor_r, fcolor_g, fcolor_b, 255);     -- white fade

------------------------------------------------------
-- カメハメハ発射(110F)
------------------------------------------------------
entryEffect( SP_ATK_2, SP_02,  0x40,  0,  0,  0,  0); 

setScaleKey( SP_ATK_2+10, 0, 1.5, 1.5);
setScaleKey( SP_ATK_2+11, 0, 0.7, 0.7);
changeAnime( SP_ATK_2+11, 0, 31);                                    -- かめはめ発射ポーズ

--P移動
setMoveKey(  SP_ATK_2-1,    0,    0,  0,   0);
setMoveKey(  SP_ATK_2+45,  0,   0,  0,   0);
setMoveKey(  SP_ATK_2+50,  0,   -100,  0,   0);

SE0=playSe(  SP_ATK_2+45, SE_06);

setMoveKey(  SP_ATK_2+65,  0, 1700,  0,   0);
setMoveKey(  SP_ATK_2+68,  0, 1700,  0,   0);
setMoveKey(  SP_ATK_2+69,  0, -1700,  0,   0);

setShakeChara(  SP_ATK_2+14, 0, 20, 30);

kamehame_beam = entryEffectLife( SP_ATK_2+21, SP_03, 79, 0x80,  -1,  -800,  0,  0);   -- 伸びるかめはめ波
setEffMoveKey(  SP_ATK_2+21,    kamehame_beam,   -200,  0,   0);
setEffMoveKey(  SP_ATK_2+45,  kamehame_beam,   -200,  0,   0);
setEffMoveKey(  SP_ATK_2+50,  kamehame_beam,   -300,  0,   0);
setEffMoveKey(  SP_ATK_2+52,  kamehame_beam,   -160,  0,   0);
setEffMoveKey(  SP_ATK_2+54,  kamehame_beam,   100,  0,   0);
setEffMoveKey(  SP_ATK_2+56,  kamehame_beam,   400,  0,   0);
setEffMoveKey(  SP_ATK_2+58,  kamehame_beam,   700,  0,   0);
setEffMoveKey(  SP_ATK_2+65,  kamehame_beam, 1500,  0,   0);
SE1=playSe(SP_ATK_2+1, SE_07);

--spname = entryEffect( SP_ATK_2, 1508,  0,  -1,  0,  0,  0);               -- かめはめ波文字
--setEffReplaceTexture(spname, 7, 4);                                  -- 技名テクスチャ差し替え

--entryFade( SP_ATK_2+5, 3, 2, 5, fcolor_r, fcolor_g, fcolor_b, 255);     -- white fade

-- ** エフェクト等 ** --
entryFadeBg( SP_ATK_2, 0, 109, 0, 10, 10, 10, 180);       -- ベース暗め　背景
entryFadeBg( SP_ATK_2, 0, 40, 0, 230, 230, 230, 255);    -- 最初だけ明るい　背景
entryFadeBg( SP_ATK_2+40, 0, 2, 8, 100, 140, 250, 250);     -- 青い　背景

entryEffectLife( SP_ATK_2, 920, 75, 0x80,  -1,  0,  0,  0); -- 流線

--setShakeChara( SP_ATK_2+5, 0, 54, 50);

shuchusen = entryEffectLife( SP_ATK_2, 906, 49, 0x00,  -1, 0,  0,  0);   -- 集中線
setEffScaleKey( SP_ATK_2, shuchusen, 1.0, 1.0);
setEffScaleKey( SP_ATK_2+40, shuchusen, 1.0, 1.0);
setEffScaleKey( SP_ATK_2+46, shuchusen, 2.0, 2.0);

--entryFlash( (SP_ATK_2+10), 1,  fcolor_r, fcolor_g, fcolor_b, 200);
--entryFlash( (SP_ATK_2+22), 1, fcolor_r, fcolor_g, fcolor_b, 200);
--entryFlash( (SP_ATK_2+36), 1, fcolor_r, fcolor_g, fcolor_b, 200);
--entryFlash( (SP_ATK_2+50), 1, fcolor_r, fcolor_g, fcolor_b, 200);
--entryFlash( (SP_ATK_2+64), 1, fcolor_r, fcolor_g, fcolor_b, 200);
----entryFlash( (SP_ATK_2+80), 1, fcolor_r, fcolor_g, fcolor_b, 200);
----entryFlash( (SP_ATK_2+90), 1, fcolor_r, fcolor_g, fcolor_b, 255);
--playSe( SP_ATK_2+90, SE_06);

-- 書き文字エントリー
ct = entryEffectLife( SP_ATK_2+3, 10012, 32, 0, -1, 0, 150, 300); -- ズオッ
setEffShake(SP_ATK_2+3, ct, 32, 5);
setEffAlphaKey(SP_ATK_2+3, ct, 255);
setEffAlphaKey(SP_ATK_2+30, ct, 255);
setEffAlphaKey(SP_ATK_2+40, ct, 0);
setEffScaleKey(SP_ATK_2+3, ct, 0.0, 0.0);
setEffScaleKey(SP_ATK_2+8, ct, 2.5, 2.5);
setEffScaleKey(SP_ATK_2+32, ct, 2.5, 2.5);
setEffScaleKey(SP_ATK_2+40, ct, 6.0, 6.0);
setEffAlphaKey(SP_ATK_2+71,spname,1);

entryFade( SP_ATK_2+64, 5, 8, 10, fcolor_r, fcolor_g, fcolor_b, 255);     -- white fade

-- 書き文字エントリー
ct = entryEffectLife( SP_ATK_3, 10014, 99, 0, -1, 0, -100, 255); -- ズドドッ
setEffShake(SP_ATK_3, ct, 99, 20);
setEffScaleKey( SP_ATK_3, ct, 2.4, 2.4);
setEffRotateKey(SP_ATK_3, ct, -70);
setEffAlphaKey(SP_ATK_3, ct, 255);
setEffAlphaKey(SP_ATK_3+20+5, ct, 255);
setEffAlphaKey(SP_ATK_3+25+5, ct, 0);

entryEffectLife( SP_ATK_3, 921, 34, 0x80,  -1,  0,  0,  0); -- 流線斜め
------------------------------------------------------
-- 回避
------------------------------------------------------

if(_IS_DODGE_ == 1) then

SP_dodge = 166; --エンドフェイズのフレーム数を置き換える

playSe( SP_dodge - 12, 1042);
stopSe( SP_dodge - 14, SE0,0);
stopSe( SP_dodge - 14, SE1,0);
stopSe( SP_dodge - 12, SE001, 0);
stopSe( SP_dodge - 12, SE002, 0);

speff = entryEffectUnpausable(  SP_dodge-12,   1504,   0x100,     -1,  0,  0,  -350);   -- eff_005 (カットイン)
setEffReplaceTexture( speff, 3, 6);                           -- カットイン差し替え

kaihi = entryEffectUnpausable(  SP_dodge,   1575,  0x100,     -1,  0,  0,  350);   -- 回避の文字表示
setEffScaleKey( SP_dodge, kaihi, -1.0, 1.0);
setEffAlphaKey( SP_dodge, kaihi, 255);

pauseAll( SP_dodge, 67);

entryFade( SP_dodge+5, 4,  7, 4, fcolor_r, fcolor_g, fcolor_b, 255);     -- white fade
setMoveKey(  SP_dodge,  0, -1700,  0,   0);
setMoveKey(  SP_dodge+9,  0, -1700,  0,   0);

endPhase(SP_dodge+10);
do return end
else end



------------------------------------------------------
-- かめはめは迫る(100F)
------------------------------------------------------
--entryEffect( SP_ATK_3+20, SP_03,   0x40, 0,  0,  0,  0);   -- 迫るかめはめ波
kamehame_beam3 = entryEffectLife( SP_ATK_3+24, SP_03, 16, 0x40+0x80, 0, 0, 0, 0);
--setEffScaleKey(SP_ATK_3+24, kamehame_beam3, 1.5, 1.5);
--playSe( SP_ATK_3, SE_08);
--setMoveKey(  SP_ATK_3+24,  0, -700,  0,   0);
--setMoveKey(  SP_ATK_3+35,  0, 1000,  0,   0);

setEffMoveKey(  SP_ATK_3+24,  kamehame_beam3, -700,  0,   5);
setEffMoveKey(  SP_ATK_3+28,  kamehame_beam3, -400,  0,   5);
setEffMoveKey(  SP_ATK_3+30,  kamehame_beam3, -150,  0,   5);
setEffMoveKey(  SP_ATK_3+32,  kamehame_beam3, -100,  0,   5);
setEffMoveKey(  SP_ATK_3+35,  kamehame_beam3, 700,  0,   5);

--end

setDisp( SP_ATK_3, 1, 1);
changeAnime( SP_ATK_3, 1, 104);                        -- ガード

setMoveKey(  SP_ATK_3+15,    1,   700,  0,   0);
setScaleKey( SP_ATK_3+15,   1,   0.5,  0.5);
playSe( SP_ATK_3+12, SE_01);

--entryFade( SP_ATK_3+27, 10,  3, 4, fcolor_r, fcolor_g, fcolor_b, 255);     -- white fade

playSe( SP_ATK_3+27, SE_09);
-- 敵吹っ飛ぶモーション
setMoveKey(  SP_ATK_3+25, 1,  180,    0,  0);
setMoveKey(  SP_ATK_3+30, 1,  120,    0,  -120);

setScaleKey( SP_ATK_3+25, 1,  1.4, 1.4);
setScaleKey( SP_ATK_3+30, 1,  1, 1);

-- ** エフェクト等 ** --
setShakeChara( SP_ATK_3+20+5, 1, 99, 20);

entryFadeBg( SP_ATK_3, 4, 40, 4, 10, 10, 10, 150);          -- ベース暗め　背景






setDisp( SP_ATK_3, 0, 1);
setScaleKey(   SP_ATK_3-1,   0, 0.7, 0.7);
setScaleKey(   SP_ATK_3,   0, 0.5, 0.5);
setScaleKey(   SP_ATK_3+37,   0, 0.5, 0.5);


setMoveKey(  SP_ATK_3+31, 1,  120,    0,  -120);
setMoveKey(  SP_ATK_3+32, 1,  150,    0,  -120);
setMoveKey(  SP_ATK_3+35, 1,  150,    0,  -120);
setMoveKey(  SP_ATK_3+42, 1,  300,    120,  0);
changeAnime( SP_ATK_3+32, 1, 108);
-- ヒットエフェクト
hit_eff_1 = entryEffect( SP_ATK_3+32,  4,  0x40,  -1,  0,  -350, 600);--HIT
hit_eff_2 = entryEffect( SP_ATK_3+32,  906,  0x40,  -1,  0,  -350, 600);
hit_eff_3 = entryEffect( SP_ATK_3+32,  908,  0x40,  -1,  0,  -350, 600);

setEffScaleKey( SP_ATK_3+32, hit_eff_1, 1.5, 1.5);
setEffScaleKey( SP_ATK_3+32, hit_eff_2, 1.5, 1.5);
setEffScaleKey( SP_ATK_3+32, hit_eff_3, 1.5, 1.5);

setMoveKey(  SP_ATK_3,  0, -1700,  0,   0);
--setMoveKey(  SP_ATK_3+1,  0, -1000,  0,   0);
setMoveKey(  SP_ATK_3+24,  0, -700,  0,   0);
setMoveKey(  SP_ATK_3+35,  0, 700,  0,   0);
--changeAnime( SP_ATK_3+36, 0, 31);

setShakeChara(SP_ATK_3+40,0,30,14);
setShakeChara(SP_ATK_3+40,1,30,11);

entryEffectLife( SP_ATK_3+40, 906, 35, 0x00,  -1, 0,  0,  0);   -- 集中線
--entryEffectLife( SP_ATK_3+40, 920, 35, 0x80,  -1,  0,  0,  0); -- 流線
entryFade( SP_ATK_3+40, 4,  5, 1, 255, 255, 255, 255);     -- white fade

------------------------------------------------------
-- 爆発 (110F)
------------------------------------------------------
setDisp( SP_ATK_4, 1, 1);
setDisp( SP_ATK_4, 0, 0);
setScaleKey( SP_ATK_4, 0, 0.7, 0.7);
setScaleKey( SP_ATK_4+1, 0, 1.0, 1.0);

setMoveKey(  SP_ATK_4,    1,  50,    0,  -120);
setScaleKey( SP_ATK_4,    1,  1.0, 1.0);
setMoveKey(  SP_ATK_4+1,    1,    0,   0,   128);
setScaleKey( SP_ATK_4+1,    1,  0.1, 0.1);

changeAnime( SP_ATK_4+1, 1, 107);-- 手前ダメージ
entryEffect( SP_ATK_4+1, 1509,  0x80,  -1,  0,  0,  0);   -- 爆発
playSe( SP_ATK_4+1, SE_10);

setMoveKey(  SP_ATK_4+8,    1,    0,   0,   128);
setMoveKey(  SP_ATK_4+15,   1,  -60,  -200,  -100);
setMoveKey(  SP_ATK_4+16,   1,  -60,  -200,  -100);

setRotateKey( SP_ATK_4,  1,  30 );
setRotateKey( SP_ATK_4+2,  1,  80 );
setRotateKey( SP_ATK_4+4,  1, 120 );
setRotateKey( SP_ATK_4+6,  1, 160 );
setRotateKey( SP_ATK_4+8,  1, 200 );
setRotateKey( SP_ATK_4+10,  1, 260 );
setRotateKey( SP_ATK_4+12,  1, 320 );
setRotateKey( SP_ATK_4+14,  1,   0 );

setShakeChara( SP_ATK_4+15, 1, 5,  10);
setShakeChara( SP_ATK_4+20, 1, 10, 20);
setShake(SP_ATK_4+14,6,15);
setShake(SP_ATK_4+20,15,10);
-- 書き文字エントリー
ct = entryEffectLife( SP_ATK_4+15, 10005, 100, 0, -1, 0, -50, 230); -- ガッ
setEffShake( SP_ATK_4+15, ct, 30, 10);
setEffRotateKey( SP_ATK_4+15, ct, -40);
setEffScaleKey( SP_ATK_4+15, ct, 4.0, 4.0);
setEffScaleKey( SP_ATK_4+16, ct, 2.0, 2.0);
setEffScaleKey( SP_ATK_4+17, ct, 2.6, 2.6);
setEffScaleKey( SP_ATK_4+18, ct, 4.0, 4.0);
setEffScaleKey( SP_ATK_4+19, ct, 2.6, 2.6);
setEffScaleKey( SP_ATK_4+20, ct, 3.8, 3.8);
setEffScaleKey( SP_ATK_4+110, ct, 3.8, 3.8);
setEffAlphaKey( SP_ATK_4+15, ct, 255);
setEffAlphaKey( SP_ATK_4+105, ct, 255);
setEffAlphaKey( SP_ATK_4+115, ct, 0);

playSe( SP_ATK_4+3, SE_11);
shuchusen = entryEffectLife( SP_ATK_4, 906, 120, 0x00,  -1, 0,  0,  0);   -- 集中線
entryEffect( SP_ATK_4+3, 1600,  0x00,  -1,  0,30, -130);   -- ひび割れ

-- ダメージ表示
dealDamage(SP_ATK_4+10);
endPhase(SP_ATK_4+106);
end

print ("[lua]sp0001 end");
