@@ -694,7 +694,8 @@ pub fn initCommonEffects() void {
694
694
effects [0 ].keys [2 ] = death ;
695
695
death .r = 0 ;
696
696
death .a = 0 ;
697
- effects [0 ].keys [0 ] = death ;
697
+ effects [0 ].keys [3 ] = death ;
698
+ std .log .debug ("Effect #0: Death (30frames) loaded" , .{});
698
699
699
700
tps .initEffect (& effects [1 ], 30 , 3 , c .SDL_BLENDMODE_ADD );
700
701
var blink : c.SDL_Color = .{ .r = 0 , .g = 0 , .b = 0 , .a = 255 };
@@ -707,12 +708,14 @@ pub fn initCommonEffects() void {
707
708
blink .g = 0 ;
708
709
blink .b = 0 ;
709
710
effects [1 ].keys [2 ] = blink ;
711
+ std .log .debug ("Effect #1: Blink (white) (30frames) loaded" , .{});
710
712
711
713
tps .initEffect (& effects [2 ], 30 , 2 , c .SDL_BLENDMODE_BLEND );
712
714
var vanish : c.SDL_Color = .{ .r = 255 , .g = 255 , .b = 255 , .a = 255 };
713
715
effects [2 ].keys [0 ] = vanish ;
714
716
vanish .a = 0 ;
715
717
effects [2 ].keys [1 ] = vanish ;
718
+ std .log .debug ("Effect #2: Vanish (30frames) loaded" , .{});
716
719
}
717
720
718
721
fn initCommonSprite (sprite : * spr.Sprite , weapon : * wp.Weapon , res_id : c_int , hp : c_int ) void {
0 commit comments