From: Mattia Basaglia Date: Fri, 13 Feb 2015 20:46:06 +0000 (+0100) Subject: Improve pong ball glow X-Git-Tag: xonotic-v0.8.2~2038^2~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d026589f9a6269b469f574752ca78b3bcb697bbb;p=xonotic%2Fxonotic-data.pk3dir.git Improve pong ball glow --- diff --git a/gfx/hud/default/minigames/pong/ball-glow.tga b/gfx/hud/default/minigames/pong/ball-glow.tga index f7ed9d52f..738d48aa0 100644 Binary files a/gfx/hud/default/minigames/pong/ball-glow.tga and b/gfx/hud/default/minigames/pong/ball-glow.tga differ diff --git a/gfx/hud/default/minigames/pong/ball.tga b/gfx/hud/default/minigames/pong/ball.tga index 1714323fd..c160e106d 100644 Binary files a/gfx/hud/default/minigames/pong/ball.tga and b/gfx/hud/default/minigames/pong/ball.tga differ diff --git a/qcsrc/common/minigames/minigame/pong.qc b/qcsrc/common/minigames/minigame/pong.qc index 5f009aeab..39f643231 100644 --- a/qcsrc/common/minigames/minigame/pong.qc +++ b/qcsrc/common/minigames/minigame/pong.qc @@ -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" )