• R/O
  • SSH
  • HTTPS

dtxmania: 提交


Commit MetaInfo

修訂1026 (tree)
時間2016-08-03 01:14:24
作者yyagi

Log Message

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

Change Summary

差異

--- trunk/DTXManiaプロジェクト/コード/ステージ/07.演奏/CAct演奏Danger共通.cs (revision 1025)
+++ trunk/DTXManiaプロジェクト/コード/ステージ/07.演奏/CAct演奏Danger共通.cs (revision 1026)
@@ -10,6 +10,7 @@
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 @@
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 @@
5267 {
5368 if (b活性化してる)
5469 {
70+ TextureFactory.tテクスチャの解放(ref this.txRedScreen);
5571 TextureFactory.tテクスチャの解放(ref this.txDANGER);
5672 base.OnManagedリソースの解放();
5773 }
@@ -86,8 +102,13 @@
86102 return 0;
87103 }
88104 int num = this.ct透明度用.n現在の値;
89- if (this.txDANGER != null)
105+ if ( txRedScreen != null )
90106 {
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 )
111+ {
91112 this.txDANGER.n透明度 = 60 + ((num < 180) ? num : (360 - num));
92113 }
93114 num = this.ct移動用.n現在の値;
Show on old repository browser