Files
blackroad-metaverse/PANGEA_README.md
Alexa Louise 67ba4561cd Add Pangea Earth metaverse - complete prehistoric experience
This commit adds a geologically accurate, interactive recreation of Earth
during the Pangea supercontinent era (252 million years ago) with extensive
scientific detail and engaging features.

CORE SYSTEMS (10 files, 6,254 lines, 199KB):

1. pangea-earth.js (1,200 lines) - Geologically accurate terrain generation
   - C-shaped Pangea landmass with realistic coastlines
   - 9 biomes: Tropical Rainforest, Arid Interior, Appalachian-Caledonian
     Highlands, Gondwana Polar Forest, Coastal Wetlands, Volcanic Provinces,
     Panthalassa Ocean, Tethys Sea, Shallow Epicontinental Sea
   - Multi-scale Perlin noise heightmap generation
   - 30+ period-appropriate flora species
   - Chunk-based infinite terrain loading

2. pangea-creatures.js (1,400 lines) - AI-driven animated prehistoric life
   - 8 creature types: Lystrosaurus, Dimetrodon, Coelophysis, Cynognathus,
     Temnospondyl, Pterosaur, Plesiosaur, Ichthyosaur
   - 10 autonomous behaviors: wander, hunt, graze, flee, swim, fly, sleep,
     drink, socialize, territorial
   - Full procedural animations: walking legs, wing flapping, tail swaying,
     flipper swimming, neck undulation
   - Energy/hunger state management

3. pangea-weather.js (800 lines) - Dynamic weather and day/night cycles
   - 8 weather types: clear, rain, storm, snow, sandstorm, volcanic ash,
     fog, mist
   - Complete 24-hour day/night cycle (10 min real = 24 hrs game)
   - Dynamic sun/moon positioning with realistic shadows
   - Sky color transitions (night → dawn → day → dusk)
   - 2,000-3,000 particles per weather system

4. pangea-volcanoes.js (900 lines) - Volcanic eruption simulation
   - 5 active volcanoes in Siberian Traps province
   - 3 eruption types: effusive, explosive, strombolian
   - Lava fountains (500 particles), ash clouds (1,000 particles)
   - Steam vents, volcanic lightning
   - Lava flows with realistic cooling
   - Magma pressure buildup system

5. pangea-time-travel.js (500 lines) - Travel through geological history
   - 5 time periods: Early Permian (299 Ma), Late Permian (252 Ma),
     Early Triassic (251 Ma), Late Triassic (201 Ma), Early Jurassic (175 Ma)
   - Period-specific atmosphere (CO2 levels, temperature, sky color)
   - 2 mass extinction events: P-T extinction (96% loss), T-J extinction (76% loss)
   - Dynamic fauna/flora updates per period
   - Time portal visual effects

6. pangea-sound.js (450 lines) - Procedural audio using Web Audio API
   - Environmental: wind, rain, thunder, ocean waves
   - Geological: volcanic rumbles, earthquake sounds, meteor impacts
   - Biological: creature roars (large/small)
   - All sounds procedurally generated (no external audio files)

7. pangea-events.js (550 lines) - Catastrophic geological events
   - Earthquake system: ground shaking, camera shake, dust clouds, ground cracks
   - Meteor impact system: falling meteors, craters, shockwaves, flash
   - Distance-based intensity calculations
   - Random event triggering (30-90 second intervals)

8. pangea-maximum.html (400 lines) - ULTIMATE experience
   - Neon-styled UI with time travel controls
   - Real-time stats panel (creatures, volcanoes, CO2, temperature)
   - Volcano alerts, loading screen
   - All 7 systems integrated

9. pangea-ultimate.html (600 lines) - Enhanced experience
   - Comprehensive HUD with biome info
   - Creature spawning controls
   - Weather controls

10. pangea.html (450 lines) - Basic exploration version
    - Core terrain and biome features
    - Simple exploration interface

TECHNICAL STACK:
- Three.js r160 - 3D rendering
- Perlin noise - Procedural generation
- Web Audio API - Sound synthesis
- PointerLockControls - First-person camera
- Vertex coloring - Biome-specific terrain
- Shadow mapping - PCF soft shadows (2048x2048)

SCIENTIFIC ACCURACY:
- Geologically accurate Pangea shape
- Period-appropriate flora/fauna
- Realistic climate models (CO2, temperature, sea level)
- Actual extinction event data
- Siberian Traps volcanic province
- Appalachian-Caledonian mountain range
- Tethys Sea and Panthalassa Ocean

FEATURES:
 50+ animated creatures with AI behaviors
 9 distinct biomes with unique flora
 8 dynamic weather types with particles
 24-hour day/night cycle
 5 active volcanoes with 3 eruption types
 Time travel through 160 million years (5 periods)
 Procedural sound system (no audio files)
 Earthquake and meteor impact events
 Random catastrophic events
 Real-time stats and HUD
 First-person exploration controls

CONTROLS:
- WASD - Move
- Mouse - Look around
- Space/Shift - Fly up/down
- Shift (hold) - Sprint
- T - Toggle time speed
- E - Trigger volcano eruption
- Click - Lock controls

Ready to deploy to Cloudflare Pages or serve locally.

🦕 🌋   🌊 💥 🔊

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-22 22:45:22 -06:00

9.2 KiB

PANGEA EARTH — Realistic Prehistoric Metaverse

A geologically accurate, scientifically-grounded recreation of Earth's Pangea supercontinent during the Late Permian period (~252 million years ago).

🌍 Features

Geological Accuracy

  • Realistic Continental Shape: C-shaped Pangea landmass based on paleontological research
  • Panthalassa Ocean: Vast global ocean surrounding the supercontinent
  • Tethys Sea: Warm tropical sea cutting into eastern Pangea
  • Mountain Ranges:
    • Appalachian-Caledonian Highlands (eroding ancient mountains)
    • Central Pangean Mountains (interior mountain chain)
  • Volcanic Provinces: Siberian Traps flood basalts (P-T extinction cause)

Climate Zones

  • Polar Regions (>60° latitude): Cold Glossopteris forests
  • Temperate Zones (30-60° latitude): Mixed forests
  • Subtropical (15-30° latitude): Transitional zones
  • Tropical Equatorial (<15° latitude): Dense rainforests along Tethys
  • Continental Interior: Massive arid mega-desert

9 Realistic Biomes

LAND BIOMES

  1. Tropical Rainforest — Dense forests near Tethys coastline

    • Glossopteris, tree ferns, cycads, conifers
    • Dimetrodon, Lystrosaurus, early dinosaurs
  2. Arid Interior Desert — Pangean mega-desert (continental interior)

    • Drought-adapted conifers, xerophytic ferns
    • Scutosaurus, kannemeyeriids, therapsids
  3. Appalachian-Caledonian Highlands — Eroding mountain chain

    • Mountain conifers, lycophytes, hardy cycads
    • Mountain therapsids, cynognathus, early archosaurs
  4. Gondwana Polar Forest — Southern cold-adapted forests

    • Glossopteris (dominant), polar ferns, seed ferns
    • Lystrosaurus, thrinaxodon, polar insects
  5. Coastal Wetlands — Swamps and deltas along Tethys Sea

    • Horsetails, wetland ferns, mangrove-like conifers
    • Temnospondyls (giant amphibians), phytosaurs, early crocodilians
  6. Volcanic Provinces — Siberian Traps lava fields

    • Dead forests, pioneer lichens, hardy ferns
    • Extinction survivors (post P-T event)

MARINE BIOMES

  1. Panthalassa Ocean — Deep global ocean

    • Ammonites, ichthyosaurs, plesiosaurs, sharks, trilobites
    • Depth: -50 to -200+ units
  2. Tethys Sea — Warm tropical shallow sea

    • Reef fish, nothosaurs, placodonts, marine crocodiles
    • Coral reefs, atolls, lagoons
  3. Shallow Epicontinental Sea — Periodically flooded low areas

    • Horseshoe crabs, sea urchins, bottom feeders
    • Tidal zones, sand bars, estuaries

Period-Appropriate Species

Flora (30+ species)

  • Permian Dominant: Glossopteris (tongue-leaf tree ferns)
  • Ferns: Tree ferns, seed ferns, polar ferns
  • Early Seed Plants: Cycads, early conifers
  • Primitive: Horsetails, lycophytes, club mosses
  • Lichens: Pioneer species in harsh environments

Fauna (40+ species)

Synapsids (mammal-like reptiles):

  • Dimetrodon (iconic sail-back predator)
  • Lystrosaurus (P-T extinction survivor, dominant herbivore)
  • Cynognathus (dog-toothed predator)
  • Thrinaxodon (early cynodont)
  • Various therapsids

Early Archosaurs & Dinosaurs:

  • Coelophysis (early theropod dinosaur)
  • Plateosaurus (early sauropod)
  • Proterosuchids (early archosaurs)
  • Postosuchus (large Triassic predator)

Marine Reptiles:

  • Ichthyosaurs (dolphin-like)
  • Plesiosaurs (long-necked)
  • Nothosaurs (semi-aquatic predators)
  • Placodonts (shell-crushers)
  • Phytosaurs (crocodile-like)

Amphibians:

  • Temnospondyls (giant amphibians)

Invertebrates:

  • Trilobites (last survivors)
  • Ammonites (coiled cephalopods)
  • Giant dragonflies (Meganeura)
  • Early beetles
  • Sea scorpions

🎮 Controls

Action Key
Move Forward W
Move Backward S
Strafe Left A
Strafe Right D
Fly Up SPACE
Fly Down SHIFT
Sprint SHIFT (hold while moving)
Look Around MOUSE
Enable Controls CLICK on canvas

🚀 Running Locally

Quick Start

cd /Users/alexa/blackroad-metaverse
python3 -m http.server 8000

Then open: http://localhost:8000/pangea.html

Using Live Server (VS Code)

  1. Install "Live Server" extension
  2. Right-click pangea.html
  3. Select "Open with Live Server"

📁 File Structure

blackroad-metaverse/
├── pangea-earth.js       # Core terrain generation engine (1200+ lines)
│   ├── PangeaTerrainGenerator class
│   ├── 9 biome definitions with climate data
│   ├── Flora generation (8 species types)
│   ├── Fauna generation (20+ creature models)
│   └── Geological features (mountains, volcanoes, oceans)
│
├── pangea.html           # Main demo page (450 lines)
│   ├── Full 3D scene setup
│   ├── First-person controls
│   ├── Real-time biome detection
│   ├── UI overlays (biome info, species lists)
│   └── Responsive design
│
└── PANGEA_README.md      # This file

🛠️ Technical Details

Terrain Generation

  • Chunk-based loading: 100x100 unit chunks
  • High resolution: 64x64 vertices per chunk
  • Multi-octave Perlin noise: 3 layers for natural variation
  • Vertex coloring: Biome-specific ground colors
  • Dynamic LOD: Chunks load/unload based on camera position

Rendering

  • Engine: Three.js r160 (WebGL 2.0)
  • Lighting: Directional sun, ambient, hemisphere
  • Shadows: Enabled on terrain and objects
  • Fog: Distance-based atmospheric fog
  • Performance: Optimized for 60 FPS

Biome System

  • Latitude-based climate: Polar → Temperate → Tropical
  • Elevation zones: Ocean → Coastal → Lowland → Highland
  • Feature detection: Mountains, volcanoes, coastlines
  • Dynamic UI: Real-time biome info updates

Realism Features

  • Geologically accurate landmass shape
  • Period-appropriate flora and fauna
  • Climate zones based on paleo-climate research
  • Realistic mountain ranges and ocean depths
  • Volcanic provinces at historically accurate locations

🌐 Deployment to Cloudflare Pages

Option 1: Deploy from GitHub

cd /Users/alexa/blackroad-metaverse
git add pangea-earth.js pangea.html PANGEA_README.md
git commit -m "Add Pangea Earth realistic metaverse

- Geologically accurate Late Permian Pangea supercontinent
- 9 biomes with period-appropriate climate zones
- 50+ species (flora and fauna from 335-175 Ma)
- Realistic terrain: mountains, oceans, volcanoes
- High-performance chunk-based rendering
- Full first-person exploration

🦕 Generated with Claude Code"
git push

Then deploy via Cloudflare Pages dashboard:

  1. Go to Cloudflare Pages
  2. Connect to blackroad-metaverse repo
  3. Build settings: None (static HTML)
  4. Output directory: /
  5. Deploy

Option 2: Direct Upload

cd /Users/alexa/blackroad-metaverse
npx wrangler pages deploy . --project-name=pangea-earth

Custom Domain

After deployment, add custom domain in Cloudflare:

  • pangea.blackroad.io
  • earth.blackroad.io
  • Or any preferred subdomain

📊 Statistics

  • Total Code: ~1,650 lines
    • pangea-earth.js: 1,200 lines
    • pangea.html: 450 lines
  • Biomes: 9 unique environments
  • Flora Species: 30+ types
  • Fauna Species: 40+ creatures
  • Geological Features: 4 major (mountains, volcanoes, oceans, coastlines)
  • Climate Zones: 4 (polar, temperate, subtropical, tropical)
  • Time Periods: Permian, Triassic, Jurassic (~160 My span)

🔬 Scientific Basis

References

  • Late Permian paleogeography (252 Ma)
  • Pangea assembly and breakup timeline
  • Glossopteris flora distribution (Gondwana)
  • Siberian Traps eruption (P-T extinction event)
  • Tethys Sea formation and evolution
  • Therapsid and early dinosaur fossil records

Accuracy

  • Continental shape: Based on plate tectonic reconstructions
  • Mountain ranges: Positioned at collision zones (Laurasia-Gondwana)
  • Climate zones: Derived from paleoclimate models
  • Flora/fauna: Period-appropriate species from fossil record
  • Ocean depths: Realistic Panthalassa bathymetry

🎯 Future Enhancements

Phase 1: Enhanced Life

  • Animated creatures with AI behaviors
  • Dynamic weather systems (storms, seasons)
  • Flora growth cycles
  • Food chains and ecosystems

Phase 2: Time Travel

  • Multiple time periods (Early Permian → Early Jurassic)
  • Continental drift animation
  • Mass extinction events (P-T boundary)
  • Evolution of species over time

Phase 3: Multiplayer

  • Multi-user exploration
  • Agent integration (AI dinosaurs)
  • Educational tours and quests
  • Scientific data visualization

Phase 4: Scientific Tools

  • Fossil discovery mechanic
  • Climate data visualization
  • Plate tectonic simulator
  • Educational overlay mode

📝 Notes

  • This is a scientifically-informed artistic recreation, not a 100% accurate simulation
  • Species placements are representative, not exhaustive fossil records
  • Terrain is procedurally generated with geological constraints
  • Time period is primarily Late Permian but includes Triassic/Jurassic species for variety

🤖 Created With

Claude Code — AI-powered development assistant Generated: 2025-12-22


"Before the continents drifted apart, there was one land. This is Pangea."