data endpoint for entity 90008 (aka. a website)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: cleanup warnings

dusk 0fec463a 1cf96f41

+3 -8
+3 -8
src/components/pet.svelte
··· 1 1 <script lang="ts"> 2 2 import { draggable } from '@neodrag/svelte'; 3 - import type { argv0 } from 'process'; 4 3 5 4 let position = $state({ x: 0, y: 0 }); 6 5 let rotation = $state(0.0); ··· 49 48 50 49 // Add spring update to the move function 51 50 setInterval(updateRotationSpring, tickRate); 52 - 53 - const lerp = (from: number, to: number, weight: number) => { 54 - return from + (to - from) * weight; 55 - }; 56 51 57 52 const moveTowards = (from: number, to: number, by: number) => { 58 53 let d = (to - from) * 1.0; ··· 180 175 }, 181 176 onDragEnd: () => { 182 177 dragged = false; 183 - // Apply velocity based on the drag movement 184 - velocityX = rotationVelocity * 80.0; // Convert rotation velocity to horizontal movement 185 - velocityY = -Math.abs(rotationVelocity) * 30.0; // Jump higher with faster drags 178 + // apply velocity based on rotation since we already keep track of that 179 + velocityX = rotationVelocity * 80.0; 180 + velocityY = -Math.abs(rotationVelocity) * 30.0; 186 181 } 187 182 }} 188 183 class="absolute bottom-[5vh] z-[1000] hover:animate-squiggle"