Feel the greatness of nature. Respect the fragility of life. Leave No Trace.
Cyber Hiking is a browser-based survival simulation game set on the Pacific Crest Trail (PCT) β 2,652 miles of wilderness stretching from the Mexican border to Canada. Manage your resources, brave dynamic weather, make life-or-death decisions, and learn to protect the wilderness through the Leave No Trace philosophy.
- 30+ route nodes based on real PCT landmarks β from Campo to Manning Park
- Resupply stations at actual trail towns (Kennedy Meadows, Mammoth Lakes, Cascade Locksβ¦)
- Key milestones like Forester Pass (13,153 ft) with altitude-based challenges
- Procedurally generated weather: blizzards, thunderstorms, extreme heat, fog, and more
- Weather directly impacts energy cost, health, and mental state
- Gear like raincoats, goggles, and solar chargers mitigate weather penalties
- 12+ items across Gear, Electronics, and Supplies categories
- Equipment actively affects gameplay β GPS reduces getting-lost risk, satellite phone enables emergency rescue, solar charger boosts morale
- Weight management: every ounce matters on a thru-hike
- 20+ random events inspired by real trail scenarios β wildlife encounters, river crossings, equipment failures, fellow hiker interactions
- Your gear influences event outcomes: success boosts and damage reduction based on what you carry
- Every choice has consequences for your health, energy, and LNT score
- Every decision is tracked β campfire placement, waste disposal, wildlife interaction, trail etiquette
- Final LNT grade (A+ to F) reflects your environmental impact
- Learn the 7 LNT principles through gameplay, not lectures
- 10-question quiz covering LNT principles and PCT safety knowledge
- Pass the exam to earn a gameplay bonus (starting LNT boost)
- Educational content sourced from real wilderness ethics guidelines
- Persistent profile tracking total games, completions, deaths, and best records
- Game history with distance, LNT grade, and completion time
- All data stored locally in your browser
- Forced march system: low energy doesn't block you β it costs health
- Satellite phone emergency rescue as a last resort
- Multiple death conditions: dehydration, starvation, exhaustion, exposure
- Realistic resource depletion based on distance, weather, and altitude
https://cyberhiking.vercel.app
git clone https://github.com/DavidGao520/Cyberhiking.git
cd Cyberhiking
npm install
npm run devnpm run build| Layer | Technology |
|---|---|
| Framework | React 18 |
| Build Tool | Vite 4.5 |
| Language | JavaScript (JSX) |
| State Management | React useState + Class-based GameState |
| Persistence | localStorage |
| Deployment | Vercel |
| Styling | Vanilla CSS with responsive design |
Cyber Hiking is built with a dual mission:
-
Feel the wilderness β Through realistic simulation of weather, terrain, and survival mechanics, players experience the raw power and beauty of one of America's greatest trails.
-
Protect the wilderness β The LNT scoring system weaves environmental ethics into every gameplay decision, cultivating awareness that the outdoors is not ours to conquer β it is ours to protect.
This game is not meant to encourage reckless adventure. It aims to help players understand the power of nature and the fragility of human life, inspiring them to participate in outdoor activities scientifically, safely, and responsibly.
src/
βββ App.jsx / App.css # Main app, screens, profile, exam
βββ main.jsx / index.css # Entry point
βββ components/
β βββ MainMenu.jsx/.css # Title screen & navigation
β βββ GameView.jsx/.css # Gameplay UI, progress bar, log
β βββ Shop.jsx/.css # Outfitter / equipment shop
βββ data/
β βββ route.js # PCT route nodes & landmarks
β βββ events.js # Random event definitions
β βββ equipment.js # Gear, electronics, supplies
β βββ weather.js # Weather patterns & effects
β βββ examQuestions.js # LNT theory exam questions
βββ game/
βββ gameState.js # Core game logic & state machine
David Gao β Design, Development & Game Design
- GitHub: @DavidGao520
MIT License β see LICENSE for details.
"The wilderness is not a place to visit. It is home." β Gary Snyder