Workshop › Typing Rain › Step 6 of 33
update moves every word down by SPEED pixels. Nothing calls it yet.
```js
const SPEED = 0.35
function update() {
for (const w of words) w.y += SPEED
}
```w.y += SPEED adds 0.35 to each word's height: a bigger y is lower on the canvas.update does not call it, so nothing moves yet.GROUND write SPEED.function draw() { write update, with an empty line between them.Skills: Game states
← A list of words The game loop →