-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSnake.html
36 lines (35 loc) · 941 Bytes
/
Snake.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Snake has come</title>
<style>
body
{
margin: 0px;
padding: 0px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-image: url("https://wallpapercave.com/wp/wp2409705.jpg");
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
canvas
{
box-shadow: black 20px 10px 50px;
border-radius: 10px;
}
</style>
</head>
<body>
<h1>Nostalgic Games</h1>
<h2>Snake</h2>
<canvas id="game" width="400px" height="400px"/>
<script src="Snake.JS">
</script>
</body>
</html>