Moon Lander

Recommended levellevel
In the late 1970s to early 1980s, when men were men and video games were truly difficult, there was one video game that could be called hardcore among hardcore video games. It was called Lunar Lander. For game first made people suffer in 1979, when these gluttons for punishment put their hard-earned quarters into the coin slot of an Atari arcade machine. After that, they became pilots and took control of a lunar landing module steadily approaching the lunar surface. Consisting of mountains and hills, the Moon's topography wasn't very accommodating. This meant there were hardly any places suitable for a soft landing. The player had to resist the Moon's gravitational pull and descend gently using thrusters. Thrust and acceleration were controlled proportionally. The lander consumed fuel rapidly, and when the fuel ran out, the ship stopped responding to the pilot's actions. At this point, the player could throw more coins into the arcade machine (the ancestor of modern loot boxes!). The game required remarkable patience. Setting the landing module down slowly and on an even keel was incredibly difficult. Basically, the better the pilot lands the module, the more points he or she gets. We invite you to improve yourself and write your own version of Lunar Lander. Our version, which we'll call Moon Lander, will be like the classic game, but the graphics will be better (40 years have passed, after all!). We'll create a nice landing module that you'll need to carefully put on the Moon without hitting any mountains. For a gentle, even landing, we'll use the main engine, which slows descent and provides a little altitude boost. And we'll use the side engines for horizontal movement. Think this is a difficult task? Difficult, but not unbearable. Our team has already provided recommendations and broken the task into steps that a beginning programmer can handle. So be brave!
Comments (10)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Level 17, San Diego, United States
22 October 2020, 22:19
Just a heads up. the code can pass testing and still have a bug that kills you if you exceed safe landing speed mid air. to avoid this make sure to separate the code that checks for collision from the code that checks landing speed. also I found the speed a bit excessive, so I slowed down the rate of increase to speedY += 0.02 and it made it much more reasonable.
Ian De Bie
Level 26, Los Angeles, United States
9 October 2020, 21:56
the other thing that baffles me is that none of my published games ever show the score, but in my ide they do.
Ian De Bie
Level 26, Los Angeles, United States
9 October 2020, 21:53
in my ide the grid is hidden, but the published game shows the grid visible. only way i found to hide it in published game is to change cell color to black
Level 17, San Diego, United States
3 October 2020, 23:55
it keeps crashing without touching anything and only in a second or so.
Agent Smith
Level 38
3 October 2020, 19:06
This task has been completed by 55 students. Which is very strange, since these exercies are totally free.
Rithik Bhat
Level 13, Hartford, United States
6 August 2020, 20:31
I finished all the steps, and everything, but when I press run all it shows me is a blank green screen
Level 35, Kielce, Poland
22 July 2020, 11:50
The setCellColor(int, int, Color) method should not do anything if the method's x or y parameter is outside the field. Which is to do nothing to fix it
Level 35, Kielce, Poland
22 July 2020, 11:42
how to ask a question to a specific level
oscar justine Manuel
Level 0, Makati
12 September 2019, 14:23
i don't know how to play????
Level 3, Saint Louis, France
23 January 2020, 07:40
[Up arrow] = Boost

[Left arrow] = Go to the left

[Right arrow] = Go to the right

[Space] = Start a new game if you die

[Goal] = You have to land gently on the flat surface by using the boost to brake