x < -halfw || x > halfw || y < -halfh || y > halfh) this.reset();
      };
    }

    function StarField() {
      this.starCount = 300;
      this.isInHyperDrive = false;
      this.stars = Array.from({ length: this.starCount }, () => new Star());

      this.startHyperDrive = function () {
        this.isInHyperDrive = true;
        canvas.style.animation = "hyperdrive-go 6s ease-in normal forwards";
      };

      this.stopHyperDrive = function () {
        this.isInHyperDrive = false;
        ctx.trans