snake framework
This commit is contained in:
parent
26fabc37e9
commit
8478bc66e7
4 changed files with 380 additions and 0 deletions
48
secret/snake/index.html
Normal file
48
secret/snake/index.html
Normal file
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Snake - Game</title>
|
||||
<link rel="stylesheet" href="styles.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="gameboy">
|
||||
<!-- Game Boy Screen -->
|
||||
<div class="screen">
|
||||
<article class="game">
|
||||
<h1>Snake - Game</h1>
|
||||
<div class="description">
|
||||
<h2>Description</h2>
|
||||
<p>Eat as many apples and grow as much as possible</p>
|
||||
<p>◀ or A or arrow left = move left</p>
|
||||
<p>▶ or D or arrow right = move right</p>
|
||||
<p>▲ or W or arrow up = move up</p>
|
||||
<p>▼ or S or arrow down = move down</p>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<!-- Controls -->
|
||||
<div class="controls">
|
||||
<!-- D-Pad on the left -->
|
||||
<div class="dpad">
|
||||
<button class="dpad-btn up" id="up">▲</button>
|
||||
<button class="dpad-btn left" id="left">◀</button>
|
||||
<div class="dpad-center"></div>
|
||||
<button class="dpad-btn right" id="right">▶</button>
|
||||
<button class="dpad-btn down" id="down">▼</button>
|
||||
</div>
|
||||
|
||||
<!-- A, B and start buttonButtons on the right -->
|
||||
<div class="action-buttons">
|
||||
<button class="start-btn btn" id="start">Start</button>
|
||||
<button class="btn" id="a">A</button>
|
||||
<button class="btn" id="b">B</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="game.js"></script>
|
||||
<script src="styles.js"></script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue