mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-26 00:47:00 +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);
|
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:
|
// more start animations:
|
||||||
// - fly a ghost around center, in Gans model
|
// - fly a ghost around center, in Gans model
|
||||||
// - triangle edges?
|
// - triangle edges?
|
||||||
@ -1294,7 +1302,7 @@ EX void pick() {
|
|||||||
current = &null_animation;
|
current = &null_animation;
|
||||||
return;
|
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;
|
int id = rand() % 10;
|
||||||
current = known[id];
|
current = known[id];
|
||||||
ticks_start = ticks;
|
ticks_start = ticks;
|
||||||
|
Loading…
Reference in New Issue
Block a user