use Config class in mobs.py

This commit is contained in:
Xevion
2020-04-18 01:29:27 -05:00
parent 814996497e
commit bb4a6cd8e7

View File

@@ -1,11 +1,14 @@
import arcade
from config import Config
class Mob(object):
"""
Represents a Mob. No defined behaviour, it has no intelligence.
"""
def __init__(self, sprite, max_health=100, max_armor=0) -> None:
self.sprite_path = sprite
self.sprite = arcade.Sprite(self.sprite_path, Config.CHARACTER_SCALING)
self.max_health, self.max_armor = max_health, max_armor
self.health, self.armor = max_health, max_armor