From a253fae9a1cfce1365ca7dfa8d93f121e430352f Mon Sep 17 00:00:00 2001 From: droak Date: Sat, 6 Jul 2024 10:04:26 +0900 Subject: [PATCH 1/4] add new sprays --- src/lib/components/ui/sprayWheel.svelte | 2 +- static/sprays/spray6.png | Bin 0 -> 92088 bytes static/sprays/spray7.png | Bin 0 -> 2496036 bytes 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 static/sprays/spray6.png create mode 100644 static/sprays/spray7.png diff --git a/src/lib/components/ui/sprayWheel.svelte b/src/lib/components/ui/sprayWheel.svelte index 28e43a5..3aa2a0a 100644 --- a/src/lib/components/ui/sprayWheel.svelte +++ b/src/lib/components/ui/sprayWheel.svelte @@ -1,7 +1,7 @@ {#if playerArray} @@ -68,7 +78,7 @@ > - + {/each} diff --git a/src/lib/store/playersData.ts b/src/lib/store/playersData.ts index 73d7fbe..501c99f 100644 --- a/src/lib/store/playersData.ts +++ b/src/lib/store/playersData.ts @@ -58,7 +58,10 @@ export class PlayerData implements Player { } updateRotation(rotationX: number, rotationY: number, rotationZ: number) { - this.rotation.set(rotationX, rotationY, rotationZ); + // this.rotation.set(rotationX, rotationY, rotationZ); + this.rotation.x = rotationX; + this.rotation.y = rotationY; + this.rotation.z = rotationZ; } updateState(state: "idle" | "running" | "walking" | "jumping") { diff --git a/src/lib/topology/Update.svelte b/src/lib/topology/Update.svelte index fe81f0d..2a9e845 100644 --- a/src/lib/topology/Update.svelte +++ b/src/lib/topology/Update.svelte @@ -1,9 +1,13 @@