"yf_per_second": 0.25,
"bikes_per_second": 0.25,
"point_scale_div": 3.0,
- "highscore_file": "assets/highscore.csv"
+ "highscore_file": "assets/highscore.csv",
+ "random_seed": 234234
},
"map": {
"points_pos": [
std::ifstream f("assets/data.json");
json data = json::parse(f);
+ srand(data["game_constants"]["random_seed"]);
game_context.current_state = std::make_unique<Start_menu>(data);
f.close();
{
game_context.current_state = std::move(game_context.next_state);
game_context.next_state = nullptr;
-
- srand(game_clock.getElapsedTime().asMicroseconds());
}
//Draw