update: reorganize public assets
This commit is contained in:
BIN
Binary file not shown.
@@ -263,7 +263,7 @@ export function Ebike({ position }: EbikeProps): React.JSX.Element {
|
|||||||
height={0.8}
|
height={0.8}
|
||||||
startPos={gpsStartPos}
|
startPos={gpsStartPos}
|
||||||
destPos={destPos}
|
destPos={destPos}
|
||||||
mapImageUrl="/assets/gps/map_background.png"
|
mapImageUrl="/assets/world/gps/map_background.png"
|
||||||
worldBounds={{
|
worldBounds={{
|
||||||
minX: -166,
|
minX: -166,
|
||||||
maxX: 163,
|
maxX: 163,
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import type {
|
|||||||
RepairMissionId,
|
RepairMissionId,
|
||||||
} from "@/types/gameplay/repairMission";
|
} from "@/types/gameplay/repairMission";
|
||||||
|
|
||||||
const REPAIR_INTERACT_UI_PATH = "/assets/UI/interagir.webm";
|
const REPAIR_INTERACT_UI_PATH = "/assets/world/UI/interagir.webm";
|
||||||
const REPAIR_BROKEN_UI_PATH = "/assets/UI/cassé.webm";
|
const REPAIR_BROKEN_UI_PATH = "/assets/world/UI/cassé.webm";
|
||||||
|
|
||||||
const DEFAULT_REPAIR_CASE = {
|
const DEFAULT_REPAIR_CASE = {
|
||||||
position: [0, 0.4, 1.8],
|
position: [0, 0.4, 1.8],
|
||||||
@@ -21,7 +21,7 @@ export const REPAIR_MISSIONS: Record<RepairMissionId, RepairMissionConfig> = {
|
|||||||
"Repair the damaged cooling module before relaunching the bike",
|
"Repair the damaged cooling module before relaunching the bike",
|
||||||
modelPath: "/models/ebike/model.gltf",
|
modelPath: "/models/ebike/model.gltf",
|
||||||
modelScale: 0.3,
|
modelScale: 0.3,
|
||||||
stageUiPath: "/assets/UI/ebike.webm",
|
stageUiPath: "/assets/world/UI/ebike.webm",
|
||||||
interactUiPath: REPAIR_INTERACT_UI_PATH,
|
interactUiPath: REPAIR_INTERACT_UI_PATH,
|
||||||
brokenUiPath: REPAIR_BROKEN_UI_PATH,
|
brokenUiPath: REPAIR_BROKEN_UI_PATH,
|
||||||
case: DEFAULT_REPAIR_CASE,
|
case: DEFAULT_REPAIR_CASE,
|
||||||
@@ -59,7 +59,7 @@ export const REPAIR_MISSIONS: Record<RepairMissionId, RepairMissionConfig> = {
|
|||||||
description:
|
description:
|
||||||
"Restore the pylon lamp relay and damaged panel before reconnecting the grid",
|
"Restore the pylon lamp relay and damaged panel before reconnecting the grid",
|
||||||
modelPath: "/models/pylone/model.gltf",
|
modelPath: "/models/pylone/model.gltf",
|
||||||
stageUiPath: "/assets/UI/centrale.webm",
|
stageUiPath: "/assets/world/UI/centrale.webm",
|
||||||
interactUiPath: REPAIR_INTERACT_UI_PATH,
|
interactUiPath: REPAIR_INTERACT_UI_PATH,
|
||||||
brokenUiPath: REPAIR_BROKEN_UI_PATH,
|
brokenUiPath: REPAIR_BROKEN_UI_PATH,
|
||||||
case: DEFAULT_REPAIR_CASE,
|
case: DEFAULT_REPAIR_CASE,
|
||||||
@@ -104,7 +104,7 @@ export const REPAIR_MISSIONS: Record<RepairMissionId, RepairMissionConfig> = {
|
|||||||
description:
|
description:
|
||||||
"Stabilize the irrigation loop and humidity sensor before restarting the farm",
|
"Stabilize the irrigation loop and humidity sensor before restarting the farm",
|
||||||
modelPath: "/models/fermeverticale/model.gltf",
|
modelPath: "/models/fermeverticale/model.gltf",
|
||||||
stageUiPath: "/assets/UI/laferme.webm",
|
stageUiPath: "/assets/world/UI/laferme.webm",
|
||||||
interactUiPath: REPAIR_INTERACT_UI_PATH,
|
interactUiPath: REPAIR_INTERACT_UI_PATH,
|
||||||
brokenUiPath: REPAIR_BROKEN_UI_PATH,
|
brokenUiPath: REPAIR_BROKEN_UI_PATH,
|
||||||
case: DEFAULT_REPAIR_CASE,
|
case: DEFAULT_REPAIR_CASE,
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ function CameraManager({
|
|||||||
const dataUrl = gl.domElement.toDataURL("image/png");
|
const dataUrl = gl.domElement.toDataURL("image/png");
|
||||||
const a = document.createElement("a");
|
const a = document.createElement("a");
|
||||||
a.href = dataUrl;
|
a.href = dataUrl;
|
||||||
a.download = "/assets/gps/map_background.png";
|
a.download = "map_background.png";
|
||||||
a.click();
|
a.click();
|
||||||
};
|
};
|
||||||
return () => {
|
return () => {
|
||||||
|
|||||||
@@ -275,7 +275,7 @@ export function TestMap({ onOctreeReady }: TestMapProps): React.JSX.Element {
|
|||||||
height={4}
|
height={4}
|
||||||
startPos={{ x: 10, y: 0, z: -10 }}
|
startPos={{ x: 10, y: 0, z: -10 }}
|
||||||
destPos={{ x: -40, y: 0, z: 30 }}
|
destPos={{ x: -40, y: 0, z: 30 }}
|
||||||
mapImageUrl="/assets/gps/map_background.png"
|
mapImageUrl="/assets/world/gps/map_background.png"
|
||||||
worldBounds={{
|
worldBounds={{
|
||||||
minX: -166,
|
minX: -166,
|
||||||
maxX: 163,
|
maxX: 163,
|
||||||
|
|||||||
Reference in New Issue
Block a user