-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
34 lines (28 loc) · 686 Bytes
/
Copy pathconfig.py
File metadata and controls
34 lines (28 loc) · 686 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
29
30
31
32
33
34
# config.py
import math
WIN_WIDTH = 1280
WIN_HEIGHT = 720
FOV = 70.0
MOVE_SPEED = 6.0
MOUSE_SENSITIVITY = 0.2
JUMP_SPEED = 12.0
GRAVITY = 36.0
PLAYER_EYE_HEIGHT = 1.7
PLAYER_COLLISION_RADIUS = 0.3
PLAYER_HEIGHT = 1.7
CHUNK_SIZE = 16
RENDER_DISTANCE = 4
GROUND_LEVEL = 0
LOADS_PER_FRAME = 1
WEAPONS = [
{"name":"Pistol", "color":(0.5,0.5,0.5), "id":"pistol"},
{"name":"Shotgun", "color":(0.0,0.0,0.8), "id":"shotgun"},
{"name":"Rocket Launcher", "color":(0.8,0.0,0.0), "id":"rocket"}
]
all_pickups = []
all_enemies = []
chunk_update_queue = []
def chunk_coords_from_world(x, z):
cx = math.floor(x / CHUNK_SIZE)
cz = math.floor(z / CHUNK_SIZE)
return cx, cz