Workshop › Zelda-style Dungeon › Step 3 of 22
The hero will move, so the picture is redrawn about 60 times a second by a loop.
```js
function loop() {
draw()
requestAnimationFrame(loop)
}
requestAnimationFrame(loop)
```requestAnimationFrame(loop) runs loop again before the next screen refresh.Replace draw() at the bottom with loop and requestAnimationFrame(loop).
Skills: The game loop