-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
88 lines (84 loc) · 4.24 KB
/
Copy pathindex.html
File metadata and controls
88 lines (84 loc) · 4.24 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html>
<head>
<base href="https://unibr0s.github.io/SnakeGame/">
<meta charset="UTF-8" />
<meta name="description" content="A modern Snake game with pixel art graphics and custom sound effects. Eat, grow, and chase high scores in this classic arcade experience!">
<meta name="author" content="Unibros">
<meta name="keywords" content="Snake Game, Retro Gaming, Arcade Game, Browser Game, Pixel Art, Classic Snake, HTML5 Game, JavaScript Game, Unibros Game">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://unibr0s.github.io/SnakeGame">
<meta property="og:title" content="Snake Game">
<meta property="og:description" content="A modern Snake game with pixel art graphics and custom sound effects. Eat, grow, and chase high scores in this classic arcade experience!">
<meta property="og:image" content="https://unibr0s.github.io/SnakeGame/assets/share-card.png">
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@unibr0s">
<meta name="twitter:creator" content="@unibr0s">
<meta name="twitter:url" content="https://unibr0s.github.io/SnakeGame">
<meta name="twitter:title" content="Snake Game">
<meta name="twitter:description" content="A modern Snake game with pixel art graphics and custom sound effects. Eat, grow, and chase high scores in this classic arcade experience!">
<meta name="twitter:image" content="https://unibr0s.github.io/SnakeGame/assets/share-card.png">
<meta name="twitter:image:alt" content="Snake Game Preview">
<link rel="icon" type="image/png" href="assets/Icons/favicon.png">
<title>Snake Game</title>
<link href="https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/styles.css?v=2">
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JETWJ3V941"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-JETWJ3V941');
</script>
</head>
<body>
<h1 class="game-title">SNAKE GAME</h1>
<div class="mobile-header-content">
Built by <a href="https://unibros.xyz" target="_blank">Unibros</a>
<a href="https://x.com/unibr0s" target="_blank" class="x-icon">
<img src="assets/Icons/x.svg" alt="X (Twitter)" />
</a>
</div>
<div class="mobile-container">
<div id="score">Score: 0</div>
<canvas id="gameCanvas" width="640" height="640" style="background: transparent;"></canvas>
<div id="controls">Use Arrow Keys or W/A/S/D to move</div>
<div class="sound-controls">
<div>
<label>Sound:</label>
<button id="toggleSound">
<img src="assets/Icons/volume-on.png" alt="Volume" class="volume-icon">
</button>
</div>
</div>
<div class="mobile-controls">
<div class="touch-controls">
<button id="upButton" class="touch-button">
<img src="assets/Icons/arrow-up.png" alt="Up" class="arrow-icon">
</button>
<div class="middle-row">
<button id="leftButton" class="touch-button">
<img src="assets/Icons/arrow-left.png" alt="Left" class="arrow-icon">
</button>
<button id="rightButton" class="touch-button">
<img src="assets/Icons/arrow-right.png" alt="Right" class="arrow-icon">
</button>
</div>
<button id="downButton" class="touch-button">
<img src="assets/Icons/arrow-down.png" alt="Down" class="arrow-icon">
</button>
</div>
</div>
</div>
<footer>
Built by <a href="https://unibros.xyz" target="_blank">Unibros</a>
<a href="https://x.com/unibr0s" target="_blank" class="x-icon">
<img src="assets/Icons/x.svg" alt="X (Twitter)" />
</a>
</footer>
<script src="js/script.js"></script>
</body>
</html>