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.
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
- 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
WorArrow Up: accelerateSorArrow Down: brake or reverseAorArrow Left: tilt leftDorArrow Right: tilt rightSpace: restart after game over
Use the on-screen touch buttons for left tilt, brake, drive, and right tilt.
- HTML5
- CSS3
- Vanilla JavaScript
- Canvas 2D API
.
|-- index.html
|-- styles.css
|-- game.js
|-- README.md
|-- REPOSITORY_INFO.md
`-- LICENSE
Because this is a static project, you can run it in either of these ways:
- Open
index.htmldirectly in a browser. - Serve the folder with any static server if you prefer a local URL.
Example:
python -m http.server 8080
Then open http://localhost:8080.
This project can be deployed easily on static hosting platforms such as:
- GitHub Pages
- Netlify
- Vercel
- Cloudflare Pages
- Create a new repository.
- Upload all files from this folder.
- Push to the default branch.
- In GitHub, open
Settings -> Pages. - Set the source to
Deploy from a branch. - Choose the branch and root folder.
- Save and wait for the site URL to be generated.
- 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.
Works best in modern browsers that support:
- HTML5 Canvas
requestAnimationFramelocalStorage- Pointer events for touch input
Recommended browsers:
- Chrome
- Edge
- Firefox
- Safari
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.
This repository currently includes the MIT License. You can change it later if you want different publishing terms.