-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigs.py
45 lines (27 loc) · 1.21 KB
/
configs.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
import os.path
name_of_game = "Demo Game"
version = "0.0.0"
userdata_subdir = "demo"
runtime_icon_path = os.path.join("assets", "icon.png")
""" Display """
default_window_size = (800, 600) # size of window when the game starts.
minimum_window_size = (250, 150) # if the window is smaller than this, it will begin cropping the picture.
allow_fullscreen = True
allow_window_resize = True
clear_color = (0.66, 0.66, 0.66)
""" Pixel Scaling """
optimal_window_size = (640, 300)
optimal_pixel_scale = 2 # how many screen pixels each "game pixel" will take up at the optimal window size.
auto_resize_pixel_scale = True # whether to automatically update the pixel scale as the window grows and shrinks.
minimum_auto_pixel_scale = 1
""" FPS """
target_fps = 60
precise_fps = False
""" Miscellaneous """
start_in_compat_mode = False
do_crash_reporting = True # whether to produce a crash file when the program exits via an exception.
is_dev = os.path.exists(".gitignore") # yikes
key_repeat_delay = 30 # keys held for longer than this many ticks will start to be typed repeatedly
key_repeat_period = 5 # after the delay has passed, the key will be typed every X ticks until released
""" 3D Debug """
wireframe_3d = False