fixed animation artifacts
--HG-- branch : vssg
This commit is contained in:
parent
9e4221c951
commit
cec747e423
1 changed files with 1 additions and 0 deletions
|
@ -112,6 +112,7 @@ class StarClass(object):
|
||||||
dest = self.frames[frame].get_rect()
|
dest = self.frames[frame].get_rect()
|
||||||
dest.x = x - (dest.w / 2) + 1
|
dest.x = x - (dest.w / 2) + 1
|
||||||
dest.y = y - (dest.h / 2) + 1
|
dest.y = y - (dest.h / 2) + 1
|
||||||
|
pygame.draw.rect(surf, (0,0,0), dest)
|
||||||
surf.blit(self.frames[frame], dest)
|
surf.blit(self.frames[frame], dest)
|
||||||
if id(star.map.selection) == id(star):
|
if id(star.map.selection) == id(star):
|
||||||
surf.blit(star.map.selectionpng, dest)
|
surf.blit(star.map.selectionpng, dest)
|
||||||
|
|
Loading…
Add table
Reference in a new issue