Skip to content

Commit

Permalink
Updating x and y movement
Browse files Browse the repository at this point in the history
  • Loading branch information
andwin committed Mar 3, 2024
1 parent 3133051 commit d7320c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tunnel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ window.draw = () => {

const size = ((maxSize / sectionLimit) * sectionT ** 2.5) / sectionLimit

const x = 50 * sin(frameCount * 0.01 + size * 0.003) + width / 2
const y = 50 * sin(frameCount * 0.01 + size * 0.003) + height / 2
const x = 50 * sin(frameCount * 0.01 + size * 0.002) + width / 2
const y = 50 * sin(frameCount * 0.01 + size * 0.002) + height / 2

const circleLength = Math.PI * 2 * size
const dotSpace = circleLength / circleDots
Expand Down

0 comments on commit d7320c0

Please sign in to comment.