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
warent4 replies#
Pretty fun! I like trying to make as many flips as possible:

  Basically a fender bender, but you landed
  Score: 45.4 point landing
  Speed: 3.5mph
  Angle: 9.5°
  Time: 62 seconds
  Flips: 18
  Max speed: 86.8mph
  Max height: 1276ft
  Engine used: 32 times
  Boosters used: 55 times
russellbeattie#
I went up to 20,000+ feet, flipped 1000+ times, but then didn't land it. I couldn't get it to stop flipping before it crashed.
varyherb#
Same

  Just shy of a good landing
  Score: 78.3 point landing
  Speed: 5.5mph
  Angle: 0.3°
  Time: 577 seconds
  Flips: 206
  Max speed: 302.4mph
  Max height: 12012ft
  Engine used: 69 times
  Boosters used: 89 times
djmips#
My best is 22 flips. I did them on screen.
nedt#
Flipping is really fun. If you do really many you'll get the color particles in straight lines coming down:

  Unbelievable, the crater is visible from Earth
  Score: 143.9 point crash
  Speed: 1259.8mph
  Angle: 35.0°
  Time: 629 seconds
  Flips: 1709
  Max speed: 1259.8mph
  Max height: 44983ft
  Engine used: 1 times
  Boosters used: 58 times
dsego3 replies#
How is this a crash, because of the angle?

    So, so close to a landing, but still a crash

    Score: 1.6 point crash
    Speed: 2.5mph
    Angle: 12.2°
    Time: 20 seconds
    Flips: 0
    Max speed: 34.5mph
    Max height: 221ft
    Engine used: 20 times
    Boosters used: 14 times
    https://ehmorris.com/lander/

This is my best attempt for now:

    A good landing, keep trying

    Score: 84.1 point landing
    Speed: 4.5mph
    Angle: 0.0°
    Time: 23 seconds
    Flips: 0
    Max speed: 32.5mph
    Max height: 221ft
    Engine used: 26 times
    Boosters used: 13 times
    https://ehmorris.com/lander/
ehmorris#
Yep the angle can't exceed 12
dsego2 replies#
New personal best!

    Very nice landing, amazing

    Score: 92.2 point landing Speed: 0.5mph Angle: 2.2° Time: 25 seconds Flips: 0 Max speed: 25.8mph Max height: 221ft Engine used: 27 times Boosters used: 25 times
maxverse#
Heck of a lot better than me! After probably 50 successful landings, all my bests hover around 75.
throwbadubadu1 reply#
Beaten, a bit, but beaten!

Very nice landing, amazing
Score: 93.9 point landing Speed: 2.2mph Angle: 0.1° Time: 17 seconds Flips: 0 Max speed: 24.4mph Max height: 236ft Engine used: 9 times Boosters used: 15 times

dsego#
Near-perfect landing, super smooth

Score: 95.4 point landing Speed: 2.0mph Angle: 0.0° Time: 21 seconds Flips: 0 Max speed: 32.0mph Max height: 221ft Engine used: 34 times Boosters used: 16 times https://ehmorris.com/lander/

moffkalast#
> Angle: 12.2°

What is this, Apollo 15?

Dave_Rosenthal1 reply#
Tried to get a good landing with as few control actions as possible. For a simple new scoring system, subtract your number of control actions from your landing score:

  Very nice landing, amazing

  Score: 90.5 point landing
  Speed: 2.9mph
  Angle: 0.2°
  Time: 18 seconds
  Flips: 0
  Max speed: 53.7mph
  Max height: 425ft
  Engine used: 1 times
  Boosters used: 3 times
So, a score of 86.5 in the new system.
plaidfuji1 reply#
I was trying the same and this is super impressive… only 1 main engine fire??? I think this is actually part of the constraints of the real world landing problem.
Dave_Rosenthal#
Yeah, first thing I did was to try to get a feel for when I needed to hit the main engine. Executing a landing with 1 or 2 fires I can do with some regularity. Getting the boosters to 1 or 2 is very hard due to initial conditions, but 3 to 5 is also somewhat doable. All of it coming together for a 90 point landing involved some luck for sure.
boomlinde#
I like this kind of game, and this is perfect for a short diversion! This is the best I can muster for now:

    Very nice landing, amazing

    Score: 90.1 point landing
    Speed: 2.8mph
    Angle: 0.4°
    Time: 9 seconds
    Flips: 0
    Max speed: 38.7mph
    Max height: 240ft
    Engine used: 10 times
    Boosters used: 10 times
    https://ehmorris.com/lander/

Load more comments