fix(nds): use deltaTime in frame based-motion

This commit is contained in:
2026-02-13 17:10:32 +01:00
parent 555ecf8d80
commit f674404ff2
4 changed files with 59 additions and 48 deletions

View File

@@ -6,10 +6,10 @@ const props = defineProps<{
const confetti = useConfetti();
const { onRender } = useScreen();
onRender((ctx) => {
onRender((ctx, deltaTime) => {
let offset: number;
if (props.screen === "top") {
confetti.update();
confetti.update(deltaTime);
offset = 0;
} else {
offset = LOGICAL_HEIGHT;