Remix.run Logo
Show HN: Boing(boing.greg.technology)
71 points by gregsadetsky 2 hours ago | 14 comments
junon 37 minutes ago | parent | next [-]

Love this. Had to cheat, naturally.

    setInterval(()=>{const canvas=document.getElementById('canvas');const startX=266;const startY=198;const rect=canvas.getBoundingClientRect();const startClientX=rect.left+startX;const startClientY=rect.top+startY;let endClientX,endClientY,distance;do{endClientX=Math.random()*window.innerWidth;endClientY=Math.random()*window.innerHeight;const dx=endClientX-startClientX;const dy=endClientY-startClientY;distance=Math.sqrt(dx*dx+dy*dy)}while(distance<25);const dispatchMouseEvent=(type,target,clientX,clientY)=>{const event=new MouseEvent(type,{view:window,bubbles:true,cancelable:true,clientX:clientX,clientY:clientY,screenX:clientX+window.screenX,screenY:clientY+window.screenY,buttons:type==='mouseup'?0:1,button:0});target.dispatchEvent(event)};dispatchMouseEvent('mousedown',canvas,startClientX,startClientY);setTimeout(()=>{dispatchMouseEvent('mousemove',window,endClientX,endClientY);setTimeout(()=>{dispatchMouseEvent('mouseup',window,endClientX,endClientY)},1);},1);},1);
____tom____ 13 minutes ago | parent | prev | next [-]

There seems to be a minor bug. When I switch tabs and come back, sometimes the spring is moving. Some times a small amount, and other times it appears to be streched to the max, and extending off the top and bottom of the screen, until it calms down.

Safari, Mac.

mg 2 minutes ago | parent [-]

I just wanted to write about a similar observation when using it in FireFox on Linux:

When wiggle the spring, keep the mouse inside the white area until it is at rest, press CTRL+u to see the source code, move the mouse to close the source code tab and close it - for some magical reason the spring is moving again for a little bit.

modeless 31 minutes ago | parent | prev | next [-]

I would love to see an accurately simulated version of this, à la https://www.engine-sim.parts/

qwertytyyuu 10 minutes ago | parent | prev | next [-]

As a phone user, I hate you, I hate how good this is. That counter is just mocking me.

bitcrshr 5 minutes ago | parent | prev | next [-]

I needed this. Thank you.

prodigycorp an hour ago | parent | prev | next [-]

i love this. it reminds me of simpler times when we’d have iphone apps/games that would explore a single mechanic and implement it really well.

ethmarks an hour ago | parent | prev | next [-]

I noticed that the boing sound gets deeper and lower with smaller-magnitude boings. Is the boing audio generated procedurally/realistically in response to the physics of the boing, or is just playing a premade boing sound effect that's dynamically pitch shifted?

junon 35 minutes ago | parent [-]

The original is pretty low, it appears to be sped up. Check the network panel.

satvikpendem an hour ago | parent | prev | next [-]

Very fun and nostalgic. The head of the boinger doesn't seem to exactly follow the cursor/finger however, at least on mobile, it always arcs.

cr125rider 36 minutes ago | parent | prev | next [-]

Oh random Flash apps, how I miss you

karanveer 16 minutes ago | parent | prev | next [-]

so satisfying.

catapart an hour ago | parent | prev | next [-]

fantasitic

supareya 33 minutes ago | parent | prev [-]

Hi