+
Hey, I'm Klesti! 👋🏻
@@ -95,6 +95,7 @@ export default function App() {
+
diff --git a/src/components/Background.tsx b/src/components/Background.tsx
index 3294dd2..c0e6291 100644
--- a/src/components/Background.tsx
+++ b/src/components/Background.tsx
@@ -7,9 +7,8 @@ export default function Background({
}: Readonly<{
children: React.ReactNode;
}>) {
- const [pos, setPos] = useState({ x: 100, y: 100 });
+ const [pos, setPos] = useState({ x: 30, y: 100 });
const [vel, setVel] = useState({ x: 1, y: 1 });
- const dvdRef = useRef
(null);
useEffect(() => {
let frame: number;
@@ -18,8 +17,8 @@ export default function Background({
let vx = vel.x;
let vy = vel.y;
- const speed = 0.8;
- const size = 120;
+ const speed = 0.5;
+ const size = 100;
// helper for collision detection
const detectCollision = (
@@ -68,13 +67,12 @@ export default function Background({
return (
{children}