diff options
author | Kevin Hockey <Blitzkev@gmail.com> | 2010-07-27 21:17:56 (GMT) |
---|---|---|
committer | Kevin Hockey <Blitzkev@gmail.com> | 2010-07-27 21:17:56 (GMT) |
commit | 7d9895ffc81850923cea593f0425d207617b0a26 (patch) | |
tree | 84a26a0cabcaa6f5c795dc51bd0c55a51202f53b /MAFH2/BattleEngine.py | |
parent | 6d6df1045c9447977e587d1c31a2c4669b3273f7 (diff) |
fixin multiple animations
Diffstat (limited to 'MAFH2/BattleEngine.py')
-rw-r--r-- | MAFH2/BattleEngine.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/MAFH2/BattleEngine.py b/MAFH2/BattleEngine.py index 36190bd..da4f7df 100644 --- a/MAFH2/BattleEngine.py +++ b/MAFH2/BattleEngine.py @@ -49,12 +49,12 @@ class BattleEngine(GameEngineElement): self.__drawableObjects = {} for i in ['arrow_select']: self.__drawableObjects[i] = DrawableObject([pygame.image.load( HUD_PATH + i + ".gif" )],'') - self.game_engine.get_scene().addObjects(self.__drawableObjects[i]) + self.game_engine.get_scene().addObjects([self.__drawableObjects[i]]) self.__drawableObjects['hp'] = DrawableObject(Spritesheet( HUD_PATH + "hp.gif" ).img_extract(11,1,100,100), '') self.__drawableObjects['bt'] = DrawableObject(Spritesheet( HUD_PATH + "bt.gif" ).img_extract(1,11,100,25), '') - self.game_engine.get_scene().addObjects(self.__drawableObjects['hp']) - self.game_engine.get_scene().addObjects(self.__drawableObjects['bt']) + self.game_engine.get_scene().addObjects([self.__drawableObjects['hp']]) + self.game_engine.get_scene().addObjects([self.__drawableObjects['bt']]) self.add_to_engine() self.game_engine.add_object('battlemenu', BattleMenuHolder( self.menu_callback ) ) @@ -402,10 +402,10 @@ class BattleEngine(GameEngineElement): # Player Health health = 10 - profile.hero.healthLevel() # screen.blit(self.__images['hp'][health], (25,25)) #4 orig - self.__drawableObjects['hp'].goToAnim(heatlh) #4 new + self.__drawableObjects['hp'].goToAnim(health) #4 new self.__drawableObjects['hp'].setPosition(25,25) #enemy.sprite.updateAnim( tick_time ) #2 new #what the hell does ^^ do?? # pygame.display.update(_dirtyList) #5 new - self.game_engine.get_scene().update(clock.get_time()) + #self.game_engine.get_scene().update(clock.get_time()) |