-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
123 lines (112 loc) · 5.37 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google-site-verification" content="JJ7qp2Ckr2lu3jeQzsrwkgMINQWwjMFyjhQT43sd0SQ" />
<meta name="description" content="Asteroid Aegis - An exciting HTML5 game where you defend your base from incoming asteroids.">
<meta name="keywords" content="Asteroid Aegis, game, HTML5, space, asteroids, defend, action, shooter">
<link rel="icon" href="VisualVault/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<title>Asteroid Aegis</title>
<!-- Add JSON-LD script for structured data -->
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "VideoGame",
"name": "Asteroid Aegis",
"description": "Asteroid Aegis - An exciting HTML5 game where you defend your base from incoming asteroids.",
"genre": "Action, Adventure, Strategy, Fighting",
"platform": "PC, Mobile, Web, macOS, iOS, Android",
"operatingSystem": "Windows, macOS, Android, iOS",
"applicationCategory": "Game",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.5",
"ratingCount": "240"
},
"author": {
"@type": "Organization",
"name": "Mohamed Amine"
},
"datePublished": "2024-03-01",
"publisher": {
"@type": "Organization",
"name": "MA-Abahmane"
},
"image": "https://raw.githubusercontent.com/MA-Abahmane/Asteroid-Aegis/main/VisualVault/logo.png",
"url": "https://asteroid-aegis.netlify.app/"
}
</script>
<!-- tailwindcss CSS Framework and CSS file -->
<script src="tailwindcss.js"></script>
<!-- <script src="https://cdn.tailwindcss.com"></script> -->
</head>
<body>
<div class="layer1"></div>
<div class="layer2"></div>
<div class="layer3">
<div class="_container">
<div class="outer"></div>
<div class="inner">
<span>Start</span>
</div>
<div class="processing">
<div class="p1">Unwrapping Magic</div>
<div class="p2">Breathing Life into Logic</div>
<div class="p3">Initializing Environment</div>
</div>
</div>
</div>
<div class="layer4"></div>
<div class="layer5"></div>
<div class="layer6">
<form class="alias-container" onsubmit="return false;">
<div class="input">
<label for="text-box"> USERNAME: </label>
<input id="text-box" type="text" name="text-box" minlength="1" maxlength="10">
</div>
<button id="pass-btn" onclick="pass()"> Pass </button>
<button id="save-btn" onclick="setAlias()"> Save </button>
</form>
</div>
<div class="main">
<div class="alias"></div>
<button type="button" onclick="power_I()" id="power1" title="Ultra-Field"></button>
<button type="button" onclick="power_II()" id="power2" title="Giga-Shot"></button>
<button type="button" onclick="power_III()" id="power3" title="Doomswave"></button>
</div>
<div class="__container">
<div class="menu">
<button type="button" id="musicControl" title="Music ON/OFF"></button>
<button type="button" id="soundControl" title="Sound ON/OFF"></button>
<button type="button" id="gameControl" title="Game Pause/Play"></button>
</div>
<div class="menuButton">
<button type="button" id="menuButton"> <img class="w-8 h-8" src="VisualVault/dropBtn.png" alt="sound"> </button>
</div>
</div>
<!-- Score board -->
<div class="score"><span>Score: </span><span id="scorenum">0</span></div>
<div id="startGameBrd" class="fixed inset-0 flex items-center justify-center select-none">
<div class="bg-white max-w-md w-full p-6 text-center">
<h1 id='scoreBrd' class="text-4xl font-bold leading-none">0</h1>
<p class="text-sm text-gray-700 mb-4">Points</p>
<div>
<button id="startGameBtn" class="bg-blue-500 text-white w-full py-3 rounded-full text-md hover:bg-blue-600 transition duration-350">Start Game</button>
</div>
</div>
</div>
<div class="guid">
<span>Lock On, <span class="text-cyan-500 ml-1"> Click! </span> </span> <span id="img"></span>
</div>
<canvas>
<!-- The Game Engine -->
</canvas>
<!-- Green Sock Animation -->
<script src="gsap.min.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js" integrity="sha512-7eHRwcbYkK4d9g/6tD/mhkf++eoTHwpNM9woBxtPUBWm67zeAfFC+HrdoE2GanKeocly/VxeLvIqwvCdk7qScg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> -->
<!-- Game Script -->
<script src="./script.js"></script>
</body>
</html>