The single HTML file as a distribution format is really underrated. No server, no CORS issues, no CDN — just open the file. It works offline, you can email it, and it'll still work in 10 years.<p>I ship self-contained HTML files for a different project and the sneakiest gotcha is </ sequences inside inline <script> tags — the browser sees </ and tries to close the script tag prematurely. You have to escape them as <\/. Curious if the author ran into that one.<p>Fun concept for the format too — games are the perfect use case.
Seriously fun! A first it felt frustrating but it was interesting that at a certain point (after about 10 minutes) I suddenly got an intuitive feel for the ball’s trajectory and it became addictive at that point.
This is good fun! I’ve added it to the HN Arcade :) <a href="https://hnarcade.com/games/games/starfling" rel="nofollow">https://hnarcade.com/games/games/starfling</a>
Scoring 0, 1, 2, 3, or 4 all say better than 32% of players. Something isn't right.
Fun, but the way they fly doesn't quite match my intuition. Why would an object curve when I send it out on the tangent? Wouldn't that be a straight line unless it's affected by a different gravity well?
I imagine it as slingshotting my way up a tree.
Yes, you have to imagine a much bigger star beneath the viewport.
Fun. Not sure if this applies on desktop, but on mobile the quick/fast/blazing/skip text often blocks vision of the ball making it harder than it should be to make combos
I got 54, allegedly better than 99% of players. But I also note that a score of zero is apparently better than 32% of players.<p>Very fun.
Fun, but dark grey text on a dark background? Bit hard to read a bunch of the text.<p>It also seems like there's gravity coming from off screen assets (or maybe it's the bottom of the screen?) causing the projectile to curve in unexpected ways, and not be captured as strongly by the gravity of the visible objects as I'd expect.
Fun :)<p>Small idea for improvement: the "fast" text is often over the same space as the ball, which makes it harder to see where the ball would be going.
I don't see the "orbital" part. Ship flies in straight lines<p>Doesn't seem that hard, just a boredom endurance
Nice, enjoyable.<p>I did however expect the stars to attract my ship, that combined with the top down gravity vector made it less intuitive.<p>It also makes it feel like a game happening in earths atmosphere instead of space, it impacts the possible sense of scale.<p>Still fun :)
I have never been worse at a game than I am at this one
Nice job. Consider allowing the use of a key (Z, spacebar, etc) in addition to the mouse.<p>Related but I played a similar orbital minigame a while back on Itch.io which has a bit of a 2D Mario Galaxy feel to it as well.<p><a href="https://danceswithpixels.itch.io/orbital-slingshot" rel="nofollow">https://danceswithpixels.itch.io/orbital-slingshot</a>
Brilliant game. Thank you so much for this.
This thing is so fun. My best was 17, better than 94% :)
Good fun, my highest was 30, it took a while!
The use of the Web Vibration API <i>Navigator.vibrate()</i> is well done! I haven't seen it used much, but it really adds to the game.<p>(Apparently iOS still doesn't support it [1]? It's been in Chrome for the past 12 years. Maybe someday.)<p>1. <a href="https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/API/Vibration_A...</a>
This is great. Very addicting.
[dead]