Permalink
Browse files

added player border

  • Loading branch information...
1 parent be6277d commit a73664e862edf1c6de10dae60343f7b16c0deee1 Alec Goebel committed Apr 30, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 samplecode/networking_example/coinget/client/sprites/player.py
@@ -14,7 +14,11 @@ def __init__(self, player):
self.image = pygame.Surface(player.rect.size)
self.rect = self.image.get_rect()
- self.image.fill((0,0,0))
+ if self.player.local:
+ border = 255,255,255
+ else:
+ border = 0,0,0
+ self.image.fill(border)
self.image.fill(player.color, self.rect.inflate(-4,-4))
self.rect.center = player.rect.center

0 comments on commit a73664e

Please sign in to comment.