Skip to content

Commit a9a72e6

Browse files
committed
one more cleanup
1 parent 45c5b7b commit a9a72e6

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

pong_korge_port.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ def draw_halo(self, ball: Ball):
334334
halo_surf = self.halo_system.get_cached_halo(alpha)
335335

336336
# Just blit it - no drawing needed!
337-
cx = ball.rect.centerx
338-
cy = ball.rect.centery
339-
halo_rect = halo_surf.get_rect(center=(cx, cy))
337+
center_x = ball.rect.centerx
338+
center_y = ball.rect.centery
339+
halo_rect = halo_surf.get_rect(center=(center_x, center_y))
340340
self.screen.blit(halo_surf, halo_rect)
341341

342342
def draw_paddles(self, left: Paddle, right: Paddle):
@@ -382,9 +382,9 @@ def draw_winner_overlay(self, phase, winner_string, alpha):
382382
if phase != GamePhase.WINNING or not surf:
383383
return
384384

385-
a = clamp(int(clamp(alpha, 0.0, 255.0)), 0, 255)
385+
alpha = clamp(int(clamp(alpha, 0.0, 255.0)), 0, 255)
386386
tmp = surf.copy() # only copy when actually drawing
387-
tmp.set_alpha(a)
387+
tmp.set_alpha(alpha)
388388
self.screen.blit(
389389
tmp,
390390
tmp.get_rect(

0 commit comments

Comments
 (0)