1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-22 09:27:40 +00:00

choice of the magic sword graphics now depends on the scale; in shmup, the tip is now set automatically based on the graphics

This commit is contained in:
Zeno Rogue
2019-03-09 17:36:04 +01:00
parent d9b90d8a8e
commit 14ea73be06
4 changed files with 12 additions and 6 deletions

View File

@@ -1460,8 +1460,8 @@ hyperpoint keytarget(int i) {
return 0;
} */
double getSwordSize() { return 0.7255; }
double getHornsSize() { return 0.33; }
double getSwordSize() { return sword_size; }
double getHornsSize() { return scalefactor * 0.33; }
hyperpoint swordpos(int id, bool rev, double frac) {
return pc[id]->pat * xspinpush0(pc[id]->swordangle, (rev?-frac:frac) * getSwordSize());