repl.it
@FelishaMiranda/

snake-game

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • script.js
  • style.css
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>Snake and Snack</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <div id= head>
        <!-- <h1 align="center" style="font-family: '04b30';" color="#F08080">Snake and Snack</h1> -->
    </div>
    <div id=gameCanvas-container style = "text-align: center">
        <canvas id = "gameCanvas"></canvas> 
    </div>
    <div id=controller-container style = "text-align: center">
      <canvas id=controller>
        <!-- <img id=left-key src = "https://imgur.com/jOKQjru" alt = "left key" > -->
      </canvas>
    </div>
    <script src="script.js"></script>
  </body>
</html>
result
console