Created
August 16, 2020 06:28
-
-
Save ashishmaurya/1fc21ae64ab1399ee49a2e900c7f4b7e to your computer and use it in GitHub Desktop.
Create Piano Tile Game in Web
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Games - Piano Tiles</title> | |
<link rel="stylesheet" href="index.css"> | |
<script src="index.js"></script> | |
</head> | |
<body> | |
<div class="canvasContainer"> | |
<div class="score" id="score"> | |
0 | |
</div> | |
<div class="gameEnd none" id="gameEnd"> | |
Opps! Wrong Tile | |
<br/> | |
<button onclick="restartGame()">Restart Game</button> | |
</div> | |
<div class="gameStart" id="gameStart"> | |
Lets Start Tapping | |
<br/> | |
<button onclick="startGame()">Start Playing</button> | |
</div> | |
<canvas class="game" id="gameCanvas"></canvas> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment