ShatteredSword/public/benchmark2.html

74 lines
1.8 KiB
HTML
Raw Permalink Normal View History

2022-04-12 00:08:57 -04:00
<!DOCTYPE html>
2022-04-25 23:41:13 -04:00
<html lang="en">
2022-04-12 00:08:57 -04:00
<head>
2022-04-25 23:41:13 -04:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Benchmark 2</title>
2022-04-12 00:08:57 -04:00
<style>
#main {
width: 100%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
}
#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;
}
#debug-canvas {
width: 100%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
pointer-events: none;
}
@font-face {
font-family: 'NoPixel';
2022-04-25 23:41:13 -04:00
src: url('shattered_sword_assets2/fonts/NoPixel.ttf');
2022-04-12 00:08:57 -04:00
}
</style>
</head>
<body>
<div id="main">
<!-- 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>
<!-- 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>
<canvas id="stats-canvas"></canvas>
<select name="Display" id="chart-option">
</select>
<div id="stats-display"></div>
</div>
</div>
2022-04-25 23:41:13 -04:00
<script src="bundle2.js"></script>
2022-04-12 00:08:57 -04:00
</body>
</html>