-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
035ae87
commit 3ef0fd2
Showing
3 changed files
with
61 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>SNAKE</title> | ||
<link href='https://fonts.googleapis.com/css?family=Press+Start+2P' rel='stylesheet' type='text/css'> | ||
<link rel="stylesheet" href="css/style.css"> | ||
<link rel="stylesheet" src="//normalize-css.googlecode.com/svn/trunk/normalize.css"/> | ||
<meta name="viewport" content="width=device-width" /> | ||
<script src="https://cdn.firebase.com/js/client/2.4.0/firebase.js"></script> | ||
</head> | ||
<body> | ||
<div class="content"> | ||
<h1>SNAKE</h1> | ||
<h1><span class="currentScore"></span></h1> | ||
<div class="game"> | ||
<canvas id="canvas"> | ||
YOUR BROWSER DOESN'T SUPPORT CANVAS YET | ||
</canvas> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>SNAKE</title> | ||
<link href='https://fonts.googleapis.com/css?family=Press+Start+2P' rel='stylesheet' type='text/css'> | ||
<link rel="stylesheet" href="css/style.css"> | ||
<link rel="stylesheet" src="//normalize-css.googlecode.com/svn/trunk/normalize.css" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<script src="https://cdn.firebase.com/js/client/2.4.0/firebase.js"></script> | ||
</head> | ||
|
||
<body> | ||
<div class="content"> | ||
<h1>SNAKE</h1> | ||
<h1><span class="currentScore"></span></h1> | ||
<div class="game"> | ||
<canvas id="canvas"> | ||
YOUR BROWSER DOESN'T SUPPORT CANVAS YET | ||
</canvas> | ||
</div> | ||
<div class="notification"> | ||
<h1>YOU DIED!</h1> | ||
<h3 class="score"></h3> | ||
</div> | ||
<div class="buttons"> | ||
<!-- <button class="playAgain" onclick="playAgain();"> PLAY AGAIN!</button> | ||
<button class="start" onclick="startGame();">START</button> --> | ||
<div class="mobileButton"> | ||
<div class="mobileButtonCenter"> | ||
<button onclick="mobileUp();"> UP </button> | ||
</div> | ||
<div class="notification"> | ||
<h1>YOU DIED!</h1> | ||
<h3 class="score"></h3> | ||
<div class="mobileButtonCenter left--right"> | ||
<button onclick="mobileLeft();"> LEFT </button> | ||
<button onclick="mobileRight();"> RIGHT </button> | ||
</div> | ||
<div class="buttons"> | ||
<button class="playAgain" onclick="playAgain();"> PLAY AGAIN!</button> | ||
<button class="start" onclick="startGame();">START</button> | ||
<div class="mobileButton"> | ||
<div class="mobileButtonCenter"> | ||
<button onclick="mobileUp();"> UP </button> | ||
</div> | ||
<div class="mobileButtonCenter left--right"> | ||
<button onclick="mobileLeft();"> LEFT </button> | ||
<button onclick="mobileRight();"> RIGHT </button> | ||
</div> | ||
<div class="mobileButtonCenter"> | ||
<button onclick="mobileDown();"> DOWN </button> | ||
</div> | ||
</div> | ||
<button class="home" onclick="homeButton();">HOME</button> | ||
<button class="reset" onclick="resetGame();">RESET</button> | ||
<button class="pause" onclick="pauseGame();">PAUSE</button> | ||
<button class="resume" onclick="resumeGame();">RESUME</button> | ||
<button class="mute" onclick="muteGame();">Music: <span class="musicSetting"> On</span></button> | ||
<h1>HIGHSCORE: <span id="highScore"></span> </h1> | ||
<div class="mobileButtonCenter"> | ||
<button onclick="mobileDown();"> DOWN </button> | ||
</div> | ||
</div> | ||
<audio src="assets/run.mp3" id="run" loop></audio> | ||
<audio src="assets/dying.mp3" id="die"></audio> | ||
<audio src="assets/eat.wav" id="eat"></audio> | ||
<script src="js/script.js"></script> | ||
</body> | ||
</html> | ||
<!-- <button class="home" onclick="homeButton();">HOME</button> | ||
<button class="reset" onclick="resetGame();">RESET</button> | ||
<button class="pause" onclick="pauseGame();">PAUSE</button> | ||
<button class="resume" onclick="resumeGame();">RESUME</button> --> | ||
<h1>HIGHSCORE: <span id="highScore"></span> </h1> | ||
</div> | ||
</div> | ||
<script src="js/script.js"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters