‹ BackHN Continuity

Thread

Hole Punch: Sling your spaceship around gravitational fields

356 points · 87 comments · trwhite

Loading the complete thread in the background. This saved snapshot is available now. Refresh

  1. YeahThisIsMe · · focus · HN ↗
    This is the year of old browser (and/or flash) games making a comeback in some form.
    1. walrus01 · · focus · HN ↗
      And/or weird things implemented in one shot vibe coding as a test with three.js:

      <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;opencode&#x2F;comments&#x2F;1ww5o7y&#x2F;animated_horse_space_bunny&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;opencode&#x2F;comments&#x2F;1ww5o7y&#x2F;animated_...

      <a href="https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;opencode&#x2F;comments&#x2F;1ww5o7y&#x2F;animated_horse_space_bunny&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;opencode&#x2F;comments&#x2F;1ww5o7y&#x2F;animated_...

    2. ashdnazg · · focus · HN ↗
      This is an old favourite of mine, the opposite of TFA, where you launch the ship and try to survive as long as possible without crashing into the gravity wells. <a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20031129163538&#x2F;http:&#x2F;&#x2F;homokaasu.org&#x2F;gasgames&#x2F;game.gas?21" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20031129163538&#x2F;http:&#x2F;&#x2F;homokaasu....
  2. jonplackett · · focus · HN ↗
    It’s nice but clearly designed for desktop

    It’s a mobile world. This would be so nice as a proper touch enabled game

    1. trwhite · · focus · HN ↗
      It sorta works. Hoping to do more testing
      1. leetrout · · focus · HN ↗
        Just a few tokens away from a flutter port
      2. toobulkeh · · focus · HN ↗
        Clicking too fast zooms the browser which breaks the click placement. Native Mobile would be much better.

        Great concept!

    2. leptons · · focus · HN ↗
      &gt;It’s a mobile world.

      Desktop and Mobile are at about a 50&#x2F;50 split, no it&#x27;s not exactly a &quot;mobile world&quot;.

  3. mkatx · · focus · HN ↗
    Nice, a lot of fun!
  4. iamwil · · focus · HN ↗
    [delayed]
    1. wmanley · · focus · HN ↗
      &gt; It&#x27;s like Space Golfing

      Or pool...

      I am prince of the planet potters!

    2. x______________ · · focus · HN ↗
      &gt;Another alternative is to make it like a turn-based Scorched Earth (Mother of all games)

      Scorched Earth &lt;3

      Another version of this idea has been out for some time now, check out Interplanetary[0] (85% off today it seems!)

      0 <a href="https:&#x2F;&#x2F;store.steampowered.com&#x2F;app&#x2F;650220&#x2F;Interplanetary_Enhanced_Edition&#x2F;" rel="nofollow">https:&#x2F;&#x2F;store.steampowered.com&#x2F;app&#x2F;650220&#x2F;Interplanetary_Enh...

      1. SeriousM · · focus · HN ↗
        And that was the inspiration for the attack in The Expanse, or was it the other way around?
  5. adamesque · · focus · HN ↗
    Fun idea, but kind of maddening that I can click and hold to add mass to a hole but if i overshoot, i can&#x27;t do anything subtract mass or delete a hole.
    1. 40four · · focus · HN ↗
      The ability to subtract mass is definitely needed. All you can do is click “undo” and try again. You can drag the holes around too. Still pretty fun, I played 5 or 6 levels
      1. msephton · · focus · HN ↗
        Tap the black hole and it gives you ability to add and remove.
      2. trwhite · · focus · HN ↗
        I just pushed an update. Click on the hole and controls will appear. I think you&#x27;ll enjoy the later levels (10+)
        1. hnuser123456 · · focus · HN ↗
          Nice domain name
          1. trwhite · · focus · HN ↗
            Thanks. The important context is that I am 6ft 7 (and once knew all the words to Hypnotize)
    2. rapidfl · · focus · HN ↗
      also need a way to increase the sim speed. 1.5x 2x etc
    3. gschizas · · focus · HN ↗
      Click on the hole. There will appear 3 buttons, one to add mass, one to subtract and one to delete the hole completely.
  6. mihaaly · · focus · HN ↗
    I love it! : )
  7. manlymuppet · · focus · HN ↗
    Never ignored a tutorial faster.

    (This is a compliment.)

    1. chirau · · focus · HN ↗
      I know right? As soon as I saw the page, I had a rough idea of how to control things already. lol
    2. trwhite · · focus · HN ↗
      Thanks! I like the keyboard experience (space for start&#x2F;stop), arrows to add&#x2F;subtract mass. Maybe I will add tabbing
  8. Razengan · · focus · HN ↗
    Feedback: It would be nice to be able to manually key in the matter; on Safari desktop clicking uses up matter too quickly to set precisely.
  9. fullstackwife · · focus · HN ↗
    Very nice, being busy with sth, and I could not go through all levels and reached the one with star(sun?), but the topic of gravity assist manouver was always inspiring for me, so I enjoy this game, congrats on making it!
  10. kkhire · · focus · HN ↗
    Fantastic! Should add an (optional) instruction level, but would have loved this game as a kid.
  11. mosfets · · focus · HN ↗
    This is somehow surprisingly fun, a good game to play with kids.
  12. shantanujoshi · · focus · HN ↗
    wow wonderful game this is super fun! Would love it on iOS
    1. xixixao · · focus · HN ↗
      It launches on mobile safari but doesn’t seem playable, landscape on mobile safari sucks.
      1. trwhite · · focus · HN ↗
        Sorry, it very much began as a desktop game. Hoping to work on it if I have time tomorrow
  13. davelacy · · focus · HN ↗
    bravo - excellent game
  14. rkagerer · · focus · HN ↗
    Great game, though the controls on mobile are a bit too imprecise.

    As you drag a hole, the size widgets should disappear so you can better see what&#x27;s around it. They could pop back up again once you&#x27;re done dragging.

    Personally I&#x27;d rather if you had to press a button or something (or long press?) to add a new hole. I keep accidentally adding new ones when all I want to do is adjust an existing one.

    Also spamming the user with the help screen right off the bat is a bit much. As long as they know it&#x27;s there and can pull it up &#x2F; dismiss it, I think it would be more fun to sort of discover the game mechanics yourself.

    Note several of the first 8 or so levels can be accomplished with a single minimum (8) sized black hole. Eg. I liked the simplicity of doing that on level 6.

    1. EA-3167 · · focus · HN ↗
      I resisted playing on mobile until I got home, and you&#x27;re absolutely right that it&#x27;s a whole other experience on desktop. In terms of addictive potential this reminds me favorably of that Seedship game, it&#x27;s very simple, but powerfully &quot;just one more round.&quot;
    2. trwhite · · focus · HN ↗
      I agree - the mobile sucks. I&#x27;ve made a couple of usability tweaks for now, but hope to have more time to spend on it in the week
    3. joshspankit · · focus · HN ↗
      Also a small bug: when rotating in response to the prompt to play in landscape, the button does not show and a refresh is needed while still in landscape
    4. temp0826 · · focus · HN ↗
      Being able to actually drag a hole makes it a little easier as well..! (Didn&#x27;t even realize that was a thing as it was broken on mine...playing on desktop now)
  15. derin-picment · · focus · HN ↗

    [dead]

  16. Loughla · · focus · HN ↗
    Fun, but terrible on mobile.
  17. NooneAtAll3 · · focus · HN ↗
    Loved it! Played all 20 levels

    Some missions have mass budget so large it seems to imply a &quot;go fast, crash fast&quot; solutions, but there&#x27;s no time-of-flight score :(

    ha, now I want to see a leaderboard, with players&#x27; score distribution (mass&#x2F;holes&#x2F;time mb?), like the zachtronics games

    I had a blast. Thank you!

  18. amelius · · focus · HN ↗
    This one was cute also:

    <a href="https:&#x2F;&#x2F;www.falstad.com&#x2F;rendezvous&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.falstad.com&#x2F;rendezvous&#x2F;

    (check the autopilot option)

  19. peesem · · focus · HN ↗
    reminds me of Gravitee, except in that game the planets are pre-positioned and you&#x27;re hitting a golf ball
  20. matheusmoreira · · focus · HN ↗
    Love it.
  21. baw-bag · · focus · HN ↗
    I love these kind of things and all of their quirks. Just interacting with a webpage in a fun way. More of this!
  22. simonjgreen · · focus · HN ↗
    Well, this is going to be a fun problem
  23. wat10000 · · focus · HN ↗
    It might be a cheat, but I&#x27;d really like a mode where the projected path of the ship had unlimited length. The trial and error cycle is a bit too long for some of the more advanced setups.
  24. sebastianconcpt · · focus · HN ↗
    Love it. And thanks for the refreshing skeumorphism
    1. GalaxyNova · · focus · HN ↗
      I don&#x27;t know if it&#x27;s that refreshing. Looks like standard Claude generated style.
  25. jakzurr · · focus · HN ↗
    Way, way more fun than expected. Played on desktop, though.
  26. eezing · · focus · HN ↗
    Very neat.
  27. joshu · · focus · HN ↗
    i&#x27;ve been making a bunch of fun physics games like this. i need to push out the latest one. try this one, torture a parking optimizer: <a href="https:&#x2F;&#x2F;truckslop.joshu.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;truckslop.joshu.dev&#x2F;
    1. SeriousM · · focus · HN ↗
      Please, where are the others?
  28. goolz · · focus · HN ↗
    I just spent a ton of time on this. Reminds me of the joy from those old flash sites like addictinggames.com. Bravo.
  29. jdw64 · · focus · HN ↗
    There are a lot of browser games worth playing these days. It&#x27;d be nice if there were a site that could gather them all in one place.
  30. grobibi · · focus · HN ↗
    I refuse to hold my phone landscape even for videos so I&#x27;ll never know how neat it is.

    This is not an attempt to be a jerk. Just letting you know there&#x27;s people like me out there.

    1. stackghost · · focus · HN ↗
      There are dozens of us!
      1. monadoid · · focus · HN ↗
        DOZENS!
  31. fogleman · · focus · HN ↗
    Well, this is strangely familiar to a game I just vibe-coded recently!

    <a href="https:&#x2F;&#x2F;www.michaelfogleman.com&#x2F;gravity-assist&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.michaelfogleman.com&#x2F;gravity-assist&#x2F;

    1. emkoemko · · focus · HN ↗
      i guess thats what you get for not caring about the art work? it ends up looking the same right?
      1. derpyzza · · focus · HN ↗
        &quot;how odd, my plagiarism machine spit out the exact same thing as your plagiarism machine!&quot;
    2. slopinthebag · · focus · HN ↗
      looks like you both stumbled upon the same rlhf checkpoint
      1. djaro · · focus · HN ↗
        If you go on Amazon and search &quot;100,000 whys&quot;, you will find page after page of essentially the exact same book. Presumably because asking some AI model &quot;give me an idea for an educational book aimed at children&quot; gave that answer.

        I just asked ChatGPT to generate me an educational book title for children, searched the first result it gave me on Amazon, and found a book titled exactly that published a couple of months ago.

        LLMs converge towards expected text which makes them really bad at creating novel interesting ideas when given essentially no information. You have to create the unique part yourself.

        1. rcxdude · · focus · HN ↗
          Yeah, for any given decision an LLM will tend towards the same answer across a pretty broad range of contexts unless you specifically steer it otherwise. It becomes pretty obvious when you run a lot of similar prompts through them. I remember one story of a teacher getting their class to use chatGPT for a creative writing exercise, and then getting them to read them out and compare them. What seemed like creative and novel choices from the LLM to each of them individually were actually replicated across most of the class.
    3. SeriousM · · focus · HN ↗
      The steering is 1:1 the same as from <a href="https:&#x2F;&#x2F;store.steampowered.com&#x2F;app&#x2F;366910&#x2F;The_Long_Journey_Home&#x2F;" rel="nofollow">https:&#x2F;&#x2F;store.steampowered.com&#x2F;app&#x2F;366910&#x2F;The_Long_Journey_H... . did you knew it before?
  32. drob518 · · focus · HN ↗
    Very cool. Had some trouble figuring it out on iPad.
  33. willguest · · focus · HN ↗
    Nicely done, and interesting to see how the computer &quot;solved&quot; some of them. It is even sneakier that I am.
    1. CarVac · · focus · HN ↗
      It used pairs of holes in a very different way than I did.
  34. yogthos · · focus · HN ↗
    I ended up making a very similar game for a hackathon with a friend years ago <a href="https:&#x2F;&#x2F;github.com&#x2F;yogthos&#x2F;graviton&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yogthos&#x2F;graviton&#x2F;
  35. frellus · · focus · HN ↗
    Wellll.... this is *(&amp;#@ addictive. I need my Saturday night back now, man
  36. frellus · · focus · HN ↗
    Well, this was (*)@&amp;#$@# addictive. I need my Saturday night back now, man
  37. jheriko · · focus · HN ↗

    [dead]

  38. smorgasborg · · focus · HN ↗
    thank you. just played all 20 levels. I want to see a dynamic mapping of the phase space as i drag a mass around. maybe i&#x27;ll vibe code that.
    1. smorgasborg · · focus · HN ↗
      I went ahead &amp; plotted this game&#x27;s solution space. @trwhite, presuming your permission, i live linked to your physics.js. will gladly remove on request. you&#x27;re welcome to incorporate my vibecode in the game.

      <a href="https:&#x2F;&#x2F;smorgasb.org&#x2F;holepunch-map.html" rel="nofollow">https:&#x2F;&#x2F;smorgasb.org&#x2F;holepunch-map.html

      1. trwhite · · focus · HN ↗
        You have my permission. It looks awesome
  39. nilslindemann · · focus · HN ↗
    I love it. The dragging of black holes could be improved:

    * The black hole is not moved until the cursor has moved more than five pixels.

    * The first time the black hole moves in the dragging process, it moves more than one pixel, afterwards one. So it is a small jump and then it moves smooth.

    * The cursor icon changes to the drag symbol only after the mouse has already moved five pixels, not as soon as the mouse button is hold down.

    * When the mouse is outside the draggable zone, but still in the game window, the black hole is not dragged along the border.

    1. gblargg · · focus · HN ↗
      Also you can&#x27;t move it too close to ship, but there&#x27;s no feedback you&#x27;re too close, so it looks it&#x27;s just not responding.
  40. lawwantsin17 · · focus · HN ↗

    [dead]

  41. Vivek-KY · · focus · HN ↗
    event horizon ,relay,and last hole punch was crazy it took lots of time. completed all 20. appreciate it dude
  42. swiftcoder · · focus · HN ↗
    This is a lot of fun (only tried on desktop)
  43. kang · · focus · HN ↗
    frustrating game, feels half done. obviously least matter is consumed by bending it as close to the object, but game has crazy growth speed and no way to control it
  44. sajithdilshan · · focus · HN ↗
    Doesn’t work on mobile safari. Tapping on a blackhole does nothing
    1. petepete · · focus · HN ↗
      Same on the latest Chrome on Android.
    2. trwhite · · focus · HN ↗
      I do apologise. I&#x27;m trying to replicate the mobile issues, though I don&#x27;t have one to hand right now. I&#x27;ve just pushed up some changes that attempt to make touch interactivity a little better and I added full screen support
  45. endlessvoid94 · · focus · HN ↗
    Very fun. Got far enough to need the black holes to provide the starting motion and gave up.
    1. trwhite · · focus · HN ↗
      The &quot;no fuel&quot; mechanic is very challenging. If you click on the &quot;sector&quot; button at top left and then click &quot;I give up&quot; the computer will show you the solution. It&#x27;s all about making gates with two holes and then steering by adding mass to one
  46. mnw21cam · · focus · HN ↗
    I get that it&#x27;s only a game, but all of these gravity games (with a couple of rare exceptions) ignore the fact that the black holes (or planets&#x2F;suns) should be moving as well.
    1. codesnik · · focus · HN ↗
      Kerbal Space Program didn&#x27;t! I wonder if it&#x27;d be much harder to simulate real gravity &quot;spheres&quot;, with Lagrange points and all. But even without it, in simplified mechanics, planning slingshots and using Oberth effect had been fun.
      1. pavel_lishin · · focus · HN ↗
        There are plugins that make the orbital paths of the planets and moons - and the ships - more realistic.
  47. [deleted] · · focus · HN ↗

    [deleted]

  48. m-nez · · focus · HN ↗
    This reminds me a lot of the first game I made more than 10 years ago (<a href="https:&#x2F;&#x2F;github.com&#x2F;m-nez&#x2F;gravity_slingshot" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;m-nez&#x2F;gravity_slingshot). In my case you change the trajectory of your ship by adjusting the strength of stationary attractors in real-time.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.