Skip to content

Rohankumar2201/mission-mars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 MISSION MARS — You Are the Astronaut

A cinematic, scroll-based interactive experience where you play as an astronaut traveling from Earth to Mars.

License HTML CSS JavaScript Three.js GSAP


✨ Features

Section Experience
🛸 Launch CSS rocket, pre-launch checklist, 3-2-1 countdown with screen shake
🌌 Space Travel Three.js starfield, Earth → Mars scroll animation, live mission stats
⚠️ Challenges 3 timed crisis events — oxygen leak, asteroid, solar flare — with real countdowns
🔥 Landing Atmospheric entry heat, live altitude/speed HUD, parachute deploy
🔴 Mars Base Explorable surface with clickable structures and mission data panels

Tech Highlights

  • Zero build tools — pure HTML, CSS, JS, opens straight from disk
  • GSAP 3 with ScrollTrigger for all scroll-based animations
  • Three.js starfield with mouse parallax and scroll-driven drift
  • Cyberpunk HUD aesthetic — Orbitron font, scanlines, corner brackets
  • Fully responsive — works from 320px mobile to 4K desktop

🚀 Quick Start

git clone https://github.com/yourusername/mission-mars.git
cd mission-mars
open index.html   # macOS
# or just double-click index.html on Windows/Linux

No npm, no webpack, no dependencies to install. It just works.


📁 Project Structure

mission-mars/
├── index.html      # Full HTML structure — 5 sections + HUD + loader
├── styles.css      # ~900 lines — design tokens, all section styles, animations
├── script.js       # ~420 lines — Three.js, GSAP, challenge system, landing logic
├── LICENSE
├── CONTRIBUTING.md
└── README.md

🎮 How to Play

  1. Wait for the loader to complete system checks
  2. Click INITIATE LAUNCH — watch the countdown and rocket liftoff
  3. Scroll down through space — watch Earth shrink and Mars grow
  4. React to challenges — each has a live timer, pick your response
  5. Deploy the parachute when prompted during landing
  6. Explore Mars base — click the habitat, rover, and O₂ tower for data

🛠 Built With


🤝 Contributing

See CONTRIBUTING.md for guidelines. PRs welcome — especially accessibility improvements, mobile polish, and new Mars surface features.


📄 License

MIT — see LICENSE for details. Use it, fork it, ship it.


Made with ☕ and a lot of gsap.to() calls

About

Cinematic scroll-based Mars mission experience — Three.js starfield, GSAP animations, live HUD & timed crisis challenges. Pure HTML/CSS/JS.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors