(delta, speedScale)
| 13 | } |
| 14 | |
| 15 | export function updateGround(delta, speedScale) { |
| 16 | groundElems.forEach(ground => { |
| 17 | incrementCustomProperty(ground, "--left", delta * speedScale * SPEED * -1) |
| 18 | |
| 19 | if (getCustomProperty(ground, "--left") <= -300) { |
| 20 | incrementCustomProperty(ground, "--left", 600) |
| 21 | } |
| 22 | }) |
| 23 | } |
no test coverage detected