|
|
@@ -11,7 +11,7 @@
|
|
|
|
|
|
//macros
|
|
|
#define abs(x) x>0 ? x : -x
|
|
|
-typedef enum Pattern_Enum Pattern_Enum;
|
|
|
+typedef enum {PATTERN} Pattern_Enum;
|
|
|
typedef struct Camera Camera;
|
|
|
typedef struct Wall Wall;
|
|
|
typedef struct Line Line;
|
|
|
@@ -19,12 +19,12 @@ typedef struct Level Level;
|
|
|
|
|
|
struct Level{
|
|
|
//for the level generation
|
|
|
- Pattern_Enum available_patterns[][];
|
|
|
+ Pattern_Enum available_patterns[32][32];
|
|
|
int nb_patterns;
|
|
|
|
|
|
//for the camera rotation
|
|
|
int change_interval; //5 seconds most of the time, but who knows...
|
|
|
- int change_precision //to add a bit of randomness to the intervals
|
|
|
+ int change_precision; //to add a bit of randomness to the intervals
|
|
|
float change_probability; //sometimes, there can be no change at all
|
|
|
|
|
|
float max_speed;
|