Phase 3: World generation — procedural tilemap for Catalytic Wastes
- simplex-noise with seeded PRNG (mulberry32) for deterministic generation - Biome data: 8 tile types (scorched earth, cracked ground, ash sand, acid pools, acid shallow, crystals, geysers, mineral veins) - Elevation noise → base terrain; detail noise → geyser/mineral overlays - Canvas-based tileset with per-pixel brightness variation - Phaser tilemap with collision on non-walkable tiles - Camera: WASD movement, mouse wheel zoom (0.5x–3x), world bounds - Minimap: 160x160 canvas overview with viewport indicator - 21 world generation tests passing (95 total) Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"bitecs": "^0.4.0",
|
||||
"phaser": "^3.80.0"
|
||||
"phaser": "^3.80.0",
|
||||
"simplex-noise": "^4.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"happy-dom": "^20.6.1",
|
||||
|
||||
Reference in New Issue
Block a user