mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-10 08:05:22 -06:00
create new enums class, move out constants from mobs.py
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user