1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-24 05:17:17 +00:00

manual-animation:: cleaner skipping

This commit is contained in:
Zeno Rogue 2019-10-21 22:39:29 +02:00
parent 8f6f7bec71
commit 25d2f6242e

View File

@ -249,16 +249,21 @@ bool trailer_handleKey(int sym, int uni) {
// sightranges[geometry] = 4; // sightranges[geometry] = 4;
static int lasti = 0; static int lasti = 0;
system("mkdir -p devmods/manual/");
for(auto& p: saved) { for(auto& p: saved) {
// sightranges[geometry] = 4 + i * 2. / isize(saved); // sightranges[geometry] = 4 + i * 2. / isize(saved);
tie(View, nisot::local_perspective, hybrid::current_view_level, viewctr) = p; tie(View, nisot::local_perspective, hybrid::current_view_level, viewctr) = p;
ticks = i * 1000 / 30; ticks = i * 1000 / 30;
if(i < lasti) continue; // if(i % 10 != 0) {i++; continue; }
system("mkdir -p devmods/manual/");
if(true) {
println(hlog, "recording frame ", i);
shot::take(format("devmods/manual/%05d.png", i)); shot::take(format("devmods/manual/%05d.png", i));
println(hlog, "frame ", i); }
else
println(hlog, "skipping frame ", i);
i++; i++;
} }