From 6be79511879cc6917f5ecb9862e731c66d4f2ef7 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 3 Feb 2023 15:28:48 +0100 Subject: [PATCH] ads:: demo feature (not enablable) --- rogueviz/ads/ds-game.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rogueviz/ads/ds-game.cpp b/rogueviz/ads/ds-game.cpp index f2e779a0..95b9232e 100644 --- a/rogueviz/ads/ds-game.cpp +++ b/rogueviz/ads/ds-game.cpp @@ -213,6 +213,9 @@ rock_generator rockgen, rsrcgen; auto future_shown = 5 * TAU; +/** start with a fixed good-looking sequence */ +bool demo; + void init_ds_game() { dynamicval g(geometry, gSpace435); @@ -238,10 +241,17 @@ void init_ds_game() { } rockgen.cshift += 2; + if(demo) { + rockgen.static_starry_field(); + rockgen.hyperboloid(); + rockgen.chaotic_starry_field(); + rockgen.rack(); + } rockgen.add_until(future_shown); rsrcgen.cshift += 1; rsrcgen.add_rsrc_until(future_shown); + } void ds_gen_particles(int qty, transmatrix from, ld shift, color_t col, ld spd, ld t, ld spread = 1) {