]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Improve pong ball glow
authorMattia Basaglia <mattia.basaglia@gmail.com>
Fri, 13 Feb 2015 20:46:06 +0000 (21:46 +0100)
committerMattia Basaglia <mattia.basaglia@gmail.com>
Fri, 13 Feb 2015 20:46:06 +0000 (21:46 +0100)
gfx/hud/default/minigames/pong/ball-glow.tga
gfx/hud/default/minigames/pong/ball.tga
qcsrc/common/minigames/minigame/pong.qc

index f7ed9d52ff1f63f5a3890d037d39fbfdb6b0f0c6..738d48aa056ceb943164c3277e2491dd0d5a8d09 100644 (file)
Binary files a/gfx/hud/default/minigames/pong/ball-glow.tga and b/gfx/hud/default/minigames/pong/ball-glow.tga differ
index 1714323fda7a4bf0552421745b5ca821bddee721..c160e106de9ad6b98d078fc731196d61c9e84f55 100644 (file)
Binary files a/gfx/hud/default/minigames/pong/ball.tga and b/gfx/hud/default/minigames/pong/ball.tga differ
index 5f009aeab9cbbd25ef16fb0e03120e6fd4b0b677..39f643231f2cd66b20e67462c94aca08cee62e8d 100644 (file)
@@ -492,14 +492,15 @@ void pong_hud_board(vector pos, vector mySize)
        {
                if ( e.classname == "pong_ball" )
                {
-                       obj_size =  minigame_hud_denormalize_size('2 2 0'*e.pong_length,pos,mySize);
+                       // Note: 4*radius = 2*diameter because the image is large enough to fit the glow around the ball
+                       obj_size =  minigame_hud_denormalize_size('4 4 0'*e.pong_length,pos,mySize);
                        obj_pos = minigame_hud_denormalize(e.origin,pos,mySize);
                        
                        minigame_drawpic_centered( obj_pos, minigame_texture("pong/ball"),
                                        obj_size, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL );
                        
                        minigame_drawpic_centered( obj_pos, minigame_texture("pong/ball-glow"),
-                                       2*obj_size, pong_team_to_color(e.team), 
+                                       obj_size, pong_team_to_color(e.team), 
                                        panel_fg_alpha, DRAWFLAG_ADDITIVE );
                }
                else if ( e.classname == "pong_paddle" )