2021-03-11 09:39:52 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>KyFlo Snake</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
|
2021-03-23 09:23:37 +01:00
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
|
2021-03-11 09:39:52 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="sources/css/style.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
2021-03-26 22:49:00 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col s2">
|
|
|
|
<p class="stats" id="score">Score: </p>
|
|
|
|
<p class="stats" id="lives">Lives: </p>
|
|
|
|
</div>
|
|
|
|
<div class="col s8">
|
|
|
|
<h1 class="linear-wipe">KyFlo Snake</h1>
|
|
|
|
</div>
|
|
|
|
<div class="col s2">
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-23 08:21:05 +01:00
|
|
|
<div class="row" id="menu">
|
2021-03-18 10:29:12 +01:00
|
|
|
<div class="col s6 offset-s3">
|
2021-03-23 08:21:05 +01:00
|
|
|
<div class="col s10 offset-s1" style="padding: 0">
|
|
|
|
<input type="text" id="nickname" placeholder="Choose a nickname :">
|
2021-03-18 10:29:12 +01:00
|
|
|
</div>
|
2021-03-23 09:23:37 +01:00
|
|
|
<div class="menu-level col s12 row">
|
|
|
|
</div>
|
2021-03-18 10:29:12 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-26 22:49:00 +01:00
|
|
|
<div id="game" class="invisible">
|
|
|
|
<canvas id="canvas"></canvas>
|
2021-03-23 09:23:37 +01:00
|
|
|
</div>
|
2021-03-25 08:53:40 +01:00
|
|
|
|
|
|
|
<div id="gameovermodal" class="modal">
|
|
|
|
<div class="modal-content">
|
|
|
|
<h1 class="linear-wipe">GAME OVER</h1>
|
2021-03-25 09:48:57 +01:00
|
|
|
<p>Your score : <span id="gameoverscore"></span></p>
|
2021-03-25 08:53:40 +01:00
|
|
|
</div>
|
2021-03-25 09:25:41 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="scoreboard" class="close">
|
|
|
|
<h1>Scoreboard</h1>
|
|
|
|
</div>
|
|
|
|
|
2021-03-11 09:39:52 +01:00
|
|
|
<script type="module" src="sources/js/index.js"></script>
|
|
|
|
</body>
|
2021-03-23 08:21:05 +01:00
|
|
|
</html>
|