1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-16 13:48:04 +00:00

added an option to disable background particles and to change font size on desktop

This commit is contained in:
Zeno Rogue
2017-10-17 21:26:21 +02:00
parent ae3feb2055
commit 9f48dcf3f6
8 changed files with 40 additions and 15 deletions

View File

@@ -1,8 +1,11 @@
double randd() { return (rand() % 1000000) / 1000000. + .0000005; }
double cellgfxdist(cell *c, int i) {
return purehepta ? tessf : (c->type == 6 && (i&1)) ? hexhexdist : crossf;
}
transmatrix cellrelmatrix(cell *c, int i) {
double d =
purehepta ? tessf : (c->type == 6 && (i&1)) ? hexhexdist : crossf;
double d = cellgfxdist(c, i);
return ddspin(c, i) * xpush(d) * iddspin(c->mov[i], c->spin(i), euclid ? 0 : S42);
}