]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Tweak pong textures
authorMattia Basaglia <mattia.basaglia@gmail.com>
Fri, 13 Feb 2015 14:55:07 +0000 (15:55 +0100)
committerMattia Basaglia <mattia.basaglia@gmail.com>
Fri, 13 Feb 2015 14:55:07 +0000 (15:55 +0100)
gfx/hud/default/minigames/pong/ball-glow.tga
gfx/hud/default/minigames/pong/board.tga
qcsrc/common/minigames/minigame/pong.qc

index 6622d25278f407c1e3d2db420780d005073ee30c..f7ed9d52ff1f63f5a3890d037d39fbfdb6b0f0c6 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 fa774a4529b716aaa10fe9e8b7a908c9ae125e38..570027bfbf56be4cc47ce0d6700da445db246b0f 100644 (file)
Binary files a/gfx/hud/default/minigames/pong/board.tga and b/gfx/hud/default/minigames/pong/board.tga differ
index b85f94100fcd55d6d5ce94256f796869ce49b1a2..2e4510627cf65c45299883e482060b7db2129d31 100644 (file)
@@ -487,32 +487,32 @@ void pong_hud_board(vector pos, vector mySize)
        
        entity e;
        vector obj_pos;
-       vector ball_size;
-       vector paddle_size;
+       vector obj_size;
        FOREACH_MINIGAME_ENTITY(e)
        {
                if ( e.classname == "pong_ball" )
                {
-                       ball_size =  minigame_hud_denormalize_size('2 2 0'*e.pong_length,pos,mySize);
+                       obj_size =  minigame_hud_denormalize_size('2 2 0'*e.pong_length,pos,mySize);
                        obj_pos = minigame_hud_denormalize(e.origin,pos,mySize);
-                       minigame_drawpic_centered( obj_pos, minigame_texture("pong/ball"),
-                                       ball_size, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL );
                        
                        minigame_drawpic_centered( obj_pos, minigame_texture("pong/ball"),
-                                       ball_size, pong_team_to_color(e.team), 
+                                       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), 
                                        panel_fg_alpha, DRAWFLAG_ADDITIVE );
                }
                else if ( e.classname == "pong_paddle" )
                {
                        obj_pos = minigame_hud_denormalize(e.origin,pos,mySize);
-                       paddle_size = minigame_hud_denormalize_size(eX / 16 + eY*e.pong_length,pos,mySize);
+                       obj_size = minigame_hud_denormalize_size(eX / 16 + eY*e.pong_length,pos,mySize);
                        
                        drawrotpic(obj_pos, pong_team_to_angle(e.team), minigame_texture("pong/paddle-glow"), 
-                               paddle_size, paddle_size/2, pong_team_to_color(e.team), 
+                               obj_size, obj_size/2, pong_team_to_color(e.team), 
                                panel_fg_alpha, DRAWFLAG_ADDITIVE );
                        
                        drawrotpic(obj_pos, pong_team_to_angle(e.team), minigame_texture("pong/paddle"), 
-                               paddle_size, paddle_size/2, '1 1 1', 
+                               obj_size, obj_size/2, '1 1 1', 
                                panel_fg_alpha, DRAWFLAG_NORMAL );
                        
                }