-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
34 lines (28 loc) · 1.04 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# ./constants.py
import os
import enum
from dotenv import load_dotenv
load_dotenv()
@enum.unique
class InputConfig(enum.Enum):
'''
Config for the gameplay, Takes input from .env
Value should be something tha can be used by pyAutoGUI
If not available then, uses default input config (mine)
and Yes I use arrow keys, deal with it!
'''
DEFAULT = ''
UP = os.getenv('UP', 'up').lower()
DOWN = os.getenv('DOWN', 'down').lower()
LEFT = os.getenv('LEFT', 'left').lower()
RIGHT = os.getenv('RIGHT', 'right').lower()
FRONT_PUNCH = os.getenv('FRONT_PUNCH', 'a').lower()
BACK_PUNCH = os.getenv('BACK_PUNCH', 's').lower()
FRONT_KICK = os.getenv('FRONT_KICK', 'z').lower()
BACK_KICK = os.getenv('BACK_KICK', 'x').lower()
THROW = os.getenv('THROW', 'd').lower()
TAG = os.getenv('TAG', 'c').lower()
BLOCK = os.getenv('BLOCK', 'space').lower()
FLIP_STANCE = os.getenv('FLIP_STANCE', 'ctrlright').lower()
PAUSE = os.getenv('PAUSE', 'tab').lower()
BACK = os.getenv('BACK', 'backspace').lower()