|
@@ -26,20 +26,28 @@ typedef struct Game_Data Game_Data;
|
|
|
typedef enum {GAME, MENU, TITLE, GAME_OVER} State;
|
|
typedef enum {GAME, MENU, TITLE, GAME_OVER} State;
|
|
|
|
|
|
|
|
struct Level{
|
|
struct Level{
|
|
|
|
|
+
|
|
|
|
|
+ int id; //1 to 6
|
|
|
|
|
+
|
|
|
//for the level generation
|
|
//for the level generation
|
|
|
- Pattern_Enum available_patterns[32][32];
|
|
|
|
|
|
|
+ Pattern_Enum available_patterns[32];
|
|
|
|
|
|
|
|
int nb_patterns;
|
|
int nb_patterns;
|
|
|
|
|
|
|
|
//for the camera rotation
|
|
//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
|
|
|
|
|
- float change_probability; //sometimes, there can be no change at all
|
|
|
|
|
-
|
|
|
|
|
- float max_speed;
|
|
|
|
|
- float min_speed;
|
|
|
|
|
|
|
+ int cam_change_interval; //5 seconds most of the time, but who knows...
|
|
|
|
|
+ int cam_change_precision; //to add a bit of randomness to the intervals
|
|
|
|
|
+ float cam_change_probability; //sometimes, there can be no change at all
|
|
|
|
|
+ //camera speed
|
|
|
|
|
+ float cam_max_speed;
|
|
|
|
|
+ float cam_min_speed;
|
|
|
|
|
|
|
|
float fast_spin_probability; //very low, there sometimes is a slightly faster spin for one second, then a normal spin. This is the number that allow us to generate it
|
|
float fast_spin_probability; //very low, there sometimes is a slightly faster spin for one second, then a normal spin. This is the number that allow us to generate it
|
|
|
|
|
+
|
|
|
|
|
+ //for the line number changes (lc prefix):
|
|
|
|
|
+ int lc_min_score; //minimum score in seconds to reach before any line number change occurs
|
|
|
|
|
+ float lc_probability;
|
|
|
|
|
+ int lc_duration;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
//the camera is defined by its center
|
|
//the camera is defined by its center
|