mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2026-01-31 04:22:09 -06:00
@@ -16,4 +16,4 @@ This game can be setup and run with:
|
||||
|
||||
## Instructions
|
||||
Use WASD to move and the mouse to aim and fire.
|
||||
Use left shift to cycle through different monster combinations and try to shoot the monsters in that order to recieve a speed boost. Once all the monsters are gone you will move onto another level.
|
||||
Use left shift to cycle through different monster combinations and try to shoot the monsters in that order to recieve a speed boost. Once all the monsters are gone you will move onto another level. If the monters get too close you will take damage. If your health geths to 0 the game will be restarted.
|
||||
|
||||
@@ -70,7 +70,7 @@ class MobHandler:
|
||||
distance = self.get_distance(enemy)
|
||||
enemy.collisions.update()
|
||||
if distance < 100 :
|
||||
self.player.health -= 1
|
||||
self.player.health -= (2 - self.player.armor)
|
||||
if (distance < 300):
|
||||
enemy.speed = Config.MONSTER_MOVEMENT_SPEED
|
||||
try:
|
||||
@@ -126,12 +126,12 @@ class Mob(arcade.Sprite):
|
||||
Represents a Mob. No defined behaviour, it has no intelligence.
|
||||
"""
|
||||
|
||||
def __init__(self, dungeon: Dungeon, max_health=100, max_armor=0, *args, **kwargs) -> None:
|
||||
def __init__(self, dungeon: Dungeon, max_health=200, max_armor=0, *args, **kwargs) -> None:
|
||||
# Set up parent class
|
||||
super(Mob, self).__init__(*args, **kwargs)
|
||||
|
||||
self.max_health, self.max_armor = max_health, max_armor
|
||||
self.health, self.armor = 60, max_armor
|
||||
self.health, self.armor = max_health, max_armor
|
||||
self.idle_textures = []
|
||||
self.walking_textures = []
|
||||
self.up_textures = []
|
||||
|
||||
Reference in New Issue
Block a user