1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-17 11:38:05 +00:00

CAP_POLY part 1

This commit is contained in:
?
2019-02-17 18:41:40 +01:00
committed by Zeno Rogue
parent 31037574f5
commit 99aa7e420b
10 changed files with 201 additions and 104 deletions

View File

@@ -301,6 +301,7 @@ bool nohud, nomenukey;
hookset<bool()> *hooks_prestats;
#if CAP_POLY
void drawMobileArrow(int i) {
int dir = i;
@@ -340,6 +341,7 @@ void drawMobileArrow(int i) {
queuepolyat(atscreenpos(dx, dy, scale) * spin(-alpha), shArrow, col, PPR::MOBILE_ARROW);
}
#endif
bool nofps = false;
@@ -364,11 +366,15 @@ void drawStats() {
initquickqueue();
using namespace shmupballs;
calc();
#if CAP_QUEUE
queuecircle(xmove, yb, rad, 0xFF0000FF);
queuecircle(xmove, yb, rad*SKIPFAC,
legalmoves[MAX_EDGE] ? 0xFF0000FF : 0xFF000080
);
#endif
#if CAP_POLY
for(int i=0; i<cwt.at->type; i++) drawMobileArrow(i);
#endif
if(hypot(mousex-xmove, mousey-yb) <= rad) getcstat = '-';
quickqueue();
}