all repos — Legends-RPG @ 8493ba3ac66e56efea1ab86e9a28500b1ac0e1c7

A fantasy mini-RPG built with Python and Pygame.

Fire only appears when enemy dies.
Justin Armstrong justinmeister@gmail.com
Tue, 29 Apr 2014 17:32:02 -0700
commit

8493ba3ac66e56efea1ab86e9a28500b1ac0e1c7

parent

edcd5c2abec6a2f46cf35d2023c924c837cce7ac

3 files changed, 5 insertions(+), 6 deletions(-)

jump to
M data/battlegui.pydata/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.pydata/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.pydata/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):