diff --git a/Terrain-and-World.md b/Terrain-and-World.md new file mode 100644 index 0000000..ff2c988 --- /dev/null +++ b/Terrain-and-World.md @@ -0,0 +1,50 @@ +# Terrain & World + +> **Legend** +> - βœ… Implemented β€” exists in the current codebase +> - πŸ—ΊοΈ Planned β€” design exists but not yet implemented + +--- + +## Tile Types βœ… + +| Tile | ID | Passable | Notes | +|------|----|----------|-------| +| DEEP_WATER | 0 | No | | +| SHALLOW_WATER | 1 | No | | +| SAND | 2 | Yes | | +| GRASS | 3 | Yes | Default terrain | +| DARK_GRASS | 4 | Yes | After tree felled; reverts to GRASS after 5 min | +| FOREST | 5 | No | Contains tree resource (70% spawn chance) | +| ROCK | 6 | No | Contains rock resource (50% spawn chance) | +| FLOOR | 7 | Yes | Built by player | +| WALL | 8 | No | Built by player | +| TILLED_SOIL | 9 | Yes | Ready for planting | +| WATERED_SOIL | 10 | Yes | 2Γ— crop growth speed | + +**Tile recovery:** DARK_GRASS β†’ GRASS after **300,000 ms (5 min)**. Recovery is cancelled if a tree seedling is planted on the tile. + +--- + +## World Constants βœ… + +| Constant | Value | +|----------|-------| +| Tile size | 32 px | +| World size | 512 Γ— 512 tiles (16,384 Γ— 16,384 px) | +| Player speed | 180 px/s | +| Camera lerp | 0.09 | +| Autosave interval | 30,000 ms | + +--- + +## Terrain Generation βœ… + +- Generated procedurally via **Simplex noise** at world creation +- World size: 512 Γ— 512 tiles +- FOREST tiles: **70%** chance to spawn a tree resource (HP 3) +- ROCK tiles: **50%** chance to spawn a rock resource (HP 5) + +--- + +← [[Game Systems Reference]]