From a2b294e38b805b8f5ca7c8d8a57325ac6d67950d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 14 Dec 2019 14:17:10 +0100 Subject: [PATCH] FPP startanim added --- screenshot.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/screenshot.cpp b/screenshot.cpp index 53ff1e10..6842ccd9 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -1283,6 +1283,14 @@ startanim fib_ghosts { "Fibonacci ghosts", no_init, [] { gamescreen(2); }}; +startanim fpp { "first-person perspective", no_init, [] { + geom3::switch_fpp(); + View = cspin(0, 2, ticks / 5000.) * View; + gamescreen(2); + View = cspin(0, 2, -ticks / 5000.) * View; + geom3::switch_fpp(); + }}; + // more start animations: // - fly a ghost around center, in Gans model // - triangle edges? @@ -1294,7 +1302,7 @@ EX void pick() { current = &null_animation; return; } - vector known = { &null_animation, &perspective, &joukowsky, &bandspin, &rug, &spin_around, &row_of_ghosts, &ghost_spiral, &army_of_ghosts, &fib_ghosts }; + vector known = { &null_animation, &perspective, &joukowsky, &bandspin, &rug, &spin_around, &row_of_ghosts, &ghost_spiral, &army_of_ghosts, &fib_ghosts, &fpp }; int id = rand() % 10; current = known[id]; ticks_start = ticks;