ShatteredSword/src/index.html

55 lines
1.3 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;
}
#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 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>