• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

dtxmania 中文


コミットメタ情報

リビジョンae39d769ea1c44593c7bb6ea4e2dd8247365f374 (tree)
日時2016-08-03 01:14:24
作者yyagi <yyagi@16f4...>
コミッターyyagi

ログメッセージ

#28314 Dangerの表示において、全画面が赤く明滅するようなエフェクトを追加。

git-svn-id: http://svn.osdn.jp/svnroot/dtxmania/trunk@1026 16f42ceb-6dc6-49c8-ba94-f2d53467949d

変更サマリ

  • delete: "DTXMania\343\203\227\343\203\255\343\202\270\343\202\247\343\202\257\343\203\210/\343\202\263\343\203\274\343\203\211/\343\202\271\343\203\206\343\203\274\343\202\270/07.\346\274\224\345\245\217/CAct\346\274\224\345\245\217Danger\345\205\261\351\200\232.cs"
  • delete: "\345\256\237\350\241\214\346\231\202\343\203\225\343\202\251\343\203\253\343\203\200/DTXManiaGR.exe"

差分

--- "a/DTXMania\343\203\227\343\203\255\343\202\270\343\202\247\343\202\257\343\203\210/\343\202\263\343\203\274\343\203\211/\343\202\271\343\203\206\343\203\274\343\202\270/07.\346\274\224\345\245\217/CAct\346\274\224\345\245\217Danger\345\205\261\351\200\232.cs"
+++ "b/DTXMania\343\203\227\343\203\255\343\202\270\343\202\247\343\202\257\343\203\210/\343\202\263\343\203\274\343\203\211/\343\202\271\343\203\206\343\203\274\343\202\270/07.\346\274\224\345\245\217/CAct\346\274\224\345\245\217Danger\345\205\261\351\200\232.cs"
@@ -10,6 +10,7 @@ namespace DTXMania
1010 internal class CAct演奏Danger共通 : CActivity
1111 {
1212 private CTextureAf txDANGER;
13+ private CTexture txRedScreen;
1314 private bool bDanger中;
1415 // = { false, false, false };
1516 private CCounter ct移動用;
@@ -44,6 +45,20 @@ namespace DTXMania
4445 if (b活性化してる)
4546 {
4647 this.txDANGER = TextureFactory.tテクスチャの生成Af(CSkin.Path(@"Graphics\ScreenPlayDrums danger.png"), false);
48+
49+ using ( Bitmap bmp = new Bitmap( SampleFramework.GameWindowSize.Width, SampleFramework.GameWindowSize.Height ) )
50+ {
51+ using ( var g = Graphics.FromImage( bmp ) )
52+ {
53+ using ( var brush = new SolidBrush( Color.Red ) )
54+ {
55+ g.FillRectangle( brush, 0, 0, bmp.Width, bmp.Height );
56+ }
57+ }
58+ this.txRedScreen = TextureFactory.tテクスチャの生成( bmp );
59+ }
60+
61+
4762 base.OnManagedリソースの作成();
4863 }
4964 }
@@ -52,6 +67,7 @@ namespace DTXMania
5267 {
5368 if (b活性化してる)
5469 {
70+ TextureFactory.tテクスチャの解放(ref this.txRedScreen);
5571 TextureFactory.tテクスチャの解放(ref this.txDANGER);
5672 base.OnManagedリソースの解放();
5773 }
@@ -86,7 +102,12 @@ namespace DTXMania
86102 return 0;
87103 }
88104 int num = this.ct透明度用.n現在の値;
89- if (this.txDANGER != null)
105+ if ( txRedScreen != null )
106+ {
107+ this.txRedScreen.n透明度 = ( ( ( num < 180 ) ? num : ( 360 - num ) ) * 256 / 180) / 3 ;
108+ this.txRedScreen.t2D描画( CDTXMania.Instance.Device, 0, 0 );
109+ }
110+ if ( this.txDANGER != null )
90111 {
91112 this.txDANGER.n透明度 = 60 + ((num < 180) ? num : (360 - num));
92113 }
Binary files "a/\345\256\237\350\241\214\346\231\202\343\203\225\343\202\251\343\203\253\343\203\200/DTXManiaGR.exe" and "b/\345\256\237\350\241\214\346\231\202\343\203\225\343\202\251\343\203\253\343\203\200/DTXManiaGR.exe" differ