Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Moon Rover Run

Moon Rover Run is a browser-based 2D hill-climb driving game with a neon lunar theme. It is built with plain HTML, CSS, and JavaScript using the Canvas API, so it runs without any build step, package install, or external game engine.

This project is an original side-scrolling hill-driving game with its own rover theme, UI styling, terrain generation, and gameplay tuning.

Gameplay

Drive a lunar rover across uneven glowing terrain, collect energy crystals, grab fuel canisters, and keep the rover balanced as long as possible.

The run ends when:

  • the pilot canopy hits the ground
  • the rover runs out of fuel and stalls

Features

  • original lunar sci-fi theme
  • procedural terrain generation for endless runs
  • physics-style axle and wheel simulation
  • fuel system with pickups
  • crystal collection and distance tracking
  • best-distance persistence with localStorage
  • keyboard controls for desktop
  • touch controls for mobile
  • no dependencies and no build tools required

Controls

Desktop

  • W or Arrow Up: accelerate
  • S or Arrow Down: brake or reverse
  • A or Arrow Left: tilt left
  • D or Arrow Right: tilt right
  • Space: restart after game over

Mobile

Use the on-screen touch buttons for left tilt, brake, drive, and right tilt.

Tech Stack

  • HTML5
  • CSS3
  • Vanilla JavaScript
  • Canvas 2D API

Project Structure

.
|-- index.html
|-- styles.css
|-- game.js
|-- README.md
|-- REPOSITORY_INFO.md
`-- LICENSE

Run Locally

Because this is a static project, you can run it in either of these ways:

  1. Open index.html directly in a browser.
  2. Serve the folder with any static server if you prefer a local URL.

Example:

python -m http.server 8080

Then open http://localhost:8080.

Deploy Options

This project can be deployed easily on static hosting platforms such as:

  • GitHub Pages
  • Netlify
  • Vercel
  • Cloudflare Pages

GitHub Pages

  1. Create a new repository.
  2. Upload all files from this folder.
  3. Push to the default branch.
  4. In GitHub, open Settings -> Pages.
  5. Set the source to Deploy from a branch.
  6. Choose the branch and root folder.
  7. Save and wait for the site URL to be generated.

Repository Notes

  • No environment variables are required.
  • No package manager is required.
  • No asset pipeline is required.
  • The game stores only the best distance in browser localStorage.

Browser Support

Works best in modern browsers that support:

  • HTML5 Canvas
  • requestAnimationFrame
  • localStorage
  • Pointer events for touch input

Recommended browsers:

  • Chrome
  • Edge
  • Firefox
  • Safari

Originality Note

Moon Rover Run is designed as an original hill-climb-style game with a unique theme and presentation. If you publish it, describe it as an original lunar driving game inspired by the side-scrolling hill-driving genre rather than as a direct copy of any existing commercial game.

License

This repository currently includes the MIT License. You can change it later if you want different publishing terms.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /