1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-09 13:56:00 +00:00

better system of syncing game animations

This commit is contained in:
Zeno Rogue
2018-09-10 17:49:51 +02:00
parent c9dbeec393
commit e99c188fae
2 changed files with 85 additions and 74 deletions

View File

@@ -91,7 +91,7 @@ void drawBlizzards() {
bc.inid = 0;
}
double at = (ticks % 250) / 250.0;
double at = fractick(40);
for(int i=0; i<blizzard_N; i++) {
auto& bc = *bcells[i];
@@ -216,8 +216,7 @@ void drawArrowTraps() {
queueline(tC0(t0), tC0(t1), 0xFF0000FF, 4 + vid.linequality, PPR::ITEM);
if((c->wparam & 7) == 3 && !shmup::on) {
// queueline(t0 * randomPointIn(r[0]->type), t1 * randomPointIn(r[1]->type), 0xFFFFFFFF, 4, PPR::ITEM);
int tt = ticks % 401;
if(tt < 0) tt += 401;
int tt = int(fractick(64) * 401);
for(int u=0; u<2; u++) {
transmatrix& tu = u ? t0 : t1;