News for hackers. Stuff that matters.
Re:Show HN: Rocket Drone, a lunar lander type game for the web by someweirdperson on Saturday August 13, 2022 @03:59PM (#32453232)
First couple of free play (random I guess) levels were easy, then I ended up with one where there was insufficient fuel to complete it. It might be solvable by going balistic through some section, but I lost patiens, then couldn't find the random id for a retry later.

Highscores for the daily (and yesterdaily to check where you ended up) would be nice.

On mobile it shows controls in lower left/right corners, which is a little inconvenient. Luckily, touching anywhere on the left/right side of the screen works.

Possibility to zoom out would be nice, to avoid the possibility to fly into a dead end.

Also, I'm somewhat confused. This is HN and noone has yet posted some js that calculates/plays automatically? Iirc that was the case for the NASA docking simulator. Or did I dream this up?

Re:Show HN: Rocket Drone, a lunar lander type game for the web by crispisulcans on Saturday August 13, 2022 @04:19PM (#32453404)
Thanks for the feedback! The level generation probably still needs tuning to avoid those kinds of levels. Daily leaderboard is a great idea!
Re:Show HN: Rocket Drone, a lunar lander type game for the web by someweirdperson on Saturday August 13, 2022 @04:38PM (#32453568)
Reading the other comments I tried the tutorial (who plays tutorials?!). They did feel faster (and thus relatively more difficult) than the random levels. Is inertia and gravity the same on all levels?

And tutorials 8 and 9... they are intended for someone to implement automation, aren't they?

Re:Show HN: Rocket Drone, a lunar lander type game for the web by crispisulcans on Saturday August 13, 2022 @04:49PM (#32453653)
Inertia and gravity are the same on all the levels. I don't know why it would feel different... Yes, levels 8 and 9 are meant to be more challenging. you might encounter obstacles like that in the random levels. Each level of the tutorial is meant to give you practice tackling different kinds of obstacles. I would love to see what automatic inputs can do for some of these levels :)
Re:Show HN: Rocket Drone, a lunar lander type game for the web by someweirdperson on Saturday August 13, 2022 @05:14PM (#32453861)
If its not the physics then its the simulation. Free play is a lot slower than the tutorials, time feels like it is running at 50% speed. Android tablet, firefox.
Re:Show HN: Rocket Drone, a lunar lander type game for the web by crispisulcans on Saturday August 13, 2022 @05:19PM (#32453898)
oh I see, yes it could be performance-related. I will need to decouple the game update loop from the rendering loop. Will do soon.
Re:Show HN: Rocket Drone, a lunar lander type game for the web by Datagenerator on Sunday August 14, 2022 @03:56AM (#32457376)
Thank you for applying patches from the user feedback loop (phun)
Re:Show HN: Rocket Drone, a lunar lander type game for the web by rorrim on Sunday August 14, 2022 @02:04PM (#32461412)
I was able to manually succeed on level 8, but I have no idea how it's possible to accomplish level 9. I can't figure any way to get enough inertia or upward thrust to escape the narrow spot once I'm most of the way through it.

EDIT: and... literally on my next attempt, I made it through the narrows. It's possible.

EDIT #2: and... made it. >:D

Re:Show HN: Rocket Drone, a lunar lander type game for the web by TedDoesntTalk on Saturday August 13, 2022 @04:40PM (#32453577)
How do you implement a leaderboard that can’t be spoofed with REST POST calls from curl or postman?(Genuine question for my own JavaScript game) doesn’t need to be perfect just a barrier that makes it painful to spoof easily
Re:Show HN: Rocket Drone, a lunar lander type game for the web by someweirdperson on Saturday August 13, 2022 @05:05PM (#32453784)
Include the complete inputs for the solution, and verify on upload.

Then don't accept dupes and make the leaders winning flights watchable.

Re:Show HN: Rocket Drone, a lunar lander type game for the web by crispisulcans on Saturday August 13, 2022 @05:17PM (#32453884)
Yes this is what I'm thinking. The replay links already include the full input. I would then just have to verify it and show the link for each entry. For example this is my flight just now for today's daily with a time of 12.97s: https://rocket-drone.lol/?level=5550594399&replay=IIgmIUWAJB...
Re:Show HN: Rocket Drone, a lunar lander type game for the web by someweirdperson on Saturday August 13, 2022 @05:37PM (#32454034)
Ooooh, replays already exist. I didn't notice the button.

https://rocket-drone.lol/?level=9&replay=IIiKIUWARAOBhYBzAQg...

Re:Show HN: Rocket Drone, a lunar lander type game for the web by crispisulcans on Saturday August 13, 2022 @06:01PM (#32454201)
nice one!
Re:Show HN: Rocket Drone, a lunar lander type game for the web by someweirdperson on Saturday August 13, 2022 @05:54PM (#32454141)
sub-10s. feels like cheating with slowed reality of course.

https://rocket-drone.lol/?level=5550594399&replay=IIhSIUWBhB...

Re:Show HN: Rocket Drone, a lunar lander type game for the web by crispisulcans on Saturday August 13, 2022 @06:41PM (#32454497)
a little downward boost at the beginning, trading away some health for time, love it!
Re:Show HN: Rocket Drone, a lunar lander type game for the web by fouronnes3 on Saturday August 13, 2022 @05:08PM (#32453802)
This requires deterministic physics.
Re:Show HN: Rocket Drone, a lunar lander type game for the web by TedDoesntTalk on Sunday August 14, 2022 @09:13PM (#32464780)
Save the random seed