Lurker News
I’ve been working on this game for the past few weeks. It’s written in plain JavaScript, mostly with canvas, with no dependencies.

The code is here: https://github.com/ehmorris/lunar-lander

Comments (170) 102 threads

Earlier comments
tillcarlos1 reply#
Couple of great UX things I’ve found

- the game doesn’t let you play without knowing how to use the controls, and it shows them in real time - whenever you tap, the tap area lights up.
Small Details that make a difference!

ehmorris#
Mostly thanks to my friends for play testing it!
gavmor1 reply#
Apparently, it's all about feathering the throttle. Very nice!

Near-perfect landing, super smooth
Score: 96.5 point landing Speed: 1.1mph Angle: 0.7° Time: 45 seconds Flips: 0 Max speed: 43.7mph Max height: 256ft Engine used: 73 times Boosters used: 37 times https://ehmorris.com/lander/
---
I see it took you about seven months from "Initial Commit" to its current state. How did you stay on track all that time?

ehmorris2 replies#
Yes but you can also compete on using as little throttle/booster as possible! IMO the perfect landing is one where you engage the engine at the exact right moment to touch down at <1mph, and you engage a booster only once in order to be upright. Engine and booster use aren't part of the score though.

The older commits were part of a previous idea that I abandoned, then a few weeks ago I deleted almost everything and gave it another try.
Thanks for playing!

moron4hire#
Yeah, but how many times can you flip the rocket?
lagrange77#
> IMO the perfect landing is one where you engage the engine at the exact right moment to touch down at <1mph, and you engage a booster only once in order to be upright.

Would be interesting to see, if optimal control would do just that or use many short bursts.

helpfulmandrill#
Very addictive.

One thing that would be interesting would be a mode where you have limited fuel.
Also, the ability to set different buttons would be good. Towards the end of the landing I want to use one hand for left-right, and the other for the booster rocket, and this is awkward.

yesenadam1 reply#
I found the font saying the speed and angle were much too small to read, and hard to read against the background anyway, so it was unplayable. No one else seems to have had that problem! macOS 12.5, firefox, 24 inch 1920x1080 display - pretty normal sized. Maybe it works on a phone. I tried zooming in but then I couldn't see the ground, and the font didn't get bigger.
ehmorris#
Thanks for the feedback, I ought to just make the font responsive on larger screens. I will get to it!

Load more comments