ShatteredSword/src/index.html

66 lines
1.6 KiB
HTML
Raw Normal View History

2020-08-03 16:51:20 -04:00
<!DOCTYPE html>
<html>
<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>
#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;
}
#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;
}
</style>
</head>
<body>
<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>
<!-- 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 -->
<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>
<script src="bundle.js"></script>
</body>
2020-08-03 16:51:20 -04:00
</html>