-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconst.py
More file actions
30 lines (22 loc) · 813 Bytes
/
const.py
File metadata and controls
30 lines (22 loc) · 813 Bytes
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
import pygame
colors = {
"grey_light" : pygame.Color(200, 200, 200),
"grey_dark" : pygame.Color(100, 100, 100),
"green" : pygame.Color(50, 255, 63),
"red" : pygame.Color(220, 30, 30),
"white" : pygame.Color(255, 255, 255),
"blue" : pygame.Color(50, 75, 245),
"blue" : pygame.Color(50, 75, 245),
}
# font = pygame.font.Font("terraria_styled_game\Fonts\PixelifySans-Regular.ttf", 36)
# Define colors
WHITE = (255, 255, 255)
BUTTON_COLOR = (50, 50, 50)
BUTTON_HOVER_COLOR = (100, 100, 100)
# Define constants
SECONDS_PER_DAY = 86400.0
SECONDS_PER_MINUTE = 60.0
SECONDS_PER_HOUR = 3600.0
SECONDS_PER_SECOND = 36.0
KNOT_IN_M_PER_S = 0.514444 # 1 kn ≈ 0.514 m/s
NM_IN_M = 1852.0 # nautical mile in meters