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:
parent
df0be69cce
commit
bb05d9ab80
@ -273,6 +273,15 @@ void initConfig() {
|
||||
addsaver(irr::rearrange_less, "irregular-rearrangeless", 10);
|
||||
|
||||
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
|
||||
addsaver(texture::texture_aura, "texture-aura", false);
|
||||
|
5
hyper.h
5
hyper.h
@ -4096,6 +4096,11 @@ namespace anims {
|
||||
bool any_on();
|
||||
bool any_animation();
|
||||
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;
|
||||
|
@ -502,7 +502,7 @@ void rollback() {
|
||||
}
|
||||
|
||||
#if CAP_FILES
|
||||
string animfile = "animations/animation-%04d.png";
|
||||
string animfile = "animation-%04d.png";
|
||||
|
||||
bool record_animation() {
|
||||
for(int i=0; i<noframes; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user