mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-17 13:14:30 +00:00
Select the keyboard push-subdirection with Tab.
Previously, the keyboard push-subdirection was selected irregularly based on the exact angle of the map on the screen. Change it to be consistently clockwise or counterclockwise, switching with the Tab key. Also, have the keyboard push-subdirection help display on all pushable monsters. Previously, it'd only show on Palace Guards and Skeletons.
This commit is contained in:
1 parent
66ed7104f1
commit
261ebad082
4 files changed
+14
-7
No files matched your search
@@ -3559,8 +3559,9 @@ EX transmatrix applyDowndir(cell *c, const cellfunction& cf) {
|
||||
return ddspin180(c, patterns::downdir(c, cf));
|
||||
}
|
||||
|
||||
void draw_movement_arrows(cell *c, const transmatrix& V, int df) {
|
||||
EX bool keybd_subdir;
|
||||
|
||||
void draw_movement_arrows(cell *c, const transmatrix& V, int df) {
|
||||
if(viewdists) return;
|
||||
|
||||
string keylist = "";
|
||||
@@ -3590,8 +3591,8 @@ void draw_movement_arrows(cell *c, const transmatrix& V, int df) {
|
||||
|
||||
if((c->type & 1) && (isStunnable(c->monst) || isPushable(c->wall))) {
|
||||
transmatrix Centered = rgpushxto0(unshift(tC0(cwtV)));
|
||||
int sd = md.subdir;
|
||||
|
||||
int sd = keybd_subdir ? 1 : -1;
|
||||
|
||||
transmatrix T = iso_inverse(Centered) * rgpushxto0(Centered * tC0(V)) * lrspintox(Centered*tC0(V)) * spin(-sd * M_PI/S7) * xpush(0.2);
|
||||
|
||||
if(vid.axes >= 5)
|
||||
|
||||
Reference in new issue
Block a user