(puzzleX)
| 390 | |
| 391 | class MousePosFaker { |
| 392 | constructor(puzzleX) { |
| 393 | this.x = parseInt(Math.random() * 20 + 20, 10); |
| 394 | this.y = parseInt(Math.random() * 80 + 80, 10); |
| 395 | this.t = Date.now(); |
| 396 | this.pos = [[this.x, this.y, this.t]]; |
| 397 | this.minDuration = parseInt(1000 / HZ, 10); |
| 398 | // this.puzzleX = puzzleX; |
| 399 | this.puzzleX = puzzleX + parseInt(Math.random() * 2 - 1, 10); |
| 400 | |
| 401 | this.STEP = parseInt(Math.random() * 6 + 5, 10); |
| 402 | this.DURATION = parseInt(Math.random() * 7 + 14, 10) * 100; |
| 403 | // [9,1600] [10,1400] |
| 404 | this.STEP = 9; |
| 405 | // this.DURATION = 2000; |
| 406 | // console.log(this.STEP, this.DURATION); |
| 407 | } |
| 408 | |
| 409 | run() { |
| 410 | const perX = this.puzzleX / this.STEP; |
nothing calls this directly
no outgoing calls
no test coverage detected