</section>
          <section>
            <h2>Render Tick</h2>
            <pre><code>
tick() {
  if (this.dead) return;

  this.lerp += this.speed;
  const y = this.startPosition.y + (this.targetPosition.y - this.startPosition.y) * this.lerp;
  const x = this.startPosition.x + (this.targetPosition.x - this.startPosition.x) * this.lerp;
  this.setPosition(x, y);

  // angle
  const rot = Math.atan2(this.targetPosition.x - this.startPosition.x, this.startPosition.y - this.targetPosition.y);
  this.setRotati