From e52baa41c36aa359e423155f94faab6594eafc42 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 14 Feb 2023 20:29:02 +0100 Subject: [PATCH] Oh yeah it is seconds now --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 472e0e4..ccfde8f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import { is, fromJS, Dataflow, Dataspace, Embedded, Ref, Schemas, Turn } from "@syndicate-lang/core"; +import { is, fromJS, Dataflow, Dataspace, Double, Embedded, Ref, Schemas, Turn } from "@syndicate-lang/core"; import * as html from "@syndicate-lang/html"; import * as timer from "@syndicate-lang/timer"; import * as wsRelay from "@syndicate-lang/ws-relay"; @@ -118,7 +118,7 @@ async function enterScene( field position: Shapes.ImmediateVector3 = currentPosition(); field rotation: Shapes.ImmediateVector3 = currentRotation(); - const refreshPeriod = Math.floor(1000 / 10); + const refreshPeriod = Double(1 / 10); at ds { on message timer.PeriodicTick(refreshPeriod) => { const newPosition = currentPosition();