diff --git a/ui/pages/egg.tsx b/ui/pages/egg.tsx index be433fc..3eccf81 100644 --- a/ui/pages/egg.tsx +++ b/ui/pages/egg.tsx @@ -20,10 +20,10 @@ export default function Egg() { ...bubbles.map((bubble) => { return { ...bubble, - y: bubble.y - Math.random() * Math.sqrt(count ? count * 2 : 2), + y: bubble.y - Math.random() * Math.log(Math.max(count, 20)), }; }), - ...(Math.sqrt(count ? count : 2) > Math.random() * 10 + ...(Math.random() * Math.log(Math.max(count, 15)) > 2 ? [ { x: Math.random() * 100, @@ -42,13 +42,9 @@ export default function Egg() {

{count}

@@ -56,16 +52,14 @@ export default function Egg() { bubbles?.map((bubble) => (
{ setBubbles( - bubbles.filter((b) => { - return b.timestamp !== bubble.timestamp; - }) + bubbles.filter((b) => b.timestamp !== bubble.timestamp) ); setCount(count + 1); }} diff --git a/ui/src-tauri/tauri.conf.json b/ui/src-tauri/tauri.conf.json index b9d0d34..611a1bb 100644 --- a/ui/src-tauri/tauri.conf.json +++ b/ui/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ }, "package": { "productName": "soda", - "version": "0.0.4" + "version": "0.0.5" }, "tauri": { "allowlist": { @@ -82,4 +82,4 @@ } ] } -} \ No newline at end of file +}