Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added player border

  • Loading branch information...
commit a73664e862edf1c6de10dae60343f7b16c0deee1 1 parent be6277d
@alecgoebel alecgoebel authored
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.