Feat/map-environment #6

Merged
math-pixel merged 116 commits from feat/map-environment into develop 2026-05-29 00:00:51 +00:00
2 changed files with 13 additions and 1 deletions
Showing only changes of commit 235a38f67b - Show all commits
+12 -1
View File
@@ -1,8 +1,19 @@
import { InstancedMapAsset } from "@/world/map-instancing/InstancedMapAsset";
import { PATH_TILE_MODEL_PATH } from "@/world/paths/pathConfig";
import {
PATH_SYSTEM_ENABLED,
PATH_TILE_MODEL_PATH,
} from "@/world/paths/pathConfig";
import { usePathTileData } from "@/world/paths/usePathTileData";
export function PathSystem(): React.JSX.Element | null {
if (!PATH_SYSTEM_ENABLED) {
return null;
}
return <PathTiles />;
}
function PathTiles(): React.JSX.Element | null {
const pathTiles = usePathTileData();
if (pathTiles.length === 0) {
+1
View File
@@ -1,6 +1,7 @@
import { TERRAIN_COLORS, TERRAIN_TILE_SIZE } from "@/data/world/terrainConfig";
export const PATH_SURFACE_KEY = "chemin";
export const PATH_SYSTEM_ENABLED = false;
export const PATH_TILE_MODEL_PATH = TERRAIN_COLORS.chemin.modelPath;
export const PATH_TILE_SIZE =
TERRAIN_COLORS.chemin.tileSize ?? TERRAIN_TILE_SIZE;