Fire only appears when enemy dies.
Justin Armstrong justinmeister@gmail.com
Tue, 29 Apr 2014 17:32:02 -0700
3 files changed,
5 insertions(+),
6 deletions(-)
M
data/battlegui.py
→
data/battlegui.py
@@ -4,7 +4,6 @@ """
import pygame as pg from . import setup from . import constants as c -from .components import textbox class InfoBox(object):
M
data/components/attackitems.py
→
data/components/attackitems.py
@@ -79,7 +79,7 @@ """
Update sprite position or delete if necessary. """ self.rect.y += self.y_vel - if self.rect.y < (self.start_posy - 30): + if self.rect.y < (self.start_posy - 50): self.kill()
M
data/states/battle.py
→
data/states/battle.py
@@ -231,11 +231,11 @@ if enemy.health <= 0:
enemy.kill() self.enemy_list.pop(enemy.index) self.arrow.remove_pos(self.player.attacked_enemy) + posx = enemy.rect.x - 32 + posy = enemy.rect.y - 64 + fire_sprite = attack.Fire(posx, posy) + self.attack_animations.add(fire_sprite) self.enemy_index = 0 - posx = enemy.rect.x - 32 - posy = enemy.rect.y - 64 - fire_sprite = attack.Fire(posx, posy) - self.attack_animations.add(fire_sprite) self.player.attacked_enemy = None def set_enemy_indices(self):