-
Notifications
You must be signed in to change notification settings - Fork 1
/
frupal.html
executable file
·153 lines (137 loc) · 7.27 KB
/
frupal.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
152
153
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Frupal Game</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href = "CSS/gameLayout.css">
</head>
<body>
<!--------------------------- Game Title --------------------------->
<div class = "container-fluid pageHeader">
<h1 class="gameTitle">Frupal</h1>
</div>
<!----------------------------Game Start Menu---------------------->
<div class="container-fluid" id="startPage">
<div class="gameMenu">
<button class="btn-primary startBtn" style="margin-top:80px" type="button" onclick="document.getElementById('menu_sound').play();startGame()"><b>New Game</b></button><br>
<button class="btn-primary startBtn" type="button" onclick="document.getElementById('menu_sound').play();continueGame()"><b>Continue Game</b></button><br>
<button class="btn-info startBtn" type="button" onclick="document.getElementById('menu_sound').play()" data-toggle="modal" data-target="#config"><b>Game Configuration</b></button>
</div>
</div>
<!----------------------------Game Configuration------------------->
<div id="config" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3 class="modal-title">Game Configuration</h3>
</div>
<!----Content of game configuration-->
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal" style="float:left">Cancel</button>
</div>
</div>
</div>
</div>
<!-----------------------------New Game window------------------->
<div id="game">
<!---- Cell size adjuster ---->
<div>
<button type="button" class="btn-primary btn-adjust" id="adjust_smaller" onclick="document.getElementById('zoom_sound').play()"><span class="glyphicon glyphicon-zoom-out"></span></button>
<button type="button" class="btn-primary btn-adjust" id="adjust_bigger" onclick="document.getElementById('zoom_sound').play()"><span class="glyphicon glyphicon-zoom-in"></span></button>
</div>
<!----Game map---->
<br>
<div class="container" id="map" tabindex="0">
<div id="hero">
</div>
</div>
<hr>
<!---- Interface ---->
<div class="container">
<div class="row">
<!---- Hero's information ---->
<div class="col-sm-4">
<form>
<div class="form-group">
<label for="currentlocation">Current Location:</label>
<input class="form-control input-sm" type="text" id="currentlocation" disabled>
</div>
<div class="form-group">
<label for="energy">Energy:</label>
<input class="form-control input-sm" type="text" id="energy" disabled>
</div>
<div class="form-group">
<label for="whiffles">Whiffles:</label>
<input class="form-control input-sm" type="text" id="whiffles" disabled>
</div>
<div class="form-group">
<label for="terrain">Messages:</label>
<input class="form-control input-sm" type="text" id="terrain" disabled>
</div>
</form><br>
</div>
<!---- Control-panel ---->
<div class="col-sm-4">
<div style="text-align:center">
<button class="btn-primary btn-lg btn-control" id = "moveUp" type="button" onclick="move_up()"><b>NORTH</b></button><br><br>
<button class="btn-primary btn-lg btn-control" id = "moveLeft" onclick="move_left()"><b>WEST</b></button>
<span>  </span>
<button class="btn-primary btn-lg btn-control" id = "moveRight" onclick="move_right()"><b>EAST</b></button><br><br>
<button class="btn-primary btn-lg btn-control" id = "moveDown" onclick="move_down()"><b>SOUTH</b></button><br>
</div><br>
</div>
<!---- Hero's Inventory ---->
<div class="col-sm-4">
<div class="inventory">
<button class="btn-primary btn-inventory" type="button">Display Inventory</button>
<ul id="inventory-list">
<!-- content: hero's items -->
</ul>
</div>
</div>
</div>
</div>
<hr>
<!-- exit button -->
<button class="btn-danger startBtn btn-exit" type="button" onclick="document.getElementById('menu_sound').play();exitGame()"><b>Exit Game</b></button><br>
</div>
<!--------Imports "map" file on localStorage----------------------->
<script src="map.html"></script>
<script src="map"></script>
<!-- include JavaScript files here -->
<script src="JS/global.js"></script>
<script src="JS/parsing_script.js"></script>
<script src="JS/game_map.js"></script>
<script src="JS/menu.js"></script>
<script src="JS/game.js"></script>
<script src="JS/discover_jewel.js"></script>
<script src="JS/inventory.js"></script>
<script src="JS/power_bar.js"></script>
<script src="JS/binoculars.js"></script>
<script src="JS/treasure.js"></script>
<script src="JS/tools.js"></script>
<script src="JS/obstacles.js"></script>
<!-------Import sounds------------------>
<audio src="sounds/powerup.mp3" id="powerbar_sound">
<audio src="sounds/treasure1.mp3" id="treasure1_sound">
<audio src="sounds/jewel.mp3" id="jewel_sound">
<audio src="sounds/chainsaw.mp3" id="chainsaw_sound">
<audio src="sounds/noenergy.mp3" id="noenergy_sound">
<audio src="sounds/water.mp3" id="water_sound">
<audio src="sounds/menu1.mp3" id="menu_sound">
<audio src="sounds/pop.mp3" id="zoom_sound">
<audio src="sounds/treasure2.mp3" id="treasure2_sound">
<audio src="sounds/jackhammer.mp3" id="jackhammer_sound">
<audio src="sounds/axe.mp3" id="axe_sound">
<audio src="sounds/music.mp3" id="background_music">
<audio src="sounds/shears.mp3" id="shears_sound">
<audio src="sounds/machete.mp3" id="machete_sound">
</body>
</html>