/moon-lander-game

A Moon Lander Game in JavaScript

Primary LanguageJavaScriptMIT LicenseMIT

Moon Lander Game in JavaScript

This is an implementation of a Moon Lander Game in JavaScript. It recreates the basic experience of the classic games of old and was done as a small instructive project only. A Node-JS static page is provided to view the game, though it is run only on the client-side. As such any backend could be used. The game itself can be found in the public folder. The instructions below assume you wish to go ahead and use Node-JS.

This is the accompying code to thecoderover post: Moon Lander Game

Download

git clone git@github.com:thecoderover/moon_lander_game.git
npm install

Running

node ./app.js
open your browser on '127.0.0.1:8080' to view the game.

Game Instructions

Press the new game button to play the game. A lander will appear, but it is held until the 'down' key is pressed. At this point, you are in control of the lander. Attempt to land safely on the landing pad below. Use the up arrow key to fire the engines and the left and right ones to turn the lander.Press the new game button to play the game. A lander will appear, but it is held until the 'down' key is pressed. At this point you are in control of the lander. Attempt to land safely on the landing pad below. Use the up arrow key to fire the engines and the left and right ones to turn the lander. The game ends when you either land smoothly, crash or fly offscreen. If you are going too fast or your lander is not sufficiently level then warning lights will appear. Good Luck!

License

MIT