You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PAUSE_RESUME='Use your right mouse button in order to pause/resume the evolution.'
16
6
WHAT_A_WONDERFUL_GAME='What a wonderful game!'
7
+
SMILIES='smilies'
8
+
PLANTS='plants'
17
9
18
10
SPEED=0
19
11
VISION_DISTANCE=1
20
12
21
13
RUN=0
22
14
PAUSE=1
23
15
24
-
# Help maintenance
25
-
GEOMETRY_RATIO=0.7
26
-
POPULATED_ROOM=80# Room populated by the bottom items of the help window (defined experimentally)
27
-
HELP_SCROLLED_TEXT_FONT_SIZE=10# The initial height of the letters in points
28
-
SCROLLED_TEXT_FONT_SIZE_IN_PIXELS=HELP_SCROLLED_TEXT_FONT_SIZE*1.3333# Retrieving the text with its size being transformed from points into pixels (1.333 must not be changed)
29
-
SCROLLED_FONT_SIZE_GAP_HEIGHT=SCROLLED_TEXT_FONT_SIZE_IN_PIXELS*1.13# Retrieving the height of lines (the factor must not be changed)
30
-
LETTER_WIDTH=SCROLLED_TEXT_FONT_SIZE_IN_PIXELS/2# Retrieving the width of letters (the divisior must not be changed)
31
-
TEXT_COLOR='#ffffff'
32
-
HELP_WINDOW_BG='#303030'
33
-
34
-
# Bodies
35
-
# Shapes
36
-
BODY_SIZE=14ifSTRAIGHTFORWARD_FIXelse10
37
-
OLD_VISION_DISTANCE=75# A satisfying value for the size of the evolution field being {'width': 950, 'height': 500}
38
-
DOUBLE_BODY_SIZE=BODY_SIZE*2
39
-
40
-
NEWLY_BORN_PERIOD=4# In seconds
41
-
42
-
CIRCLE=0
43
-
SQUARE=1
44
-
RHOMBUS=2
45
-
46
-
# Rhombus shape
47
-
RHOMBUS_SIZE=BODY_SIZE*1.4
48
-
HALF_RHOMBUS_SIZE=RHOMBUS_SIZE/2
49
-
50
-
# Food preference
51
-
BODY='bodies'
52
-
PLANT='plants'
53
-
54
-
# Status
55
16
SLEEPING=0
56
17
RUNNING_AWAY=1
57
18
FOLLOWING_PLANT=2
58
-
FOLLOWING_BODY=3
19
+
FOLLOWING_SMILEY=3
59
20
60
21
CONTROL_PREPARATION=0
61
-
DELETE_EVERYTHING=1
22
+
DELETE_ERASE_EVERYTHING=1
62
23
EVOLUTION_PREPARATION=2
63
24
EVOLUTION=3
64
-
USER_SELECTING_BODY=4
65
-
PAUSED=5
25
+
USER_SELECTING_ZOMBIE_BOSS=4
26
+
RESULTS=5
27
+
PAUSED=6
66
28
67
-
FROM=0
68
-
TO=1
29
+
BOSS=0
30
+
SMILEY=1
69
31
70
-
# Tips
71
-
PAUSE_RESUME='Use your right mouse button in order to pause/resume the evolution.'
32
+
NO_CREATURES=0
33
+
SQUARES_ONE_SPECIES_WON=1
34
+
ALL_ZOMBIES=2
35
+
ONLY_ZOMBIE_BOSS=3
72
36
73
-
# Related to plants
74
-
PLANT_ENERGY=100
75
-
PLANT_PREFERENCE_CHANCE=0.5# The chance that the body will prefer eating plant
76
-
PROCREATION_THRESHOLD=5*PLANT_ENERGY
77
-
USER_BODY_PLANT_GAP=BODY_SIZE*0.9
37
+
SMILIES_AMOUNT=20ifTEST_MODEisFalseelse2# The initial number of smilies on the evolution field
78
38
79
-
# Zombie boss
80
-
ZOMBIE_PLANT_HEALTH_LOSS=30
81
-
BOSS_PLANT_HEALTH_LOSS=60
39
+
# Plants
40
+
PLANT_PREFERENCE_CHANCE=0.5# The chance that the smiley will prefer eating plant
41
+
PLANT_ENERGY=100# Energy to a smiley for eating a plant
42
+
INITIALLY_PLANTED=SMILIES_AMOUNT*3ifTEST_MODEisFalseelse100# Amount of plants that have to be planted initially
INITIAL_ENERGY=4*PLANT_ENERGY# Initial energy at the start for the smiley not to die immediately
85
49
50
+
# Zombie
86
51
NEW_ZOMBIE_HEALTH=120
87
52
88
-
# Related to other bodies
89
-
USER_BODY_BODY_GAP=BODY_SIZE*0.7
90
-
91
-
# Appearance
92
-
HALF_BODY_SIZE=BODY_SIZE/2
93
-
MAXIMUM_COLOUR=220
94
-
MAX_COLOUR_DISTANCE=sqrt(3*MAXIMUM_COLOUR**2) # This is the maximum of sqrt((r1-r2)**2 + (g1-g2)**2 + (b1-b2)**2)
95
-
96
-
# First generation
97
-
PLANT_ENERGY=100# Energy to a body for eating a plant
98
-
INITIAL_ENERGY=4*PLANT_ENERGY# Initial energy at the start for the body not to die immediately
99
-
100
-
# Procreating
101
-
FOOD_PREFERENCE_CHANCE_CHILD=0.9# The chance that the child will inherit the food preference of the parent
102
-
DEVIATION_OF_RANDOM_PROPERTIES=0.1# Proportionates to standard deviation
103
-
DEVIATION_OF_RANDOM_PROPERTIES_ZERO_GENERATION=0.4# Proportionates to standard deviation for the zero generation
53
+
# Smilies & Zombies
104
54
PLACEMENT_GAP=2.5
105
55
106
-
OLD_BODY_SPEED=0.6# A satisfying value for the size of the evolution field being {'width': 950, 'height': 500}
107
-
BODIES_AMOUNT=20ifTEST_MODEisFalseelse2# Amount of bodies on the window
108
-
OLD_ENERGY_FOR_VISION=0.00007*PLANT_ENERGYifTEST_MODEisFalseelse0.01# A satisfying value for the size of the evolution field being {'width': 950, 'height': 500}
0 commit comments