1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-14 01:16:50 +00:00

product:: shmup:: monsters rotate correctly

This commit is contained in:
Zeno Rogue 2020-03-21 09:35:54 +01:00
parent 2cc1de4a02
commit 7096d152be

View File

@ -2940,7 +2940,7 @@ bool celldrawer::draw_shmup_monster() {
drawPlayerEffects(view, c, true); drawPlayerEffects(view, c, true);
if(WDIM == 3) { if(WDIM == 3) {
if(prod) { if(prod) {
hyperpoint h = m->ori * C0; hyperpoint h = m->ori * C0; // ztangent(1)
view = view * spin(-atan2(h[1], h[0])); view = view * spin(-atan2(h[1], h[0]));
} }
else { else {
@ -3031,6 +3031,12 @@ bool celldrawer::draw_shmup_monster() {
} }
default: default:
if(WDIM == 3) {
if(prod) {
hyperpoint h = m->ori * xtangent(1);
view = view * spin(-atan2(h[1], h[0]));
}
}
if(m->inBoat) m->footphase = 0; if(m->inBoat) m->footphase = 0;
color_t col = minf[m->type].color; color_t col = minf[m->type].color;
if(m->type == moMimic) if(m->type == moMimic)