Created
January 16, 2024 13:57
-
-
Save celeroncoder/45b53ea87a0d0220a26c4e84efecd97f to your computer and use it in GitHub Desktop.
GDSC VIT Bhopal WinterFest Gamification of Web - HTML Code for Flappy Bird
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 http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="style.css"> | |
<link rel="icon" type="image/x-icon" href="https://img.icons8.com/avantgarde/100/bird.png"> | |
<title>Flappy Bird Game</title> | |
</head> | |
<body> | |
<div id="holder"> | |
<div id="modal"> | |
<p id="game-title">Flappy Bird Game</p> | |
<span>Fly the bird as far as you can without hitting a wood</span> | |
<button id="start" onclick="startGame()">Start</button> | |
<button id="restart" onclick="window.location.reload(true)">Restart</button> | |
</div> | |
<div id="scoreholder">Score: <span id="score">0</span></div> | |
<div id="game"> | |
<div id="block"></div> | |
<div id="hole"></div> | |
<div class="gamestartbg" id="character"> | |
<img id="character-image" /> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment