Exemplo n.º 1
0
        public override int On進行描画()
        {
            if (TJAPlayer3.ConfigIni.eGameMode == EGame.完走叩ききりまショー || TJAPlayer3.ConfigIni.eGameMode == EGame.完走叩ききりまショー激辛)
            {
                //if( this.st叩ききりまショー.b最初のチップが叩かれた == true )//&&
                //CDTXMania.stage演奏ドラム画面.r検索範囲内にチップがあるか調べる( CSound管理.rc演奏用タイマ.n現在時刻ms, 0, 3000 ) )
                //this.st叩ききりまショー.ct残り時間.t進行();
                //else
                //{
                //    this.st叩ききりまショー.ct残り時間.n現在の値 = this.st叩ききりまショー.ct残り時間.n現在の値;
                //}


                //if( !this.st叩ききりまショー.ct残り時間.b停止中 )
                if (this.st叩ききりまショー.bタイマー使用中)
                {
                    if (!this.st叩ききりまショー.ct残り時間.b停止中 || this.st叩ききりまショー.b加算アニメ中 == true)
                    {
                        this.st叩ききりまショー.ct残り時間.t進行();
                        if (!TJAPlayer3.stage演奏ドラム画面.r検索範囲内にチップがあるか調べる((long)(CSound管理.rc演奏用タイマ.n現在時刻ms * (((double)TJAPlayer3.ConfigIni.n演奏速度) / 20.0)), 0, 5000, 0) || this.st叩ききりまショー.b加算アニメ中 == true)
                        {
                            this.st叩ききりまショー.bタイマー使用中 = false;
                            this.st叩ききりまショー.ct残り時間.t停止();
                        }
                    }
                }

                if (!this.st叩ききりまショー.bタイマー使用中 && this.st叩ききりまショー.b加算アニメ中 == false)
                {
                    if ((this.st叩ききりまショー.b最初のチップが叩かれた == true && (TJAPlayer3.stage演奏ドラム画面.r検索範囲内にチップがあるか調べる(CSound管理.rc演奏用タイマ.n現在時刻ms, 0, 2000, 0))))
                    {
                        this.st叩ききりまショー.bタイマー使用中 = true;
                        int nCount = this.st叩ききりまショー.ct残り時間.n現在の値;
                        this.st叩ききりまショー.ct残り時間       = new CCounter(0, 25000, 1, TJAPlayer3.Timer);
                        this.st叩ききりまショー.ct針アニメ       = new CCounter(0, 1000, 1, TJAPlayer3.Timer);
                        this.st叩ききりまショー.ct残り時間.n現在の値 = nCount;
                    }
                }


                if ((this.st叩ききりまショー.ct残り時間.n現在の値 >= 20000) && this.st叩ききりまショー.ct残り時間.n現在の値 != 25000)
                {
                    this.t叩ききりまショー_評価をして残り時間を延長する();
                }

                if (TJAPlayer3.Tx.Tile_Black != null)
                {
                    if (this.st叩ききりまショー.ct残り時間.n現在の値 >= 22000 && this.st叩ききりまショー.ct残り時間.n現在の値 < 23000)
                    {
                        TJAPlayer3.Tx.Tile_Black.Opacity = 64;
                    }
                    else if (this.st叩ききりまショー.ct残り時間.n現在の値 >= 23000 && this.st叩ききりまショー.ct残り時間.n現在の値 < 24000)
                    {
                        TJAPlayer3.Tx.Tile_Black.Opacity = 128;
                    }
                    else if (this.st叩ききりまショー.ct残り時間.n現在の値 >= 24000)
                    {
                        TJAPlayer3.Tx.Tile_Black.Opacity = 192;
                    }
                    else
                    {
                        TJAPlayer3.Tx.Tile_Black.Opacity = 0;
                    }

                    for (int i = 0; i <= (GameWindowSize.Width / 64); i++)
                    {
                        for (int j = 0; j <= (GameWindowSize.Height / 64); j++)
                        {
                            TJAPlayer3.Tx.Tile_Black.t2D描画(TJAPlayer3.app.Device, i * 64, j * 64);
                        }
                    }
                }

                //CDTXMania.act文字コンソール.tPrint( 100, 0, C文字コンソール.Eフォント種別.白, ( 25 - this.st叩ききりまショー.ct残り時間.n現在の値 ).ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n区間ノート数.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 2, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n現在通過したノート数.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 3, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.nヒット数_MISS.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 4, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n最小ズレ時間.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 5, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n最大ズレ時間.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 6, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n全体最大ズレ時間.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 7, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n最大コンボ.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 7, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.ct加算審査中.n現在の値.ToString() );

                #region [ 残り時間描画 ]
                if (TJAPlayer3.Tx.Taiko_Combo != null)
                {
                    if (TJAPlayer3.Tx.GameMode_Timer_Frame != null)
                    {
                        TJAPlayer3.Tx.GameMode_Timer_Frame.t2D描画(TJAPlayer3.app.Device, 230, 84);
                    }
                    this.st叩ききりまショー.ct針アニメ.t進行Loop();

                    int   nCenterX = 230;
                    int   nCerterY = 84;
                    float fRotate  = -C変換.DegreeToRadian(360.0f * (this.st叩ききりまショー.ct針アニメ.n現在の値 / 1000.0f));
                    if (this.st叩ききりまショー.b加算アニメ中 == true)
                    {
                        fRotate = C変換.DegreeToRadian(360.0f * (this.st叩ききりまショー.ct針アニメ.n現在の値 / (float)this.st叩ききりまショー.n延長アニメ速度));
                    }

                    Matrix4x4 mat = Matrix4x4.Identity;
                    if (this.st叩ききりまショー.b最初のチップが叩かれた)
                    {
                        mat *= Matrix4x4.CreateRotationZ(fRotate);
                        mat *= Matrix4x4.CreateTranslation(280 - 640, -(134 - 360), 0);
                    }
                    else
                    {
                        mat *= Matrix4x4.CreateTranslation(280 - 640, -(134 - 360), 0);
                    }

                    TJAPlayer3.Tx.GameMode_Timer_Tick.t3D描画(TJAPlayer3.app.Device, mat);

                    string str表示する残り時間 = (this.st叩ききりまショー.ct残り時間.n現在の値 < 1000) ? "25" : ((26000 - this.st叩ききりまショー.ct残り時間.n現在の値) / 1000).ToString();
                    this.t小文字表示(230 + (str表示する残り時間.Length * TJAPlayer3.Skin.Game_Taiko_Combo_Size[0] / 4), 84 + TJAPlayer3.Tx.GameMode_Timer_Frame.szテクスチャサイズ.Height / 2, string.Format("{0,2:#0}", str表示する残り時間));
                }

                if (!this.st叩ききりまショー.ct加算審査中.b停止中)
                {
                    if (!this.st叩ききりまショー.ct加算審査中.b停止中)
                    {
                        this.st叩ききりまショー.ct加算審査中.t進行();
                        if (this.st叩ききりまショー.ct加算審査中.b終了値に達した)
                        {
                            this.st叩ききりまショー.ct加算審査中.t停止();
                            this.st叩ききりまショー.b加算アニメ中 = false;
                            this.t加算時間描画_Start();
                        }
                    }
                }
                if (!this.st叩ききりまショー.ct加算時間表示.b停止中)
                {
                    if (!this.st叩ききりまショー.ct加算時間表示.b停止中)
                    {
                        this.st叩ききりまショー.ct加算時間表示.t進行();
                        if (this.st叩ききりまショー.ct加算時間表示.b終了値に達した)
                        {
                            this.st叩ききりまショー.ct加算時間表示.t停止();
                        }
                    }
                    this.t加算時間描画(this.n前回の延長時間);
                }
                #endregion
            }
            return(0);
        }
Exemplo n.º 2
0
        public override int On進行描画()
        {
            if (TJAPlayer3.ConfigIni.eGameMode == EGame.完走叩ききりまショー || TJAPlayer3.ConfigIni.eGameMode == EGame.完走叩ききりまショー激辛)
            {
                //if( this.st叩ききりまショー.b最初のチップが叩かれた == true )//&&
                //CDTXMania.stage演奏ドラム画面.r検索範囲内にチップがあるか調べる( CSound管理.rc演奏用タイマ.n現在時刻ms, 0, 3000 ) )
                //this.st叩ききりまショー.ct残り時間.t進行();
                //else
                //{
                //    this.st叩ききりまショー.ct残り時間.n現在の値 = this.st叩ききりまショー.ct残り時間.n現在の値;
                //}


                //if( !this.st叩ききりまショー.ct残り時間.b停止中 )
                if (this.st叩ききりまショー.bタイマー使用中)
                {
                    if (!this.st叩ききりまショー.ct残り時間.b停止中 || this.st叩ききりまショー.b加算アニメ中 == true)
                    {
                        this.st叩ききりまショー.ct残り時間.t進行();
                        if (!TJAPlayer3.stage演奏ドラム画面.r検索範囲内にチップがあるか調べる(CSound管理.rc演奏用タイマ.n現在時刻ms, 0, 5000, 0) || this.st叩ききりまショー.b加算アニメ中 == true)
                        {
                            this.st叩ききりまショー.bタイマー使用中 = false;
                            this.st叩ききりまショー.ct残り時間.t停止();
                        }
                    }
                }



                if ((this.st叩ききりまショー.ct残り時間.n現在の値 >= 20000) && this.st叩ききりまショー.ct残り時間.n現在の値 != 25000)
                {
                    this.t叩ききりまショー_評価をして残り時間を延長する();
                }

                if (TJAPlayer3.Tx.Tile_Black != null)
                {
                    if (this.st叩ききりまショー.ct残り時間.n現在の値 >= 22000 && this.st叩ききりまショー.ct残り時間.n現在の値 < 23000)
                    {
                        TJAPlayer3.Tx.Tile_Black.Opacity = 64;
                    }
                    else if (this.st叩ききりまショー.ct残り時間.n現在の値 >= 23000 && this.st叩ききりまショー.ct残り時間.n現在の値 < 24000)
                    {
                        TJAPlayer3.Tx.Tile_Black.Opacity = 128;
                    }
                    else if (this.st叩ききりまショー.ct残り時間.n現在の値 >= 24000)
                    {
                        TJAPlayer3.Tx.Tile_Black.Opacity = 192;
                    }
                    else
                    {
                        TJAPlayer3.Tx.Tile_Black.Opacity = 0;
                    }

                    for (int i = 0; i <= (SampleFramework.GameWindowSize.Width / 64); i++)
                    {
                        for (int j = 0; j <= (SampleFramework.GameWindowSize.Height / 64); j++)
                        {
                            TJAPlayer3.Tx.Tile_Black.t2D描画(TJAPlayer3.app.Device, i * 64, j * 64);
                        }
                    }
                }

                //CDTXMania.act文字コンソール.tPrint( 100, 0, C文字コンソール.Eフォント種別.白, ( 25 - this.st叩ききりまショー.ct残り時間.n現在の値 ).ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n区間ノート数.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 2, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n現在通過したノート数.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 3, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.nヒット数_MISS.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 4, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n最小ズレ時間.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 5, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n最大ズレ時間.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 6, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n全体最大ズレ時間.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 7, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n最大コンボ.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 7, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.ct加算審査中.n現在の値.ToString() );

                #region [ 残り時間描画 ]
                if (TJAPlayer3.Tx.GameMode_Timer_Frame != null)
                {
                    TJAPlayer3.Tx.GameMode_Timer_Frame.t2D描画(TJAPlayer3.app.Device, 230, 84);
                }
                this.st叩ききりまショー.ct針アニメ.t進行Loop();

                float fRotate = -C変換.DegreeToRadian(360.0f * (this.st叩ききりまショー.ct針アニメ.n現在の値 / 1000.0f));

                SlimDX.Matrix mat = SlimDX.Matrix.Identity;
                if (this.st叩ききりまショー.b最初のチップが叩かれた)
                {
                    mat *= SlimDX.Matrix.RotationZ(fRotate);
                    mat *= SlimDX.Matrix.Translation(280 - 640, -(134 - 400), 0);
                }
                else
                {
                    mat *= SlimDX.Matrix.Translation(280 - 640, -(134 - 400), 0);
                }

                TJAPlayer3.Tx.GameMode_Timer_Tick.t3D描画(TJAPlayer3.app.Device, mat);


                #endregion
            }
            return(0);
        }
        public override int On進行描画()
        {
            if (CDTXMania.ConfigIni.eGameMode == EGame.完走叩ききりまショー || CDTXMania.ConfigIni.eGameMode == EGame.完走叩ききりまショー激辛)
            {
                //if( this.st叩ききりまショー.b最初のチップが叩かれた == true )//&&
                //CDTXMania.stage演奏ドラム画面.r検索範囲内にチップがあるか調べる( CSound管理.rc演奏用タイマ.n現在時刻ms, 0, 3000 ) )
                //this.st叩ききりまショー.ct残り時間.t進行();
                //else
                //{
                //    this.st叩ききりまショー.ct残り時間.n現在の値 = this.st叩ききりまショー.ct残り時間.n現在の値;
                //}


                //if( !this.st叩ききりまショー.ct残り時間.b停止中 )
                if (this.st叩ききりまショー.bタイマー使用中)
                {
                    if (!this.st叩ききりまショー.ct残り時間.b停止中 || this.st叩ききりまショー.b加算アニメ中 == true)
                    {
                        this.st叩ききりまショー.ct残り時間.t進行();
                        if (!CDTXMania.stage演奏ドラム画面.r検索範囲内にチップがあるか調べる(CSound管理.rc演奏用タイマ.n現在時刻ms, 0, 5000, 0) || this.st叩ききりまショー.b加算アニメ中 == true)
                        {
                            this.st叩ききりまショー.bタイマー使用中 = false;
                            this.st叩ききりまショー.ct残り時間.t停止();
                        }
                    }
                }

                if (!this.st叩ききりまショー.bタイマー使用中 && this.st叩ききりまショー.b加算アニメ中 == false)
                {
                    if ((this.st叩ききりまショー.b最初のチップが叩かれた == true && (CDTXMania.stage演奏ドラム画面.r検索範囲内にチップがあるか調べる(CSound管理.rc演奏用タイマ.n現在時刻ms, 0, 2000, 0))))
                    {
                        this.st叩ききりまショー.bタイマー使用中 = true;
                        int nCount = this.st叩ききりまショー.ct残り時間.n現在の値;
                        this.st叩ききりまショー.ct残り時間       = new CCounter(0, 25000, 1, CDTXMania.Timer);
                        this.st叩ききりまショー.ct針アニメ       = new CCounter(0, 1000, 1, CDTXMania.Timer);
                        this.st叩ききりまショー.ct残り時間.n現在の値 = nCount;
                    }
                }


                if ((this.st叩ききりまショー.ct残り時間.n現在の値 >= 20000) && this.st叩ききりまショー.ct残り時間.n現在の値 != 25000)
                {
                    this.t叩ききりまショー_評価をして残り時間を延長する();
                }

                if (this.tx背景黒 != null)
                {
                    if (this.st叩ききりまショー.ct残り時間.n現在の値 >= 22000 && this.st叩ききりまショー.ct残り時間.n現在の値 < 23000)
                    {
                        this.tx背景黒.n透明度 = 64;
                    }
                    else if (this.st叩ききりまショー.ct残り時間.n現在の値 >= 23000 && this.st叩ききりまショー.ct残り時間.n現在の値 < 24000)
                    {
                        this.tx背景黒.n透明度 = 128;
                    }
                    else if (this.st叩ききりまショー.ct残り時間.n現在の値 >= 24000)
                    {
                        this.tx背景黒.n透明度 = 192;
                    }
                    else
                    {
                        this.tx背景黒.n透明度 = 0;
                    }

                    for (int i = 0; i <= (SampleFramework.GameWindowSize.Width / 64); i++)
                    {
                        for (int j = 0; j <= (SampleFramework.GameWindowSize.Height / 64); j++)
                        {
                            this.tx背景黒.t2D描画(CDTXMania.app.Device, i * 64, j * 64);
                        }
                    }
                }

                //CDTXMania.act文字コンソール.tPrint( 100, 0, C文字コンソール.Eフォント種別.白, ( 25 - this.st叩ききりまショー.ct残り時間.n現在の値 ).ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n区間ノート数.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 2, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n現在通過したノート数.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 3, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.nヒット数_MISS.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 4, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n最小ズレ時間.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 5, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n最大ズレ時間.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 6, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n全体最大ズレ時間.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 7, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.n最大コンボ.ToString() );
                //CDTXMania.act文字コンソール.tPrint( 100, 16 * 7, C文字コンソール.Eフォント種別.白, this.st叩ききりまショー.ct加算審査中.n現在の値.ToString() );

                #region [ 残り時間描画 ]
                if (this.tx残り時間数字 != null)
                {
                    if (this.txタイマー枠 != null)
                    {
                        this.txタイマー枠.t2D描画(CDTXMania.app.Device, 230, 84);
                    }
                    this.st叩ききりまショー.ct針アニメ.t進行Loop();

                    int   nCenterX = 230;
                    int   nCerterY = 84;
                    float fRotate  = -C変換.DegreeToRadian(360.0f * (this.st叩ききりまショー.ct針アニメ.n現在の値 / 1000.0f));
                    if (this.st叩ききりまショー.b加算アニメ中 == true)
                    {
                        fRotate = C変換.DegreeToRadian(360.0f * (this.st叩ききりまショー.ct針アニメ.n現在の値 / (float)this.st叩ききりまショー.n延長アニメ速度));
                    }

                    SlimDX.Matrix mat = SlimDX.Matrix.Identity;
                    if (this.st叩ききりまショー.b最初のチップが叩かれた)
                    {
                        mat *= SlimDX.Matrix.RotationZ(fRotate);
                        mat *= SlimDX.Matrix.Translation(280 - 640, -(134 - 360), 0);
                    }
                    else
                    {
                        mat *= SlimDX.Matrix.Translation(280 - 640, -(134 - 360), 0);
                    }

                    this.txタイマー針.t3D描画(CDTXMania.app.Device, mat);

                    string str表示する残り時間 = (this.st叩ききりまショー.ct残り時間.n現在の値 < 1000) ? "25" : ((26000 - this.st叩ききりまショー.ct残り時間.n現在の値) / 1000).ToString();
                    this.t小文字表示(236, 100, string.Format("{0,2:#0}", str表示する残り時間));
                }

                if (!this.st叩ききりまショー.ct加算審査中.b停止中)
                {
                    if (!this.st叩ききりまショー.ct加算審査中.b停止中)
                    {
                        this.st叩ききりまショー.ct加算審査中.t進行();
                        if (this.st叩ききりまショー.ct加算審査中.b終了値に達した)
                        {
                            this.st叩ききりまショー.ct加算審査中.t停止();
                            this.st叩ききりまショー.b加算アニメ中 = false;
                            this.t加算時間描画_Start();
                        }
                    }
                }
                if (!this.st叩ききりまショー.ct加算時間表示.b停止中)
                {
                    if (!this.st叩ききりまショー.ct加算時間表示.b停止中)
                    {
                        this.st叩ききりまショー.ct加算時間表示.t進行();
                        if (this.st叩ききりまショー.ct加算時間表示.b終了値に達した)
                        {
                            this.st叩ききりまショー.ct加算時間表示.t停止();
                        }
                    }
                    this.t加算時間描画(this.n前回の延長時間);
                }
                #endregion
            }
            return(0);
        }
Exemplo n.º 4
0
        public override int On進行描画()
        {
            if (!base.b活性化してない)
            {
                //for( int i = 0; i < 64; i++ )
                //{
                //    if( this.st連打キャラ[i].b使用中 )
                //    {
                //        this.st連打キャラ[i].n前回のValue = this.st連打キャラ[i].ct進行.n現在の値;
                //        this.st連打キャラ[i].ct進行.t進行();
                //        if (this.st連打キャラ[i].ct進行.b終了値に達した)
                //        {
                //            this.st連打キャラ[i].ct進行.t停止();
                //            this.st連打キャラ[i].b使用中 = false;
                //        }
                //        for (int n = this.st連打キャラ[i].n前回のValue; n < this.st連打キャラ[i].ct進行.n現在の値; n++)
                //        {
                //            this.st連打キャラ[i].fX += this.st連打キャラ[i].fX加速度;
                //            this.st連打キャラ[i].fY -= this.st連打キャラ[i].fY加速度;
                //        }

                //        if(CDTXMania.Tx.Effects_Roll[ this.st連打キャラ[ i ].nColor ] != null )
                //        {
                //            CDTXMania.Tx.Effects_Roll[ this.st連打キャラ[ i ].nColor ].t2D描画( CDTXMania.app.Device, (int)this.st連打キャラ[i].fX, (int)this.st連打キャラ[i].fY, new Rectangle( this.st連打キャラ[i].nColor * 0, 0, 128, 128 ) );
                //        }
                //    }

                //}
                for (int i = 0; i < 128; i++)
                {
                    if (RollCharas[i].IsUsing)
                    {
                        RollCharas[i].ct針アニメ.t進行Loop();
                        float fRotate = -C変換.DegreeToRadian(360.0f * (this.RollCharas[i].ct針アニメ.n現在の値 / 1000.0f));

                        SlimDX.Matrix mat = SlimDX.Matrix.Identity;
                        if (RollCharas[i].IsUsing == true)
                        {
                            mat *= SlimDX.Matrix.RotationZ(fRotate);
                            mat *= SlimDX.Matrix.Translation(RollCharas[i].X - 960, RollCharas[i].Y - 500, 0);
                        }
                        else
                        {
                            mat *= SlimDX.Matrix.Translation(RollCharas[i].X - 960, RollCharas[i].Y - 500, 0);
                        }
                        TJAPlayer3.Tx.Effects_Roll[RollCharas[i].Type]?.t3D描画(TJAPlayer3.app.Device, mat);

                        RollCharas[i].OldValue = RollCharas[i].Counter.n現在の値;
                        RollCharas[i].Counter.t進行();
                        if (RollCharas[i].Counter.b終了値に達した)
                        {
                            RollCharas[i].Counter.t停止();
                            RollCharas[i].IsUsing = false;
                        }
                        for (int l = RollCharas[i].OldValue; l < RollCharas[i].Counter.n現在の値; l++)
                        {
                            RollCharas[i].X += RollCharas[i].XAdd;
                            RollCharas[i].Y += 0;
                        }
                        // 画面外にいたら描画をやめさせる
                        if (RollCharas[i].X < 0 - TJAPlayer3.Tx.Effects_Roll[RollCharas[i].Type].szテクスチャサイズ.Width || RollCharas[i].X > 1920)
                        {
                            RollCharas[i].Counter.t停止();
                            RollCharas[i].IsUsing = false;
                        }
                        if (RollCharas[i].Y < 0 - TJAPlayer3.Tx.Effects_Roll[RollCharas[i].Type].szテクスチャサイズ.Height || RollCharas[i].Y > 1080)
                        {
                            RollCharas[i].Counter.t停止();
                            RollCharas[i].IsUsing = false;
                        }
                    }
                }
            }
            return(0);
        }