-
Notifications
You must be signed in to change notification settings - Fork 0
/
flappybird.html
151 lines (124 loc) · 4.53 KB
/
flappybird.html
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!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" />
<meta name="Description" content="Enter your description here" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/css/bootstrap.min.css"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css"
/>
<link rel="stylesheet" href="assets/css/style.css" />
<title>flappy bird</title>
</head>
<body>
<div class="container-fluid">
<div class="row" id="sectionOne">
<div class="col-12 mt-md-0 text-center">
<div class="row mt-5">
<div class="col-12 text-center">
<img src="./flappy.png" class=" ml-5 img-fluid img-responsive" alt="" />
<span><h1 class="gameName mx-auto">FLAPPY BIRD</h1></span>
<button
class="btn"
onclick="window.location.href = 'flappy.html'"
>
Flappy
</button>
<!-- Button trigger modal -->
<button type="button" class="btn" data-toggle="modal" data-target="#modelId">
Rules
</button>
<!-- Modal -->
<script>
$('#exampleModal').on('show.bs.modal', event => {
var button = $(event.relatedTarget);
var modal = $(this);
// Use above variables to manipulate the DOM
});
</script>
</div>
</div>
</div>
<div class="modal fade" id="modelId" tabindex="-1" role="dialog" aria-labelledby="modelTitleId" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">GAMER FLAPPY........</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<ol>
<li>players can control the charachter Kunjoos</li>
<li>navigate Kunjoos through equally sized gaps placed at random heights</li>
<li>Kunjoos descends automatically, ascends only if taps the screen or space bar</li>
<li>each successful pass gives one point</li>
<li>colliding the pipe or ground results 'ok bie'</li>
<li>score high to get rewarded with AMAZING TITLES</li>
<li>get a golden duck,see the creator</li>
</ol>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick = "window.location.href = 'flappy.html'">Flappy</button>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/js/bootstrap.min.js"></script>
</body>
<style>
@import url("https://fonts.googleapis.com/css2?family=Potta+One&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
width: 100vw;
background-color: #00ccff;
font-family: "Potta One", cursive;
overflow: hidden;
}
span{
background-color:white;
}
.gameName {
font-size: 100px;
}
.btn {
border-radius: 5px;
border:2px solid steelblue;
font-size:larger;
margin-top:30px;
}
.btn:active{
color:white;
background:steelblue;
border:2px solid white;
}
#header{
background-color:#096d86;
}
@media (max-width: 600px) {
.gameName {
font-size: 50px;
}
}
</style>
</html>