mirror of
https://gitlab.com/arnekeller/tunnel-racer.git
synced 2024-11-21 22:44:59 +00:00
Switch to minified three.js
This commit is contained in:
parent
0adc1fe818
commit
67ca6dc8f5
@ -17,7 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<button id="start">Start</button>
|
<button id="start">Start</button>
|
||||||
|
|
||||||
<script type="module" src="/game.js"></script>
|
<script src="/three.min.js"></script>
|
||||||
|
<script src="/game.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
3
game.js
3
game.js
@ -193,7 +193,6 @@ document.getElementById("set_head").addEventListener("click", () => {
|
|||||||
|
|
||||||
init_gn();
|
init_gn();
|
||||||
|
|
||||||
import * as THREE from './three.module.js';
|
|
||||||
let scene, renderer;
|
let scene, renderer;
|
||||||
const camera = new THREE.PerspectiveCamera(70, window.innerWidth / window.innerHeight, 0.1, 10000);
|
const camera = new THREE.PerspectiveCamera(70, window.innerWidth / window.innerHeight, 0.1, 10000);
|
||||||
|
|
||||||
@ -431,4 +430,4 @@ function animate() {
|
|||||||
i--;
|
i--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
6
three.min.js
vendored
Normal file
6
three.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
50447
three.module.js
50447
three.module.js
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user