Quellcode durchsuchen

Finished the firrst draft of the Level struct

Adrien Boucaud vor 12 Jahren
Ursprung
Commit
e4640a6634
1 geänderte Dateien mit 10 neuen und 1 gelöschten Zeilen
  1. 10 1
      struct.h

+ 10 - 1
struct.h

@@ -22,8 +22,17 @@ struct Level{
 	Pattern_Enum available_patterns[][];
 	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
+	float change_probability; //sometimes, there can be no change at all
+	
+	float max_speed;
+	float min_speed;
+
+	float fast_spin_probability; //very low, sometimes there is a slightly faster spin for one second, then a normal spin. This is the number that allow us to generate it
 };
+
 //the camera is defined by its center
 // ! and not by its upper left corner !
 //and an angle