-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.h
76 lines (61 loc) · 1.71 KB
/
settings.h
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#include "types.h"
// Terminal Settings
#define SHOWBRAIN
//#define SHOWBRAINLAYERS
//#define SHOWBRAINADVANCED
// Map settins
#define WINDOWX 680
#define WINDOWY 480
#define STARTX 70
#define STARTY 450
#define STARTDIR 270
#define BARRIERCOLOR 0xFF111111
#define ROADCOLOR 0xFF555555
#define GRASSCOLOR 0xFF00DD00
#define EYECOLOR 0xFFFF0000
#define MAPPATH "map.map"
#define CARPATH "./assets/cars.bmp"
//#define FONTPATH "./assets/font.bmp"
// #define SHOWMAPDATA
//
// Physics Settings
#define EYERESOLUTION 10 // The resolution of the eye raytracer
#define MAXEYEVAL 20 // maxeyeval = MAXEYEVAL * EYERESOLUTION
#define ROADFRICTION 0.8
#define ACCEL 2
#define FORWARDACCEL 0.01 // (internal value used for calculation)
#define WHEELDIRFRICTION 0.5
#define WHEELDIRACCEL 20
#define WHEELMAXDIR 30
#define WHEELTURNBACK 3
//
// Neurel Network Settings
/*
eye forward
eye left
eye right
eye softleft
eye softright
speed
*/ // Probably shoudn't change this
#define INPUTNODES 6
/*
controller left
controller right
controller softleft
controller softright
controller forward
*/ // Probably shoudn't change this
#define OUTPUTNODES 3
#define LAYERS 2
#define NODESPERLAYER 10
#define MUTATIONCHANCE 1
//
// Generation Settings
#define GENERATIONSIZE 10000
#define GENERATIONTIME 1000
#define DEFAULTTICKSPERFRAME 1
#define PROCESSES 10
#define MAXFPSIDLE 20
#define MAXFPSWORKING 5
//