1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-09 10:14:16 +00:00

rv::som:: even better animations

This commit is contained in:
Zeno Rogue
2022-04-21 13:15:28 +02:00
parent 7624dadb71
commit 065666a5a1
2 changed files with 15 additions and 19 deletions

View File

@@ -1371,13 +1371,13 @@ auto khook = arg::add3("-kst-keys", [] { rv_hook(hooks_handleKey, 150, kst_key);
}
vid.linewidth /= 3;
})
+ addHook(anims::hooks_record_anim, 100, [] (int i, int noframes) {
+ arg::add3("-kst-animate", [] { rv_hook(anims::hooks_record_anim, 100, [] (int i, int noframes) {
bool steps = false;
ld nf = noframes;
while(t * nf > (nf - i) * tmax)
step(), steps = true;
if(steps) analyze();
});
}); });
}}