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
gkfasdfasdf#
This game is gorgeous! It would be nice if the left and right thrust controls could be swapped.
thewebcount1 reply#
On an iPad, it’s very hard to hit the left/center/right targets accurately. I got some successful landings, but there was a lot of, “No I said center, not left… no, center, not right… ah crap!” If there were keyboard controls, that would help, I think.
ehmorris2 replies#
There are! You can use the arrow keys. It should work even when there’s touch support. I’ve also thought about moving the boosters all to one side.
Full_Clark#
I think for mobile interfaces it might be easier to have the engine as the top half of the screen and the boosters as the bottom L/R quarters. That way you could use one thumb each for roll inputs and an index finger for thrust, without having to be very precise about aiming your taps.
thewebcount#
Oh, great! Thank you! I must have missed that in the instructions.
gwd#
I seem to be running into a bug where the velocity gets mis-matched somehow -- the velocity will be listed as above -12 m/s even though the rocket is actually going up, which obviously makes it impossible to land.
exebook1 reply#
Wanted to play, but after the tutorial a first touch makes the ship disappear. When I reload the page, I can see the ship again, and the landing curve, then again if I touch the screen everything disappear except for the stars.
ehmorris1 reply#
Ah! If you've got a console error I'd appreciate it
ehmorris#
Think I figured it out

Load more comments