-
Notifications
You must be signed in to change notification settings - Fork 0
/
defs.py
55 lines (45 loc) · 1012 Bytes
/
defs.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
47
48
49
50
51
52
53
54
55
import math
import os
# level specific data
map_area_per_stone = 150000
num_stones = 5
num_rats = 3
# characters
person_speed = 360
rat_speed = [90, 140]
rat_speed_incr = 1, 1.1
rat_turn_angle = math.radians(18)
max_courage = 5.5
min_contact_to_get_courage = 1
# gameplay things
freeze_time = 1
grace_time = 2
numrats_change = 3, 1.1 # on advance level, add, multipiler
numrats_limit = 200
numstones_change = 1, 1 # on advance level
initial_lives = 3
lives_add = 1
max_lives = 4
# physics
coltype_person = 1
coltype_rat = 2
coltype_stone = 3
force_threshold = 5
person_attraction = 1000
person_repulsion = 2700
shout_repulsion = 20000
shout_time = 2.4
shout_delay = 5
# steering
angle_step = math.radians(7)
full_speed_accel = math.pi / 16
# misc
inf = 1.0e10 # potential in place/tile of attraction/repulsion
if "DEBUG" in os.environ:
at_turn_angle = math.radians(1)
rat_speed = [2, 3]
num_rats = 1
num_stones = 0
# force_threshold = 2
initial_lives = 100
lives_add = 0