mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
manual-animation: save the route in Nil
This commit is contained in:
parent
1e0f8f45b1
commit
541448ca38
@ -161,9 +161,16 @@ void load_animation(string fname) {
|
|||||||
hread_raw(f, a);
|
hread_raw(f, a);
|
||||||
hread_raw(f, b);
|
hread_raw(f, b);
|
||||||
int tmp = 0; hread_raw(f, tmp);
|
int tmp = 0; hread_raw(f, tmp);
|
||||||
crystal::coord co;
|
if(cryst) {
|
||||||
hread_raw(f, co);
|
crystal::coord co;
|
||||||
d = crystal::get_heptagon_at(co)->c7;
|
hread_raw(f, co);
|
||||||
|
d = crystal::get_heptagon_at(co)->c7;
|
||||||
|
}
|
||||||
|
if(nil) {
|
||||||
|
nilv::mvec co;
|
||||||
|
hread_raw(f, co);
|
||||||
|
d = nilv::get_heptagon_at(co)->c7;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
println(hlog, "loaded animation of ", isize(saved), " frames");
|
println(hlog, "loaded animation of ", isize(saved), " frames");
|
||||||
recall();
|
recall();
|
||||||
@ -347,8 +354,14 @@ bool trailer_handleKey(int sym, int uni) {
|
|||||||
hwrite_raw(f, a);
|
hwrite_raw(f, a);
|
||||||
hwrite_raw(f, b);
|
hwrite_raw(f, b);
|
||||||
int tmp = 0; hwrite_raw(f, tmp);
|
int tmp = 0; hwrite_raw(f, tmp);
|
||||||
auto at = crystal::get_coord(d->master);
|
if(cryst) {
|
||||||
hwrite_raw(f, at);
|
auto at = crystal::get_coord(d->master);
|
||||||
|
hwrite_raw(f, at);
|
||||||
|
}
|
||||||
|
else if(nil) {
|
||||||
|
auto at = nilv::get_coord(d->master);
|
||||||
|
hwrite_raw(f, at);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
println(hlog, "saved animation of ", isize(saved), " frames");
|
println(hlog, "saved animation of ", isize(saved), " frames");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user