1
const frame = (hrt: DOMHighResTimeStamp) => {
5
pipeManager.draw(context);
8
if (game.state !== GameState.Title) {
9
scoreManager.draw(context);
+
if (game.state === GameState.Title) {
+
spriteMap.getReady.sourceX,
+
spriteMap.getReady.sourceY,
+
spriteMap.getReady.width,
+
spriteMap.getReady.height,
+
(config.gameWidth - spriteMap.getReady.width) / 2,
+
(config.gameHeight - spriteMap.getReady.height) / 2,
+
spriteMap.getReady.width,
+
spriteMap.getReady.height
28
requestAnimationFrame(frame);
32
requestAnimationFrame(frame);