-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.py
46 lines (37 loc) · 911 Bytes
/
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
35
36
37
38
39
40
41
42
43
44
45
46
"""
Constants that guide the game.
@author: Jeroen Vlek <[email protected]>
"""
DT = 1.0 / 60.0
DAMPING = 0.8
MAX_DISTANCE_THRESHOLD = 75
PHYSICS_STEPS_PER_FRAME = 1
PUSH_BODY_FRICTION = 0.9
PUSH_BODY_ELASTICITY = 1.0
PUSH_BODY_RADIUS = 50
PUSH_BODY_MASS = 5
PUSH_BODY_MAX_V = 50
COUNTER_MARGIN = 20
GOAL_FRICTION = 0.9
GOAL_ELASTICITY = 1.0
GOAL_MARGIN = 10
RELATIVE_GOAL_SIZE = 0.3
LOGO_RADIUS = 2
LOGO_MASS = 5
LOGO_FRICTION = 0.95
LOGO_ELASTICITY = 1.0
LOGO_SIZE = (120, 120)
COLLTYPE_MOUSE = 1
COLLTYPE_LOGO = 2
COLLTYPE_GOAL = 3
# Taken from: https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/output.md
LEFT_WRIST_IDX = 7
LEFT_ELBOW_IDX = 6
RIGHT_WRIST_IDX = 4
RIGHT_ELBOW_IDX = 3
NECK_IDX = 2
# Lol, this is actually the golden ratio, look it up
HAND_FOREARM_RATIO = (1 + 5 ** 0.5) / 2
FONT_NAME = 'Comic Sans MS' # Hell yeah
FONT_SIZE = 60
OBJECT_COLOR = (229, 11, 20)