Compare commits
14 Commits
9187d8d9ef
...
1fb8296bcd
Author | SHA1 | Date | |
---|---|---|---|
1fb8296bcd | |||
1b8e4b2676 | |||
dd8361cf33 | |||
4f20dce37f | |||
eb36acac39 | |||
ebe7c41578 | |||
97172aedf3 | |||
6ddf3b2949 | |||
4722783018 | |||
96d485aabb | |||
d53b6a97c9 | |||
eb5b39529a | |||
af8fdfd30e | |||
2adbecea71 |
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
textures/old/
|
18
index.html
@ -1,19 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<title>Daedalus</title>
|
||||
<meta charset=utf-8 />
|
||||
<title>Daedalus</title>
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" id="favicon"/>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<!-- Import maps polyfill -->
|
||||
<!-- Remove this when import maps will be widely supported -->
|
||||
<script async src="https://unpkg.com/es-module-shims@1.6.3/dist/es-module-shims.js"></script>
|
||||
<script async src="https://cdn.jsdelivr.net/npm/es-module-shims@1.8.3/dist/es-module-shims.min.js"></script>
|
||||
<script type="importmap">
|
||||
{
|
||||
"imports": {
|
||||
"three": "https://unpkg.com/three@0.158/build/three.module.js?module",
|
||||
"three/addons/": "https://unpkg.com/three@0.158/examples/jsm/",
|
||||
"three": "https://cdn.jsdelivr.net/npm/three@0.161.0/build/three.module.min.js",
|
||||
"three/addons/": "https://cdn.jsdelivr.net/npm/three@0.161.0/examples/jsm/",
|
||||
"three-hex-tiling": "https://cdn.jsdelivr.net/npm/three-hex-tiling@0.1.1/dist/index.js"
|
||||
}
|
||||
}
|
||||
@ -143,15 +143,17 @@
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container"></div>
|
||||
<span id="message" class="loading">
|
||||
<div id="loading">
|
||||
<table id="labyTable"></table>
|
||||
<div id="loadingMessage">Construction du labyrinthe : <span id="progress">0</span>%</div>
|
||||
<div>
|
||||
Se déplacer : ↑←↓→, ZQSD ou clic<br/>
|
||||
Sauter : ESPACE<br/>
|
||||
Regarder : Souris
|
||||
</div>
|
||||
<div id="progressCircle" style="--progress: 0deg;">0%</div>
|
||||
</span>
|
||||
</div>
|
||||
<div id="container"></div>
|
||||
<span id="message"></span>
|
||||
|
||||
<script type="module" src="./main.js"></script>
|
||||
</body>
|
||||
|
87
style.css
@ -1,9 +1,47 @@
|
||||
body {
|
||||
margin: 0;
|
||||
background-color: #000;
|
||||
color: #fff;
|
||||
font-family: Georgia, serif;
|
||||
background-color: #041626;
|
||||
font-size: 1.3em;
|
||||
overscroll-behavior: none;
|
||||
cursor: wait;
|
||||
}
|
||||
|
||||
#loading {
|
||||
width: fit-content;
|
||||
color: #2c5c88;
|
||||
font-size: 1.3em;
|
||||
top: 20vh;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#loadingMessage {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
#labyTable {
|
||||
width: 230px;
|
||||
height: 230px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 20vh;
|
||||
margin-bottom: 5vh;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
#labyTable td {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
transition: background-color 1s;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wall {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.ground {
|
||||
background-color: #214464;
|
||||
}
|
||||
|
||||
#container {
|
||||
@ -32,48 +70,7 @@ body {
|
||||
justify-content: center;
|
||||
z-index: 1;
|
||||
color: gray;
|
||||
}
|
||||
|
||||
#message.loading {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
top: 20vh;
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
align-items: center;
|
||||
gap: 5rem;
|
||||
text-align: center;
|
||||
font-size: 1.7em;
|
||||
cursor: progress;
|
||||
}
|
||||
|
||||
#progressCircle {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
border: 4px solid dimgray;
|
||||
border-radius: 50%;
|
||||
font-size: 0;
|
||||
font-size: 3vh;
|
||||
font-weight: 700;
|
||||
font-family: system-ui;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#progressCircle::after {
|
||||
content: "";
|
||||
display: flex;
|
||||
position: absolute;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
top: -4px;
|
||||
left: -4px;
|
||||
border: 4px solid #1da8b7;
|
||||
border-radius: 50%;
|
||||
mask: conic-gradient(black var(--progress), transparent var(--progress));
|
||||
font-family: Times, "Times New Roman", Georgia, serif;
|
||||
}
|
||||
|
||||
#message a {
|
||||
|
BIN
textures/Poly-cobblestone-wall/ao_map.webp
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
textures/Poly-cobblestone-wall/color_map.webp
Normal file
After Width: | Height: | Size: 2.4 MiB |
BIN
textures/Poly-cobblestone-wall/displacement_map.webp
Normal file
After Width: | Height: | Size: 209 KiB |
BIN
textures/Poly-cobblestone-wall/normal_map_opengl.webp
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
textures/Poly-cobblestone-wall/render_map.webp
Normal file
After Width: | Height: | Size: 2.4 MiB |
BIN
textures/Poly-cobblestone-wall/roughness_map.webp
Normal file
After Width: | Height: | Size: 324 KiB |
@ -1,3 +0,0 @@
|
||||
This asset was made with Poly, an AI-generated design asset marketplace that lets you find and create incredibly life-like, detailed, and artistic assets for your next project, in seconds.
|
||||
|
||||
Get started for free at https://withpoly.com
|
Before Width: | Height: | Size: 1.5 MiB |
Before Width: | Height: | Size: 2.2 MiB |
Before Width: | Height: | Size: 497 KiB |
Before Width: | Height: | Size: 1.6 MiB |
Before Width: | Height: | Size: 2.3 MiB |
Before Width: | Height: | Size: 828 KiB |
@ -1,23 +0,0 @@
|
||||
{
|
||||
"prompt_text": "stone retaining wall, extreme fine details",
|
||||
"patch": {
|
||||
"ext": "png",
|
||||
"dtype": "uint8",
|
||||
"width": 512,
|
||||
"height": 512,
|
||||
"url": "https://static-dev.withpoly.com/v3-voronoi/textures/patches/909585e0-8b3f-4659-ae84-03f58ceaaaeb.png",
|
||||
"patch_id": "EbJzaafatu"
|
||||
},
|
||||
"seamless_prompt_text": "stone retaining wall, extreme fine details",
|
||||
"seamless_patch_scale": 0.8,
|
||||
"upscale_prompt_text": "stone retaining wall, extreme fine details",
|
||||
"upscale_resolution": 4096,
|
||||
"is_seamless": true,
|
||||
"pbr_mode": "organic",
|
||||
"pbr_generate_color": true,
|
||||
"pbr_generate_normal": true,
|
||||
"pbr_generate_height": true,
|
||||
"pbr_generate_ao": true,
|
||||
"pbr_generate_roughness": true,
|
||||
"pbr_generate_metallic": false
|
||||
}
|
BIN
textures/Poly-wood/ao_map.webp
Normal file
After Width: | Height: | Size: 372 KiB |
BIN
textures/Poly-wood/color_map.webp
Normal file
After Width: | Height: | Size: 595 KiB |
BIN
textures/Poly-wood/displacement_map.webp
Normal file
After Width: | Height: | Size: 184 KiB |
BIN
textures/Poly-wood/normal_map_opengl.webp
Normal file
After Width: | Height: | Size: 803 KiB |
BIN
textures/Poly-wood/render_map.webp
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
textures/Poly-wood/roughness_map.webp
Normal file
After Width: | Height: | Size: 128 KiB |
BIN
textures/angled-blocks-vegetation/albedo.webp
Normal file
After Width: | Height: | Size: 566 KiB |
BIN
textures/angled-blocks-vegetation/ao-roughness-metalness.png
Normal file
After Width: | Height: | Size: 2.3 MiB |
BIN
textures/angled-blocks-vegetation/ao-roughness-metalness.webp
Normal file
After Width: | Height: | Size: 76 KiB |
BIN
textures/angled-blocks-vegetation/ao.webp
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
textures/angled-blocks-vegetation/height.webp
Normal file
After Width: | Height: | Size: 32 KiB |
BIN
textures/angled-blocks-vegetation/metallic.webp
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
textures/angled-blocks-vegetation/normal-dx.webp
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
textures/angled-blocks-vegetation/roughness.webp
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
textures/calm-sea-skybox/bk.webp
Normal file
After Width: | Height: | Size: 160 KiB |
BIN
textures/calm-sea-skybox/dn.webp
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
textures/calm-sea-skybox/ft.webp
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
textures/calm-sea-skybox/lf.webp
Normal file
After Width: | Height: | Size: 69 KiB |
BIN
textures/calm-sea-skybox/rt.webp
Normal file
After Width: | Height: | Size: 98 KiB |
BIN
textures/calm-sea-skybox/up.webp
Normal file
After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 7.0 MiB |
Before Width: | Height: | Size: 556 KiB |
Before Width: | Height: | Size: 5.6 MiB |
Before Width: | Height: | Size: 79 KiB |
Before Width: | Height: | Size: 9.6 MiB |
Before Width: | Height: | Size: 2.4 MiB |
BIN
textures/waternormals.webp
Normal file
After Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 115 KiB |