Permalink
Browse files

fixed dead coins

  • Loading branch information...
1 parent a5d4d19 commit 46b6344e71cf7753808d9d65c768857bf6a93c75 Alec Goebel committed Apr 30, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 samplecode/networking_example/coinget/client/sprites/coin.py
@@ -28,6 +28,8 @@ def redraw(self):
self.image.fill((255,255 * ratio,0), rect.inflate(-4,-4))
def update(self):
+ if self.coin.identifier not in self.coin.world._objects:
+ self.kill()
self.redraw()
class CoinGroup(Group):

0 comments on commit 46b6344

Please sign in to comment.