1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-29 19:40:35 +00:00

some anim parameters are now saved in config

This commit is contained in:
Zeno Rogue 2018-09-10 19:44:01 +02:00
parent df0be69cce
commit bb05d9ab80
3 changed files with 15 additions and 1 deletions

View File

@ -274,6 +274,15 @@ void initConfig() {
addsaver(vid.linequality, "line quality", 0); addsaver(vid.linequality, "line quality", 0);
addsaver(anims::animfile, "animation file format");
addsaver(anims::period, "animation period");
addsaver(anims::noframes, "animation frames");
addsaver(anims::cycle_length, "animation cycle length");
addsaver(anims::parabolic_length, "animation parabolic length");
addsaver(anims::rug_angle, "animation rug angle");
addsaver(anims::circle_radius, "animation circle radius");
addsaver(anims::circle_spins, "animation circle spins");
#if CAP_TEXTURE #if CAP_TEXTURE
addsaver(texture::texture_aura, "texture-aura", false); addsaver(texture::texture_aura, "texture-aura", false);
#endif #endif

View File

@ -4096,6 +4096,11 @@ namespace anims {
bool any_on(); bool any_on();
bool any_animation(); bool any_animation();
bool center_music(); bool center_music();
extern string animfile;
extern int noframes;
extern ld period, cycle_length, parabolic_length, rug_angle, circle_radius, circle_spins;
} }
extern int animation_lcm; extern int animation_lcm;

View File

@ -502,7 +502,7 @@ void rollback() {
} }
#if CAP_FILES #if CAP_FILES
string animfile = "animations/animation-%04d.png"; string animfile = "animation-%04d.png";
bool record_animation() { bool record_animation() {
for(int i=0; i<noframes; i++) { for(int i=0; i<noframes; i++) {