-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflappyandroidrun.html
115 lines (103 loc) · 3.39 KB
/
flappyandroidrun.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Android Flappy</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<style>
body {
margin: 0;
font-family: 'Courier New', Courier, monospace;
color: #00ff00;
background-color: #0f0f0f;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
overflow: hidden;
}
h1 {
font-size: 2.5rem;
margin-bottom: 20px;
text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}
#gameCanvas {
border: 3px solid #00ff00;
background: repeating-linear-gradient(
0deg,
#0f0f0f,
#0f0f0f 10px,
#0d0d0d 10px,
#0d0d0d 20px
);
width: 80%;
max-width: 600px;
aspect-ratio: 3 / 4;
display: none;
}
.start-button {
background-color: #00ff00;
color: #0f0f0f;
border: none;
padding: 15px 30px;
font-size: 1.5rem;
cursor: pointer;
border-radius: 8px;
box-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00;
transition: background-color 0.3s, transform 0.2s;
margin-top: 20px;
}
.start-button:hover {
background-color: #00cc00;
transform: scale(1.05);
}
.guide-link, .back-home {
color: #00ff00;
text-decoration: none;
font-size: 1.2rem;
margin-top: 20px;
display: block;
transition: color 0.3s, text-shadow 0.3s;
}
.guide-link:hover, .back-home:hover {
color: #00cc00;
text-shadow: 0 0 10px #00cc00;
text-decoration: underline;
}
/* Google Translate Dropdown */
#google_translate_element {
margin-top: 20px;
}
.goog-te-banner-frame.skiptranslate {
display: none !important;
}
body {
top: 0px !important;
}
</style>
</head>
<body>
<h1>Android Flappy</h1>
<canvas id="gameCanvas"></canvas>
<button class="start-button" id="startButton">Start Game</button>
<a href="guide.html" class="guide-link">How to Play</a>
<a href="index.html" class="back-home">Back to Home</a>
<!-- Google Translate Dropdown -->
<div id="google_translate_element"></div>
<!-- Google Translate script -->
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
includedLanguages: 'en,es,fr,de,ja,ko',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<!-- Game script -->
<script src="flappyBird.js"></script>
</body>
</html>