diff --git a/components/pet/parallax-room-background.tsx b/components/pet/parallax-room-background.tsx index 10b59b9..e1e83ba 100644 --- a/components/pet/parallax-room-background.tsx +++ b/components/pet/parallax-room-background.tsx @@ -14,8 +14,6 @@ type ParallaxRoomBackgroundProps = { interactive?: boolean; }; -const SCENE_IMAGE_PARALLAX_SPEED = 0.15; - export function ParallaxRoomBackground({ roomId, className, @@ -24,9 +22,10 @@ export function ParallaxRoomBackground({ const containerRef = useRef(null); const [offset, setOffset] = useState({ x: 0, y: 0 }); const room = getRoomBackground(roomId); + const usesSceneImage = Boolean(room.sceneImage); useEffect(() => { - if (!interactive) { + if (!interactive || usesSceneImage) { return; } @@ -46,24 +45,24 @@ export function ParallaxRoomBackground({ return () => { container.removeEventListener("pointermove", handlePointerMove); }; - }, [interactive]); + }, [interactive, usesSceneImage]); if (room.sceneImage) { return (
{/* eslint-disable-next-line @next/next/no-img-element */}
); diff --git a/public/shop/room-forest.svg b/public/shop/room-forest.svg index 26a2e8c..af6b333 100644 --- a/public/shop/room-forest.svg +++ b/public/shop/room-forest.svg @@ -1,4 +1,4 @@ - + @@ -6,9 +6,40 @@ - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/shop/room-night.svg b/public/shop/room-night.svg index 74d0f30..8f209e4 100644 --- a/public/shop/room-night.svg +++ b/public/shop/room-night.svg @@ -1,4 +1,4 @@ - + @@ -6,10 +6,31 @@ - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + +