From a72bfb2e85f001481408bf325545bf27533fe3ce Mon Sep 17 00:00:00 2001 From: Usu171 Date: Sat, 13 Dec 2025 16:02:15 +0800 Subject: [PATCH] feat: add device motion interaction --- src/components/MainView.astro | 55 ++++++++++- src/config/marbleConfig.ts | 5 + src/utils/deviceMotionInteraction.ts | 135 +++++++++++++++++++++++++++ src/utils/marbleSystem.ts | 36 +++++++ 4 files changed, 229 insertions(+), 2 deletions(-) create mode 100644 src/utils/deviceMotionInteraction.ts diff --git a/src/components/MainView.astro b/src/components/MainView.astro index 43780aa..1dc20e2 100644 --- a/src/components/MainView.astro +++ b/src/components/MainView.astro @@ -12,11 +12,26 @@ import Particles from "./Particles.astro";
-