Settings

Theme

Show HN: Addictive little browser game involving gravity

retroburn.space

3 points by amiralul 2 months ago · 3 comments · 1 min read

Reader

A single-file HTML5 canvas application (~1200 lines of JavaScript, no dependencies, less than 50KB in size): in a randomly generated universe, you pilot a ship using Newtonian physics: gravity pulls you in, atmospheric drag slows you down, and you have limited thrust fuel that depletes your score when used. Don't crash! It's a proof of concept, a game created with Claude AI in about 10 minutes (and further enhanced).

gus_massa 2 months ago

The outher limit is too big for my mobile.

Does the atmospheric drag apply only in the circle? Perhaps you can paint it in very dark blue.

  • amiralulOP 2 months ago

    Yeah, it’s not really optimized for mobile, most of testing was done playing on a computer, with keyboard and proper display. I think it’s not really suited for mobile, it’s frustrating on a PC as well, I can’t see myself playing it on mobile.

    Yes, atmospheric drag applies in the circle.

    • gus_massa 2 months ago

      Oh, it's much easier on the keyboard.

      Minor feature request: In the start when there are three buttons to pick the mode, I 'd like to use the mouse.

      Big feature request: I made a similar simulator a long time ago, and I wished to add an option to show the expected trajectory in the future as a help. Also, show the trajectory in case I press up and in case I press down, so I can get some intuition about the change of the trajectory. (I'm not sure if it's possible to do this fast enough. I never added it to my simulator.)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection