-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
74 lines (53 loc) · 1.57 KB
/
Copy pathindex.html
File metadata and controls
74 lines (53 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!--
made by luke baja ricketts
Copyright: Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) 2020, notblockedgames.cf
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Minecraft</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="images/favicon.png" rel="icon" />
<script>
//saves default Math.random
window.RandomInt = Math.random;
</script>
<script src="js/libraries/Lodash.js">
</script>
<script src="js/libraries/Crypto.js">
</script>
<script src="js/libraries/SeedRandom.js">
</script>
</head>
<body>
<canvas id="canvas" width="1000" height="600"></canvas>
<canvas id="canvas-2d" width="1000" height="600"></canvas>
<script type="module">
import * as THREE from "/js/libraries/three.module.js";
import System from "/js/data/SystemData.js";
window.THREE = THREE;
window.System = System;
//replaces lodash library name
window.Lodash = _;
delete window._;
//SeedRandom
window.SeedRandom = seed => {
Math.seedrandom(seed);
return Math.random();
};
window.query = q => document.querySelector(q);
window.queryAll = q => document.querySelectorAll(q);
window.body = document.body;
window.canvas = query("#canvas");
window.canvas2D = query("#canvas-2d");
window.ctx2D = canvas2D.getContext("2d");
addEventListener("error", error => {
alert(error.message);
});
</script>
<script src="js/startup/initialize.js" type="module">
</script>
</body>
</html>