create new enums class, move out constants from mobs.py

This commit is contained in:
Xevion
2020-04-20 01:44:21 -05:00
parent 290942aa0d
commit 3d9a6d3eb4
2 changed files with 20 additions and 13 deletions

View File

@@ -3,8 +3,11 @@ config.py
Holds all constants used for setting up the game.
May later hold functions for loading/saving configuration files.
"""
import os
from enum import Enum
BASE_PATH = os.path.dirname(os.path.abspath(__file__))
RESOURCES = os.path.join(BASE_PATH, "resources")
IMAGES = os.path.join(RESOURCES, "images")
@@ -37,6 +40,18 @@ class Config(object):
TOP_VIEWPORT_MARGIN = 100
class Enums(Enum):
"""
A simple class used for tracking different simple
"""
# Play Direction Enums
RIGHT_FACING
LEFT_FACING
FRONT_FACING
UP_FACING
DOWN_FACING
class Sprites(object):
"""
Simple class for holding sprite paths.