feat: move top screen components to own folder, and implement calendar

This commit is contained in:
2025-11-10 14:24:20 +01:00
parent fe78e6abba
commit 05f7980a7b
6 changed files with 105 additions and 41 deletions

View File

@@ -36,7 +36,11 @@ const renderFrame = (timestamp: number) => {
ctx.clearRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
for (const callback of renderCallbacks) {
ctx.save();
callback(ctx);
ctx.restore();
}
lastRealFrameTime = Date.now() - start;