new SD flakes from mikade and a flash when sudden death starts
authorHenek
Sat, 13 Aug 2011 22:46:47 +0200
changeset 5558 49cfd05ccb83
parent 5557 5a971d01a545
child 5559 a937d43a032f
new SD flakes from mikade and a flash when sudden death starts
hedgewars/uGears.pas
hedgewars/uVariables.pas
share/hedgewars/Data/Graphics/SuddenDeath/SDFlake.png
--- a/hedgewars/uGears.pas	Sat Aug 13 21:06:51 2011 +0200
+++ b/hedgewars/uGears.pas	Sat Aug 13 22:46:47 2011 +0200
@@ -853,6 +853,12 @@
                     if cHealthDecrease <> 0 then
                         begin
                         SuddenDeathDmg:= true;
+                        
+                        // flash
+                        ScreenFade:= sfFromWhite;
+                        ScreenFadeValue:= sfMax;
+                        ScreenFadeSpeed:= 1;
+                        
                         ChangeToSDClouds;
                         ChangeToSDFlakes;
                         glClearColor(SDSkyColor.r / 255, SDSkyColor.g / 255, SDSkyColor.b / 255, 0.99);
--- a/hedgewars/uVariables.pas	Sat Aug 13 21:06:51 2011 +0200
+++ b/hedgewars/uVariables.pas	Sat Aug 13 22:46:47 2011 +0200
@@ -2505,11 +2505,11 @@
     else
         cMaxCaptions:= 4;
 
-    vobSDFrameTicks:= 0;
-    vobSDFramesCount:= 0;
+    vobSDFrameTicks:= 99999;
+    vobSDFramesCount:= 4;
     vobSDCount:= 30 * cScreenSpace div LAND_WIDTH;
-    vobSDVelocity:= 0;
-    vobSDFallSpeed:= 0;
+    vobSDVelocity:= 15;
+    vobSDFallSpeed:= 250;
 
     LuaGoals:= '';
 end;
Binary file share/hedgewars/Data/Graphics/SuddenDeath/SDFlake.png has changed