Skip to content

Commit

Permalink
Fix spelling error in firebirds sample
Browse files Browse the repository at this point in the history
  • Loading branch information
scotty007 committed Jun 25, 2020
1 parent 365a6fb commit 2ba4a5b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/samples/firebirds/firebirds.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,30 +256,30 @@ def update(self, dt):
### gui elements ###

class LifeCounter(avg.DivNode):
__NUM_LIVES = 3
__NUM_LIFES = 3

def __init__(self, parent=None, **kwargs):
super(LifeCounter, self).__init__(**kwargs)
self.registerInstance(self, parent)
self.__numLives = 0
self.__numLifes = 0
self.__images = []
x = 0
for i in xrange(LifeCounter.__NUM_LIVES):
for i in xrange(LifeCounter.__NUM_LIFES):
avg.ImageNode(href='gui_lives_bg.png', pos=(x, 0), parent=self)
img = avg.ImageNode(href='gui_lives_fg.png', pos=(x, 0), parent=self)
self.__images.append(img)
x += img.width

def reset(self):
self.__numLives = 3
self.__numLifes = 3
for img in self.__images:
avg.Anim.fadeIn(img, 250)

def dec(self):
assert(self.__numLives)
self.__numLives -= 1
avg.Anim.fadeOut(self.__images[self.__numLives], 250)
return not self.__numLives
assert(self.__numLifes)
self.__numLifes -= 1
avg.Anim.fadeOut(self.__images[self.__numLifes], 250)
return not self.__numLifes


class ScoreCounter(avg.DivNode):
Expand Down

0 comments on commit 2ba4a5b

Please sign in to comment.