incresed speed boost on kills

This commit is contained in:
Cameron Smart
2020-04-26 01:11:15 -07:00
parent f346a166dd
commit 31d5ef8029
4 changed files with 3 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ class Config(object):
BOON_LIST = ["heal", "harden", "hurry"]
HEAL_AMOUNT = 20
ARMOR_AMOUNT = 1
SPEED_AMOUNT = 2
SPEED_AMOUNT = 5
# How many pixels to keep as a minimum margin between the characters and the edge of the screen.
LEFT_VIEWPORT_MARGIN = 700
@@ -54,7 +54,7 @@ class Config(object):
DEBUG = False
# Monster Count to be spawned
MONSTER_COUNT = 8
MONSTER_COUNT = 6
class Enums(Enum):

View File

@@ -247,6 +247,7 @@ class Game(arcade.Window):
boon = self.Recipe.add_kill(enemy_hit_list[0].monster_type)
if boon >= 0:
getattr(self.player, Config.BOON_LIST[boon])();
self.player.hurry()
enemy_hit_list[0].remove_from_sprite_lists()
bullet.remove_from_sprite_lists()

View File

@@ -67,7 +67,6 @@ class MobHandler:
# Enemy activation and update
for enemy in reversed(self.enemy_list):
# TODO replace with distance checking
distance = self.get_distance(enemy)
enemy.collisions.update()
if (distance < 300):

View File

@@ -64,7 +64,6 @@ class ActiveRecipe(arcade.SpriteList):
ret_val = -1
if len(self.kill_list) >= 3:
if self.active == self.kill_list:
print("+++++++++++++++++++++++++++++++++++++++++++++++++++++++")
self.kill_list = []
ret_val = self.pos
self.kill_list = []