mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-17 22:20:41 +00:00
bobbing setting
This commit is contained in:
parent
003a9533b5
commit
33622ed652
@ -766,10 +766,13 @@ EX color_t kind_outline(eItem it) {
|
|||||||
return OUTLINE_OTHER;
|
return OUTLINE_OTHER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** should objects fly slightly up and down in product/twisted product geometries */
|
||||||
|
EX bool bobbing = true;
|
||||||
|
|
||||||
EX shiftmatrix face_the_player(const shiftmatrix V) {
|
EX shiftmatrix face_the_player(const shiftmatrix V) {
|
||||||
if(GDIM == 2) return V;
|
if(GDIM == 2) return V;
|
||||||
if(mproduct) return orthogonal_move(V, cos(ptick(750)) * cgi.plevel / 16);
|
if(mproduct) return bobbing ? orthogonal_move(V, cos(ptick(750)) * cgi.plevel / 16) : V;
|
||||||
if(mhybrid) return V * zpush(cos(ptick(750)) * cgi.plevel / 16);
|
if(mhybrid) return bobbing ? V * zpush(cos(ptick(750)) * cgi.plevel / 16) : V;
|
||||||
transmatrix dummy; /* used only in prod anyways */
|
transmatrix dummy; /* used only in prod anyways */
|
||||||
if(embedded_plane && !cgi.emb->is_same_in_same()) return V;
|
if(embedded_plane && !cgi.emb->is_same_in_same()) return V;
|
||||||
if(nonisotropic) return shiftless(spin_towards(unshift(V), dummy, C0, 2, 0));
|
if(nonisotropic) return shiftless(spin_towards(unshift(V), dummy, C0, 2, 0));
|
||||||
|
Loading…
Reference in New Issue
Block a user