2020-08-03 16:51:20 -04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2020-08-07 12:21:15 -04:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
2020-10-21 15:30:13 -04:00
|
|
|
<title>Game</title>
|
2020-12-21 12:32:32 -05:00
|
|
|
<style>
|
2021-02-02 18:24:57 -05:00
|
|
|
#main {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
2020-12-21 12:32:32 -05:00
|
|
|
#game-window {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
#game-canvas {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
}
|
|
|
|
|
2021-02-19 15:35:57 -05:00
|
|
|
#text-canvas {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2020-12-21 12:32:32 -05:00
|
|
|
#debug-canvas {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 0px;
|
|
|
|
left: 0px;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2021-03-18 17:28:05 -04:00
|
|
|
|
|
|
|
@font-face {
|
|
|
|
font-family: 'NoPixel';
|
2022-04-03 16:42:07 -04:00
|
|
|
src: url('shattered_sword_assets/fonts/NoPixel.ttf');
|
2021-03-18 17:28:05 -04:00
|
|
|
}
|
2020-12-21 12:32:32 -05:00
|
|
|
</style>
|
2020-08-07 12:21:15 -04:00
|
|
|
</head>
|
|
|
|
<body>
|
2021-02-02 18:24:57 -05:00
|
|
|
<div id="main">
|
2020-12-21 12:32:32 -05:00
|
|
|
<!-- The main window of the game. This contains the rendered game and any debug text -->
|
|
|
|
<div id="game-window">
|
|
|
|
<!-- This is the canvas where the actual game is rendered -->
|
|
|
|
<canvas id="game-canvas"></canvas>
|
2021-02-19 15:35:57 -05:00
|
|
|
<!-- This is the canvas where text is rendered in WebGL -->
|
|
|
|
<canvas id="text-canvas" hidden></canvas>
|
2020-12-21 12:32:32 -05:00
|
|
|
<!-- This is the canvas where the debug text and graphics are rendered -->
|
|
|
|
<canvas id="debug-canvas"></canvas>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- This contains stats about the game for development purposes, such as the average update time -->
|
2021-02-02 18:24:57 -05:00
|
|
|
<div id="stats" hidden>
|
2020-10-21 15:30:13 -04:00
|
|
|
<canvas id="stats-canvas"></canvas>
|
|
|
|
<select name="Display" id="chart-option">
|
|
|
|
</select>
|
|
|
|
<div id="stats-display"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-08-07 12:21:15 -04:00
|
|
|
<script src="bundle.js"></script>
|
|
|
|
</body>
|
2020-08-03 16:51:20 -04:00
|
|
|
</html>
|