You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Time Bomb</title>
<style>
body {
background-color: gainsboro;
}
canvas {
border: 2px solid black;
display: block;
margin: auto;
}
.title {
width: 50%;
margin: 0 auto;
display: block;
text-align: center;
font-family: Verdana;
padding-bottom: 10px;
}
.explanation {
width: 50%;
text-align: left;
font-family: Verdana;
padding-bottom: 10px;
margin: 0 auto;
}
.buttons {
display: flex;
justify-content: center;
margin-top: 10px;
}
button {
margin: 0 5px;
}
</style>
</head>
<body>
<div><h2 class="title">AVOID THE TIME BOMBS</h2></div>
<div class="explanation">
<p>Control the player with WSAD or Arrow keys. The clocks will start ticking as soon as the player moves.</p>
</div>
<canvas id="gameCanvas" width="500" height="500"></canvas>
<div class="buttons">
<button id="resetButton">Reset</button>
<button id="retryButton">Retry</button>
</div>
<script src="../js/time-bomb.js"></script>
</body>
</html>