-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
91 lines (78 loc) · 2.21 KB
/
index.html
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<title>The Games Foxes Play</title>
<head><meta charset="utf-8"></head>
<style>
canvas{
outline: 2px solid white;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 50%;
height: 50%;
text-align: center;
}
body{
background-color: black;
text-align: center;
}
@font-face {
font-family: 'Play';
src: url("Play-Regular.ttf");
}
</style>
<body></body>
<script src="js/pixi/seedrandom.js"></script>
<script src="js/pixi/lz-string.min.js"></script>
<script src="js/pixi/pixi.js"></script>
<script src="js/pixi/fontface.js"></script>
<script src="js/pixi/pixi-filters.js"></script>
<script src="js/pixi/spritesheet.js"></script>
<script src="js/lists.js"></script>
<script src="js/pixi/pixi_viewport.umd.cjs"></script>
<script src="js/pixi/astar.js"></script>
<script src="js/graphics.js"></script>
<script src="js/game.js"></script>
<script src="js/functions.js"></script>
<script src="js/objects.js"></script>
<script src="js/map.js"></script>
<script src="js/tile.js"></script>
<script src="js/creature.js"></script>
<script src="js/util.js"></script>
<script src="js/ui.js"></script>
<script src="js/text.js"></script>
<script src="js/world.js"></script>
<script src="js/axioms.js"></script>
<script src="js/rooms.js"></script>
<script src="js/souls.js"></script>
<script>
var rngSeed;
if (localStorage["seed"]) rngSeed = localStorage.getItem("seed");
else rngSeed = makeid(10);
var seededRNG = new Math.seedrandom(rngSeed);
var creaturesCreated = 0;
var allCreatures = [];
let playFont = new FontFaceObserver('Play');
playFont.load();
var player;
var monsters;
var world;
var tileSize = 64;
var numTiles;
resolutionScreen = 0;
shakeAmount = 0;
shakeX = 0;
shakeY = 0;
var yellowPages = {
"Planar" : {},
"Interplanar" : {},
};
var soulLinks = {};
var worldgen;
var actionQueue = [];
var fastReload = false;
beginEverything();
document.querySelector("html").onkeypress = function(e){
playerInput(e.key);
};
</script>