mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-06 03:13:12 -06:00
incresed speed boost on kills
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user