mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 09:50:34 +00:00
FPP startanim added
This commit is contained in:
parent
6603fe3c9e
commit
a2b294e38b
@ -1283,6 +1283,14 @@ startanim fib_ghosts { "Fibonacci ghosts", no_init, [] {
|
||||
gamescreen(2);
|
||||
}};
|
||||
|
||||
startanim fpp { "first-person perspective", no_init, [] {
|
||||
geom3::switch_fpp();
|
||||
View = cspin(0, 2, ticks / 5000.) * View;
|
||||
gamescreen(2);
|
||||
View = cspin(0, 2, -ticks / 5000.) * View;
|
||||
geom3::switch_fpp();
|
||||
}};
|
||||
|
||||
// more start animations:
|
||||
// - fly a ghost around center, in Gans model
|
||||
// - triangle edges?
|
||||
@ -1294,7 +1302,7 @@ EX void pick() {
|
||||
current = &null_animation;
|
||||
return;
|
||||
}
|
||||
vector<startanim*> known = { &null_animation, &perspective, &joukowsky, &bandspin, &rug, &spin_around, &row_of_ghosts, &ghost_spiral, &army_of_ghosts, &fib_ghosts };
|
||||
vector<startanim*> known = { &null_animation, &perspective, &joukowsky, &bandspin, &rug, &spin_around, &row_of_ghosts, &ghost_spiral, &army_of_ghosts, &fib_ghosts, &fpp };
|
||||
int id = rand() % 10;
|
||||
current = known[id];
|
||||
ticks_start = ticks;
|
||||
|
Loading…
Reference in New Issue
Block a user