Permalink
Browse files

fixed coin color

  • Loading branch information...
1 parent bd044d2 commit a5d4d192c75700fc27404f54d81286b7a2309be5 Alec Goebel committed Apr 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 samplecode/networking_example/coinget/client/sprites/coin.py
@@ -24,7 +24,8 @@ def redraw(self):
ratio = 1.0 * self.coin.life / settings.COIN_LIFE
self.image.fill((0,0,0))
- self.image.fill((255,255 * ratio,0), rect.inflate(-4,-4))
+ if ratio >= 0:
+ self.image.fill((255,255 * ratio,0), rect.inflate(-4,-4))
def update(self):
self.redraw()

0 comments on commit a5d4d19

Please sign in to comment.