Code Monkey home page Code Monkey logo

lander's Introduction

Lander

Lander screenshot

My take on the classical Lunar Lander game. The objective of the game is to find a flat spot and land on the surface of Europa (moon of Jupiter).

The landing is successful if at least half of the lander is located on flat surface. Also horizontal and vertical velocity needs to be within allowed limits (depends on difficulty). The lander is affected by gravity and wind which are slightly different for each game. The lander is controlled by firing the main thruster to increase vertical velocity and side thrusters to increase horizontal velocity.

The game has three difficulty levels and also a mode where the computer plays the game.

Running

Install .NET SDK and SDL 2 libraries. For example on Arch Linux:

$ pacman -S dotnet-sdk sdl2 sdl2_ttf

Then run the game:

$ dotnet run

Keys

  • F1: New game (easy)
  • F2: New game (normal)
  • F3: New game (hard)
  • F4: New game (cpu)
  • s or ↓: Fire main thruster (move up)
  • a or ←: Fire left thruster (move right)
  • d or →: Fire right thruster (move left)

lander's People

Contributors

peklaiho avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.