-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.html
54 lines (38 loc) · 2.49 KB
/
menu.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style/style.css" rel="stylesheet" type="text/css" />
<title>Alien Shooter</title>
<script>
var text = "The Earth is being invaded by aliens and player's task is to destroy them and save the humanity. The player needs to destroy 500 aliens in order to succeed and he has 10 units of health. A health unit is lost when an alien falls to the ground. Aliens arrive in seven waves (levels), each faster than the previous one. There is also a possibility to obtain extra help by shooting the falling mystery box. It can contain a nuclear missile which, when fired, wipes out all the aliens currently visible. There is three missile slots available. It can also immediately trigger a small time machine to slow down the aliens and enable the player to shoot them more easily.";
displayAbout = function() {
alert(text);
};
displayControls = function() {
alert("\n\n Controls: \n\n MOUSE - move your mouse to aim \n LEFT MOUSE BUTTON - shoot the gun \n SPACE - fire missile \n P - toggle pause");
};
</script>
</head>
<body>
<audio autoplay="autoplay" loop="loop">
<source src="sounds/menu_music.ogg">
</audio>
<div id="menu">
<div id="title">
<p id="title_text" unselectable='on' onselectstart='return false;' onmousedown='return false;'>ALIEN SHOOTER</p>
<p id="version" unselectable='on' onselectstart='return false;' onmousedown='return false;'>v1.0.0-beta</p>
</div>
<div id="menu_items">
<a href="game.html"><div class="button">Play the game</div></a>
<a href="#" onclick="displayControls()"><div class="button">Controls</div></a>
<a href="#" onclick="displayAbout()"><div class="button">About the game</div></a>
<a href="https://github.com/somi92/alien-shooter" target="_blank"><div class="button">Web & Source code</div></a>
</div>
<div id="footer">
<p unselectable='on' onselectstart='return false;' onmousedown='return false;'>The game and its source code are under GNU GENERAL PUBLIC LICENSE, Version 2. For more details click Web & Source code.</p>
<p unselectable='on' onselectstart='return false;' onmousedown='return false;'>Developed by: Milos Stojanovic (milos92s@yahoo.com)</p>
</div>
</div>
</body>
</html>