debug
This commit is contained in:
@@ -0,0 +1 @@
|
||||
3cdcda713f0044298f624b7b2f207f14
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
@@ -0,0 +1,2 @@
|
||||
m_EditorVersion: 6000.0.47f1
|
||||
m_EditorVersionWithRevision: 6000.0.47f1 (2ad1ed33fd3b)
|
||||
@@ -0,0 +1,30 @@
|
||||
<linker>
|
||||
<assembly fullname="Unity.Addressables, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" preserve="all">
|
||||
<type fullname="UnityEngine.AddressableAssets.Addressables" preserve="all" />
|
||||
</assembly>
|
||||
<assembly fullname="Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" preserve="all">
|
||||
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider" preserve="all" />
|
||||
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider" preserve="all" />
|
||||
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.InstanceProvider" preserve="all" />
|
||||
<type fullname="UnityEngine.ResourceManagement.ResourceProviders.SceneProvider" preserve="all" />
|
||||
</assembly>
|
||||
<assembly fullname="UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<type fullname="UnityEngine.Cubemap" preserve="all" />
|
||||
<type fullname="UnityEngine.GameObject" preserve="all" />
|
||||
<type fullname="UnityEngine.LightmapSettings" preserve="all" />
|
||||
<type fullname="UnityEngine.LODGroup" preserve="all" />
|
||||
<type fullname="UnityEngine.Material" preserve="all" />
|
||||
<type fullname="UnityEngine.Mesh" preserve="all" />
|
||||
<type fullname="UnityEngine.MeshFilter" preserve="all" />
|
||||
<type fullname="UnityEngine.MeshRenderer" preserve="all" />
|
||||
<type fullname="UnityEngine.Object" preserve="all" />
|
||||
<type fullname="UnityEngine.RenderSettings" preserve="all" />
|
||||
<type fullname="UnityEngine.Shader" preserve="all" />
|
||||
<type fullname="UnityEngine.Texture2D" preserve="all" />
|
||||
<type fullname="UnityEngine.Transform" preserve="all" />
|
||||
</assembly>
|
||||
<assembly fullname="UnityEngine.PhysicsModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
|
||||
<type fullname="UnityEngine.BoxCollider" preserve="all" />
|
||||
<type fullname="UnityEngine.MeshCollider" preserve="all" />
|
||||
</assembly>
|
||||
</linker>
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
d2b8dadb5d3726c8b5097d0f4013b302
|
||||
@@ -0,0 +1 @@
|
||||
{"m_buildTarget":"WebGL","m_SettingsHash":"ac6ac98dfeb82559d48a5066349bccd9","m_CatalogLocations":[{"m_Keys":["AddressablesMainContentCatalog"],"m_InternalId":"{UnityEngine.AddressableAssets.Addressables.RuntimePath}/catalog.bin","m_Provider":"UnityEngine.AddressableAssets.ResourceProviders.ContentCatalogProvider","m_Dependencies":[],"m_ResourceType":{"m_AssemblyName":"Unity.Addressables, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null","m_ClassName":"UnityEngine.AddressableAssets.ResourceLocators.ContentCatalogData"},"SerializedData":[]}],"m_LogResourceManagerExceptions":true,"m_ExtraInitializationData":[],"m_DisableCatalogUpdateOnStart":false,"m_IsLocalCatalogInBundle":false,"m_CertificateHandlerType":{"m_AssemblyName":"","m_ClassName":""},"m_AddressablesVersion":"2.4.6","m_maxConcurrentWebRequests":3,"m_CatalogRequestsTimeout":0}
|
||||
@@ -0,0 +1,45 @@
|
||||
com.unity.addressables@2.4.6
|
||||
com.unity.ai.navigation@2.0.8
|
||||
com.unity.collab-proxy@2.7.1
|
||||
com.unity.connect.share@4.2.3
|
||||
com.unity.feature.development@1.0.2
|
||||
com.unity.multiplayer.center@1.0.0
|
||||
com.unity.probuilder@6.0.5
|
||||
com.unity.render-pipelines.universal@17.0.4
|
||||
com.unity.test-framework@1.5.1
|
||||
com.unity.timeline@1.8.7
|
||||
com.unity.ugui@2.0.0
|
||||
jp.keijiro.pcx@1.0.1
|
||||
com.unity.modules.accessibility@1.0.0
|
||||
com.unity.modules.ai@1.0.0
|
||||
com.unity.modules.androidjni@1.0.0
|
||||
com.unity.modules.animation@1.0.0
|
||||
com.unity.modules.assetbundle@1.0.0
|
||||
com.unity.modules.audio@1.0.0
|
||||
com.unity.modules.cloth@1.0.0
|
||||
com.unity.modules.director@1.0.0
|
||||
com.unity.modules.imageconversion@1.0.0
|
||||
com.unity.modules.imgui@1.0.0
|
||||
com.unity.modules.jsonserialize@1.0.0
|
||||
com.unity.modules.particlesystem@1.0.0
|
||||
com.unity.modules.physics@1.0.0
|
||||
com.unity.modules.physics2d@1.0.0
|
||||
com.unity.modules.screencapture@1.0.0
|
||||
com.unity.modules.terrain@1.0.0
|
||||
com.unity.modules.terrainphysics@1.0.0
|
||||
com.unity.modules.tilemap@1.0.0
|
||||
com.unity.modules.ui@1.0.0
|
||||
com.unity.modules.uielements@1.0.0
|
||||
com.unity.modules.umbra@1.0.0
|
||||
com.unity.modules.unityanalytics@1.0.0
|
||||
com.unity.modules.unitywebrequest@1.0.0
|
||||
com.unity.modules.unitywebrequestassetbundle@1.0.0
|
||||
com.unity.modules.unitywebrequestaudio@1.0.0
|
||||
com.unity.modules.unitywebrequesttexture@1.0.0
|
||||
com.unity.modules.unitywebrequestwww@1.0.0
|
||||
com.unity.modules.vehicles@1.0.0
|
||||
com.unity.modules.video@1.0.0
|
||||
com.unity.modules.vr@1.0.0
|
||||
com.unity.modules.wind@1.0.0
|
||||
com.unity.modules.xr@1.0.0
|
||||
com.unity.template.fps@5.0.1
|
||||
@@ -0,0 +1,158 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-us">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Déroc Virtual 3D</title>
|
||||
<style>
|
||||
html, body {
|
||||
background: #000;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: visible;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: Arial, sans-serif;
|
||||
color: white;
|
||||
}
|
||||
#container {
|
||||
background: transparent !important;
|
||||
position: absolute;
|
||||
}
|
||||
#container canvas {
|
||||
position: absolute;
|
||||
}
|
||||
#container canvas[data-pixel-art="true"] {
|
||||
image-rendering: pixelated;
|
||||
-ms-interpolation-mode: nearest-neighbor;
|
||||
}
|
||||
#loading-box {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
text-align: center;
|
||||
z-index: 1000;
|
||||
}
|
||||
#logo {
|
||||
max-width: 600px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
#progress-container {
|
||||
width: 300px;
|
||||
height: 20px;
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
margin: 0 auto;
|
||||
}
|
||||
#progress-bar {
|
||||
height: 100%;
|
||||
width: 0%;
|
||||
background-color: #4caf50;
|
||||
transition: width 0.1s ease;
|
||||
}
|
||||
#progress-info {
|
||||
margin-top: 10px;
|
||||
font-size: 14px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="container">
|
||||
<canvas id="game-canvas" data-pixel-art=""></canvas>
|
||||
|
||||
<!-- Logo et barre de chargement -->
|
||||
<div id="loading-box">
|
||||
<img id="logo" src="Logo.png" alt="Logo">
|
||||
<div id="progress-container">
|
||||
<div id="progress-bar"></div>
|
||||
</div>
|
||||
<div id="progress-info">Chargement... 0%</div>
|
||||
</div>
|
||||
|
||||
<script src="Build/Build WebGL.loader.js"></script>
|
||||
<script>
|
||||
const canvas = document.querySelector("#game-canvas");
|
||||
const progressBar = document.getElementById("progress-bar");
|
||||
const progressInfo = document.getElementById("progress-info");
|
||||
const loadingBox = document.getElementById("loading-box");
|
||||
|
||||
let lastTime = performance.now();
|
||||
let lastProgress = 0;
|
||||
|
||||
const config = {
|
||||
dataUrl: "Build/Build WebGL.data",
|
||||
frameworkUrl: "Build/Build WebGL.framework.js",
|
||||
codeUrl: "Build/Build WebGL.wasm",
|
||||
streamingAssetsUrl: "StreamingAssets",
|
||||
companyName: "GUCEM _ Clan des Tritons",
|
||||
productName: "Déroc Virtual 3D",
|
||||
productVersion: "2025.06.02"
|
||||
};
|
||||
|
||||
let scaleToFit;
|
||||
try {
|
||||
scaleToFit = !!JSON.parse("");
|
||||
} catch (e) {
|
||||
scaleToFit = true;
|
||||
}
|
||||
|
||||
function progressHandler(progress) {
|
||||
const percent = Math.floor(progress * 100);
|
||||
const now = performance.now();
|
||||
const deltaTime = (now - lastTime) / 1000; // en secondes
|
||||
const deltaProgress = progress - lastProgress;
|
||||
const speed = deltaProgress > 0 ? (deltaProgress * 100 / deltaTime).toFixed(2) : "0";
|
||||
|
||||
progressBar.style.width = percent + "%";
|
||||
// <!-- progressInfo.textContent = `Chargement... ${percent}% (${speed}%/s)`; -->
|
||||
progressInfo.textContent = `Chargement... ${percent}%`;
|
||||
|
||||
lastTime = now;
|
||||
lastProgress = progress;
|
||||
|
||||
if (percent >= 100) {
|
||||
// Masquer le logo et la barre après chargement
|
||||
setTimeout(() => loadingBox.style.display = "none", 500);
|
||||
}
|
||||
}
|
||||
|
||||
function onResize() {
|
||||
const container = canvas.parentElement;
|
||||
let w, h;
|
||||
if (scaleToFit) {
|
||||
w = window.innerWidth;
|
||||
h = window.innerHeight;
|
||||
const r = 540 / 960;
|
||||
if (w * r > h) w = Math.min(w, Math.ceil(h / r));
|
||||
h = Math.floor(w * r);
|
||||
} else {
|
||||
w = 960;
|
||||
h = 540;
|
||||
}
|
||||
container.style.width = canvas.style.width = w + "px";
|
||||
container.style.height = canvas.style.height = h + "px";
|
||||
container.style.top = Math.floor((window.innerHeight - h) / 2) + "px";
|
||||
container.style.left = Math.floor((window.innerWidth - w) / 2) + "px";
|
||||
}
|
||||
|
||||
createUnityInstance(canvas, config, progressHandler).then(function (instance) {
|
||||
canvas = instance.Module.canvas;
|
||||
onResize();
|
||||
});
|
||||
|
||||
window.addEventListener('resize', onResize);
|
||||
onResize();
|
||||
|
||||
if (/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)) {
|
||||
const meta = document.createElement('meta');
|
||||
meta.name = 'viewport';
|
||||
meta.content = 'width=device-width, height=device-height, initial-scale=1.0, user-scalable=no, shrink-to-fit=yes';
|
||||
document.getElementsByTagName('head')[0].appendChild(meta);
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user