TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Looptap – A minimal game to waste your time

1241 pointsby vasanthvover 3 years ago

78 comments

nathasover 3 years ago
One of my favorite things to do with these neat little games is to build something that plays them for me by just pasting stuff into the browser JS console.<p><a href="https:&#x2F;&#x2F;pastebin.com&#x2F;aTYuaNVS" rel="nofollow">https:&#x2F;&#x2F;pastebin.com&#x2F;aTYuaNVS</a><p>At a score of 1,619 the ball is moving so fast it no longer works! I switched to a new tab (hoping that the event loop would be sent to the background&#x2F;context switch&#x2F;whatever) and ta-da - it misclicked. High score of 1,637.
评论 #29923562 未加载
评论 #29927221 未加载
评论 #29923636 未加载
评论 #29926957 未加载
评论 #29924057 未加载
评论 #29941148 未加载
评论 #29924113 未加载
评论 #29924353 未加载
评论 #29923612 未加载
评论 #29925960 未加载
评论 #29943736 未加载
评论 #29940895 未加载
评论 #29923446 未加载
评论 #29926821 未加载
评论 #29923627 未加载
评论 #29923793 未加载
cousin_itover 3 years ago
Great stuff, got 315 on third try. I made a game in the same vein sometime ago: <a href="https:&#x2F;&#x2F;vladimirslepnev.itch.io&#x2F;zigzag" rel="nofollow">https:&#x2F;&#x2F;vladimirslepnev.itch.io&#x2F;zigzag</a><p>One thing to note about this kind of endless runner games is the scoring system. Everyone uses the system &quot;get as much points as possible in one run, each run starts from zero&quot;. But that forces people to slog through the early parts each time, and also makes them more likely to stop playing after an especially good run. I thought about this for a while, and came up with the idea that a better system would <i>dock points for mistakes</i>. The run would continue, a misclick would just give you a short breather and set you back fifty points or so.<p>I made some prototypes like that and the effect was striking: you stick with one run for a long time, falling into a kind of meditative state, never wanting to stop. Eventually you find an equilibrium where wins and losses balance out, and keep playing there, at the best of your ability. If I ever release an endless runner again, it will use that system.
评论 #29924453 未加载
评论 #29925098 未加载
评论 #29928457 未加载
评论 #29937091 未加载
评论 #29953857 未加载
评论 #29929292 未加载
评论 #29929801 未加载
djfdatover 3 years ago
This is a great little time waster!<p>Couple of recommendations, in no particular order:<p>1. Keep the ball moving even after you die. Instead of pressing start, the user will just click when the ball is back inside the colored area. 2. You can click anywhere to restart, but you have to click the play button to restart. You should allow the user to just click anywhere to restart. 3. When you fail, show where the ball was. 4. As for collision detection, I think you should err on being lenient and count success if the bounds of the circle overlap, rather than the center or entirely. I think this is also due to the rounded linecaps for the arc potentially not counting as part of the valid area. 5. Show where the next arc will be. This is more of a game design thing. If you do this, quick fade out of the old and fade in on the new would look nice.<p>I understand that this was probably a small little one off project, and that there&#x27;s always more you can iterate on, so I just want to say nice job in putting out a fun little time waster!
评论 #29925249 未加载
1-6over 3 years ago
Thanks, you&#x27;ve just wasted valuable engineering time of multiple people. The actual cost of this game is much more than what we realize.
评论 #29926972 未加载
评论 #29927680 未加载
MrOrelliOReillyover 3 years ago
It&#x27;d be more fun if you somehow got &quot;bonus points&quot; for reducing the time between clicks. I kept playing it safe trying to time the ball but it kind of felt like cheating!
评论 #29930704 未加载
评论 #29922787 未加载
评论 #29924019 未加载
评论 #29925738 未加载
butzover 3 years ago
Feature request: show where the ball was on game over screen, because now it quickly resets to start position. Maybe show its &quot;ghost&quot; in different color or just outline.
misterbwongover 3 years ago
Cool game! I know you&#x27;re trying to keep it simple but a couple suggestions that might help and won&#x27;t increase game complexity too much:<p><pre><code> 1. Add a share button to share your score 2. Add a timer component (can be hidden). It will add urgency. 3. Speed up the ball as time goes on (maybe i haven&#x27;t gotten far enough for this to happen...?) 4. If you&#x27;re adding more points for &quot;same rotation hit&quot;, make it clear that it&#x27;s doing that and don&#x27;t just add more points to the score (shake the number, throw some fireworks, or something). Your focus is on the ball not the score so you won&#x27;t even notice the number went up a little bit more than usual until you lose.</code></pre>
评论 #29924122 未加载
评论 #29925207 未加载
alex_smartover 3 years ago
Because it had to be done:<p><pre><code> let robot = function () { const ballAngle = loopTapApp.getBallAngle(); const arc = loopTapApp.arc; if (ballAngle + 6 &gt; arc[0] &amp;&amp; ballAngle - 6 &lt; arc[1]) { window.dispatchEvent(new Event(&#x27;mousedown&#x27;)); } } var timer = setInterval(robot, 10);</code></pre>
评论 #29925000 未加载
评论 #29929354 未加载
评论 #29930969 未加载
thomover 3 years ago
It seems possible to click when the circle intersects the shape, but still lose. I guess it&#x27;s based on the centre of the circle, but feels a little frustrating to me.
评论 #29922713 未加载
评论 #29923703 未加载
hamashoover 3 years ago
Fantastic!<p>I feel really superior when I succeed in clicking immediately after the previous click. I clicked on the target arc and was relieved. But I immediately realize the next arc is right there, or I&#x27;m even on the arc now! Then adrenaline kicks in, and I click again immediately! Don&#x27;t think, feel! And it continues because I haven&#x27;t missed it.<p>Like I was a top F1 driver...
leetroutover 3 years ago
Feature request:<p>Start the game by pressing &quot;space&quot; as well.
评论 #29922706 未加载
Aachenover 3 years ago
Nice! My grandma enjoys mobile games but is, uh, let&#x27;s say she&#x27;s not a pro just yet. This is something she can do! Let&#x27;s see if she&#x27;ll enjoy it :)
michaelhoffmanover 3 years ago
Without a &quot;share&quot; button that creates an emoji summary of your results, this will never get as viral as Wordle
评论 #29931000 未加载
评论 #29923897 未加载
mxmilkiibover 3 years ago
<a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;liFqyj3.png" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;liFqyj3.png</a> felt like i might have clicked too early, but it&#x27;s showing in on game over
bapover 3 years ago
Fantastic.<p>Feature Request: I&#x27;d love to see the ratio of successful points to number of times the ball traverses the circle. I think others have already said things about scoring mechanisms for faster taps, I wonder if there could be one around a sweet spot on the line (earlier is better? Later?!)<p>Well done, you&#x27;ve made me late for a meeting!
charleshanover 3 years ago
This is well made! Easy to understand, challenging, and a hint of variable reward.
RankingMemberover 3 years ago
Simple addictive games like this always remind me of that ball-in-a-cup game that everyone got addicted to in that &quot;The Game&quot; episode of &quot;Star Trek: The Next Generation&quot;.
评论 #29926123 未加载
laumarsover 3 years ago
Good game though there seems to be a bug where if you tap twice quickly, not even a doubt tap but just relatively quickly, it doesn’t register the second tap.<p>Safari, iOS (whatever the latest update is)
tyingqover 3 years ago
For autoplay, paste this into the console and click the play button.<p><pre><code> setInterval(function() {loopTapApp.arc=[0,359];loopTapApp.tap(document.createEvent(&#x27;Event&#x27;))},5);</code></pre>
评论 #29923566 未加载
throwawayHN378over 3 years ago
Cool. I haven’t read the comments but I did find a possible bug. If I successfully click in the painted area the generation of the next painted area may land on top of my current “cursor”. I wasn’t quick enough to click it and the game didn’t fail me ( it let the cursor go around the perimeter again at which time I clicked when the cursor was over the painted area and was awarded a point ). Might not necessarily be a bug but it adds unnecessary ambiguity to the game.
danboltover 3 years ago
I feel like the variation in placement and length helps. Or, it pushes towards the &quot;randomness&quot; that makes some skinner boxes more sticky than others.
catskul2over 3 years ago
Missed opportunity to name it &quot;ball tap&quot;.
评论 #29924111 未加载
codevandalover 3 years ago
Nice! Reminds me of the Cyclone &#x2F; &quot;stop the light&quot; arcade games. If anyone wants to play a similar game on iOS, I made one about 7 years ago called hyper•loop <a href="https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;hyper-loop&#x2F;id944029806" rel="nofollow">https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;hyper-loop&#x2F;id944029806</a>
marcos100over 3 years ago
Played twice. Immediately knew that I should stop.<p>Great game!
nope96over 3 years ago
This reminds me of this cat toy - the circle with a ball in it (or at least it made me feel like a cat for a minute)<p><a href="https:&#x2F;&#x2F;m.media-amazon.com&#x2F;images&#x2F;I&#x2F;617M1m5N-aL._AC_SS450_.jpg" rel="nofollow">https:&#x2F;&#x2F;m.media-amazon.com&#x2F;images&#x2F;I&#x2F;617M1m5N-aL._AC_SS450_.j...</a>
mesozoicover 3 years ago
I think the score should go down when the ball makes a full revolution. Encourage more same revolution taping
dheeraover 3 years ago
``` loopTapApp.startPlay(); setInterval(() =&gt; { if(loopTapApp.getBallAngle() &gt; loopTapApp.arc[0] &amp;&amp; loopTapApp.getBallAngle() &lt; loopTapApp.arc[1]) { loopTapApp.tap({preventDefault: ()=&gt;{}, stopPropagation: ()=&gt;{}}); } }, 50); ```
DaveSapienover 3 years ago
This is brilliant!!<p>I made a game quite similar that took me years to complete. And I feel this is much more immediately engaging, could just be me being hyper critical of my own work...but its always amazing to see how other designers approach similar ideas.<p>Either way I love it!!!!
dcowover 3 years ago
There might be a bug. I “died” but the ball appears in the live zone <a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;XJdKgDL.png" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;XJdKgDL.png</a>. Happened to my partner too.
评论 #29933275 未加载
jugg1esover 3 years ago
A cool variation would be to show the bar that&#x27;s up next in a faint outline.
ZeroOne_010101over 3 years ago
Great lil game! The color is just gray after 550 taps, maybe rotate the colors?
robbiejsover 3 years ago
Cool game, works nicely on my android phone.<p>One thing that you could improve is add user-select:none to the page. Quickly tapping the document did select the counter text and opened a google mini popup, distracting from the game.<p>Well done!
IAmNotAFixover 3 years ago
The ryhtm should accelerate each N clicks so that the game eventually ends. Otherwise no matter how many points you get by clicking fast it&#x27;s possible to accumulate the same amount by playing it safe.
评论 #29923966 未加载
ericskiffover 3 years ago
Fun! 171 on my second round.
_57jbover 3 years ago
So well done.<p>I love these styles of development where it can be thrown together quickly but complete the full spectrum of ux, creativity, and hitting that sweet spot that felt satisfying to play.<p>Seriously well done!
edoceoover 3 years ago
Sometimes it increases the hit counter by one, others by two - why?
评论 #29922268 未加载
评论 #29923050 未加载
评论 #29922262 未加载
bentcornerover 3 years ago
Love the mechanic where the more quickly you click the next one the more points you get.<p>There should be a timed mode to encourage rapid clicking (i.e., score the most points within 30s or 1min).
skurtcastleover 3 years ago
Not a bad time waster. Simple. Could be used for office fun as well.<p>&quot;Martha. If you beat my score on 1st attempt, I&#x27;ll do those TPS reports.&quot; lol.
kpmccover 3 years ago
Good game, clever concept, appreciate the simplicity.
jason_slackover 3 years ago
This was really stimulating for my ADHD. Hyperfocusing my high score was 1300.<p>Make this an iOS game!<p>Does anyone have any interesting iOS recommendations for ADHD stmming?
ms123over 3 years ago
Here&#x27;s another one: <a href="https:&#x2F;&#x2F;netspeed.ichi.city&#x2F;" rel="nofollow">https:&#x2F;&#x2F;netspeed.ichi.city&#x2F;</a>
unobatbayarover 3 years ago
How do you come up with this stuff? I need answers.
everyoneover 3 years ago
There should be a score multiplier that builds up by getting points in quick succession. That would add a risk&#x2F;reward element to it.
rayragover 3 years ago
Request: add info about how many loops game had. less loops should add bonus points or more loops should have penalty points.<p>Otherwise fun game :)
marxdev3over 3 years ago
Cool game, but the collision detection needs to work better. Currently can lose if partially touching, does not seem intuitive.
评论 #29923308 未加载
andy_pppover 3 years ago
Should get marginally faster every 10 clicks...
deeviantover 3 years ago
Some sort of measurement or score for more hits per unit time would be cool. Overall, fun little game, nice job.
评论 #29923333 未加载
nashashmiover 3 years ago
Keep this one advancing. Great job with maintaining simplicity. Lots of forks will come your way
franzeover 3 years ago
just repaired <a href="http:&#x2F;&#x2F;lalo.li&#x2F;ddd&#x2F;" rel="nofollow">http:&#x2F;&#x2F;lalo.li&#x2F;ddd&#x2F;</a> as prevent default changed behaviour on event listeners some time ago (from default active to passive, needed to set them to passive)
ericbluesover 3 years ago
Cool! Reminds me of defusing mines in a game I used to play. Can&#x27;t remember the name.
zanethomasover 3 years ago
Couldn&#x27;t add my score because twitter doesn&#x27;t like what I have to say.
mattfrommarsover 3 years ago
Reminds me a hamster game from back in the gay - the hamster would go in a loop.
analog31over 3 years ago
Ouch, eyestrain. Not really a complaint, but a limitation of my own physiology.
xavhanover 3 years ago
it remind me of Super Hexagon :D<p>You could change the dot rotation direction on each success ...
hnburnsyover 3 years ago
Great game! Suggestion, penalize each rotation that does not have a click.
typonover 3 years ago
This is very similar to the popular game &quot;Pop the lock&quot;
AtNightWeCodeover 3 years ago
When you come to the white beans it becomes sooo difficult.
GrifMDover 3 years ago
This was delightful, and now I will get no work done today.
johncsover 3 years ago
Oh hey, it’s one of Fable’s mini games! Very cool to see
tinyprojectsover 3 years ago
This is great! You&#x27;ve got something here
TomGullenover 3 years ago
Right click resets it, otherwise good game!
wnolensover 3 years ago
I love this. Added to my home screen.
avieraxover 3 years ago
Great, free dopamine for my ADHD!
johnmorrisonover 3 years ago
I love it, accurate description
jordiburgosover 3 years ago
This game is hooking!
atum47over 3 years ago
Simple yet addictive
scrozierover 3 years ago
&quot;Thanks.&quot;
murtioover 3 years ago
Nice minimal game!
ChemiSpanover 3 years ago
WOW FANTASTIC GAME HOW DID YOU MAKE IT
xbarover 3 years ago
Best: 1
philosopher1234over 3 years ago
Hypnotic
VishwaGauravInover 3 years ago
Nice one
papa2034over 3 years ago
Nice game!
ZeroOne_010101over 3 years ago
maybe rotate the colors?
snihalaniover 3 years ago
so good
popfastfulover 3 years ago
you can also try the minimal game to waste your time <a href="https:&#x2F;&#x2F;www.snapfeel.com&#x2F;share&#x2F;post&#x2F;?id=116" rel="nofollow">https:&#x2F;&#x2F;www.snapfeel.com&#x2F;share&#x2F;post&#x2F;?id=116</a>
Shadonototraover 3 years ago
it&#x27;s basically a clone of what is already playable in the link they provide<p>literally the same<p>what is the point other than pure 100% identical copy<p>no shame?<p><a href="https:&#x2F;&#x2F;coogyloop.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;coogyloop.com&#x2F;</a>
评论 #29927606 未加载
jckahnover 3 years ago
Awesome work! I strongly recommend monetizing this. If this was a native iOS&#x2F;Android app, you could show an interstitial ad after each Game Over and offer a small in-app purchase to remove all ads. It worked for 2048, and I believe it would work here as well!<p>Addictive drop-dead simplicity is repeatable recipe for success in games. I&#x27;m working towards this same strategy in my own projects, but I think you&#x27;ve really nailed it here!<p>EDIT: Whoops, I just noticed that this was based off such an app. Still, great work on the implementation!
评论 #29923265 未加载
评论 #29927511 未加载