Files
blackroad-metaverse/pangea-creatures.js
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

27 KiB