Live data from Hacker News

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

looptap.vasanthv.com

81–90 of 183 posts

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

#82
post #42

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. https://pastebin.com/aTYuaNVS 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/context switch/whatever) and ta-da - it misclicked. High score of 1,637.

Brilliant, thanks. Are you usually able to do this when e.g. it's more of a SPA and you have to drill down more to get to the state of some deeply nested component?

I haven't really tried. Most of the time I do this and use the actual game functions for autoclicker games like e.g. Cookie Clicker. It makes progression a lot simpler and I get to see the "fun" aspects of the game (like the super weird late game stuff) without actually breaking the fundamental game code. I like operating within the game's own code boundaries.

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

#83
post #42

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. https://pastebin.com/aTYuaNVS 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/context switch/whatever) and ta-da - it misclicked. High score of 1,637.

This is neat. Also, in retrospect, I probably should have read the code before pasting it into my console.

Most definitely :D

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

#84
post #51
post #42

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. https://pastebin.com/aTYuaNVS 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/context switch/whatever) and ta-da - it misclicked. High score of 1,637.

You beat me to it, haha, This is what I just did: function intersectRect(rectA, rectB) { return !( rectB.left >= rectA.right || rectB.right = rectA.bottom || rectB.bottom const arc = document.getElementById("arc"); const ball = document.getElementById("ball"); setInterval(() => { if (intersectRect(arc.getBoundingClientRect(), ball.getBoundingClientRect())) { window.dispatchEvent(new KeyboardEvent('keypress', { keyCod…

Oh neat! You did the Harder version and didn't use the game's own code to check it. I find that with JS games it's better to imitate the game's exact logic and call it's functions to make sure the state is working/updates correctly.

Of course, for how delightfully simple this one is, your approach is definitely faster/better!

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

#86

Great stuff, got 315 on third try. I made a game in the same vein sometime ago: https://vladimirslepnev.itch.io/zigzag One thing to note about this kind of endless runner games is the scoring system. Everyone uses the system "get as much points as possible in one run, each run starts from zero". But that forces people to slog through the early parts each time, and also makes them more likely to stop playing after an…

It took me a while to understand what was going on with your game. Once I got it it was fun, though! For anyone else confused: the goal is to keep the light colored "snake" moving through the dark colored "tunnel". When the snake stops moving, it's because it's at a junction in the tunnel. You're goal is to tell the snake which direction to go (either left or right) _from its perspective_.

so nauseating though. got a headache within seconds of playing from the constant and completely random camera movement

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

#87

Because it had to be done: let robot = function () { const ballAngle = loopTapApp.getBallAngle(); const arc = loopTapApp.arc; if (ballAngle + 6 > arc[0] && ballAngle - 6

at ~1600 the ball started to spin too quickly for an intersection with that 10ms timer and there were 6 balls visible at the same time with my 144hz display. fun stuff.

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

#88

Great stuff, got 315 on third try. I made a game in the same vein sometime ago: https://vladimirslepnev.itch.io/zigzag One thing to note about this kind of endless runner games is the scoring system. Everyone uses the system "get as much points as possible in one run, each run starts from zero". But that forces people to slog through the early parts each time, and also makes them more likely to stop playing after an…

Hey, that's the Barkley: Shut Up and Jam: Gaiden title music! https://www.youtube.com/watch?v=lWKQiZVBtu4

I really like your idea for solving the "endless runner problem." I guess the reason we haven't seen mobile games adopt this already is because each restart is an opportunity to show you an ad. :/

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

#89

Cool game! I know you're trying to keep it simple but a couple suggestions that might help and won't increase game complexity too much: 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't gotten far enough for this to happen...?) 4. If you're adding more points for "same rotation hit", make it clear that it's do…

On point 3, there are speed ups around 40, ~80, and on. The colors change at the same points.

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

#90
post #27

This is a great little time waster! Couple of recommendations, in no particular order: 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…

6. Delay showing the share button. I kept clicking it accidentally after failing
Post reply on HN