forked from PacificPR/FlappyBird
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (32 loc) · 1.12 KB
/
Copy pathindex.html
File metadata and controls
34 lines (32 loc) · 1.12 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>FLAPPY BIRD</title>
</head>
<body>
<div> <img src="images/title.jpg" id="title" height="512" width="288">
<canvas id="canvas" width="288" height="512"></canvas>
<button type="button" onclick="draw()" id="START">START</button>
</div>
<style>
#START{
text:20px;
position:absolute;
top:120px;
left:120px;
color:YELLOW;
background-color:#4CAF50;
display:inline-block;
font-size:15px;
padding:5px 5px;
}
#CANVAS{
position:absolute;
top:0px;
left:0px;
}
</style>
<script src="game.js"></script>
</body>
</html>