This is a title
Hello world!
This is code
let accumulator = 0;
const STEP = 1 / 60;
function loop(timestamp: number) {
const delta = (timestamp - lastTime) / 1000;
lastTime = timestamp;
accumulator += delta;
while (accumulator >= STEP) {
update(STEP);
accumulator -= STEP;
}
render();
requestAnimationFrame(loop);
}
What’s next
Actual content.