ength;i++) drawPuff(puffs[i], now);
      if (state.planesEnabled) {
        if (now > nextPlaneTime) {
          spawnPlane();
          nextPlaneTime = now + rand(4500, 11000);
        }
        for (let i = planes.length-1; i >= 0; i--) {
          const pl = planes[i];
          pl.x += pl.vx * (dt/60);
          drawPlane(pl, now, dt);
          if (pl.dir>0 && pl.x > W + 200*DPR) planes.splice(i,1);
          else if (pl.dir<0 && pl.x < -200*DPR) planes.splice(i,1);
        }
      }
      requestAnim