-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
153 lines (121 loc) · 4.85 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
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">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="en-us">
<!-- PeerJS -->
<script type="text/javascript" src="lib/peer.js"></script>
<!-- Game State -->
<script type="text/javascript" src="game/Boot.js"></script>
<script type="text/javascript" src="game/Preload.js"></script>
<script type="text/javascript" src="game/MainMenu.js"></script>
<script type="text/javascript" src="game/Game.js"></script>
<script type="text/javascript" src="game/GameMultiplayer.js"></script>
<!-- P2P -->
<script type="text/javascript" src="P2P/managePeerCommunication.js"></script>
<script type="text/javascript" src="P2P/PeerClient.js"></script>
<!-- Util -->
<script type="text/javascript" src="util/const.js"></script>
<script type="text/javascript" src="util/utilForm.js"></script>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<!-- JQuery -->
<script src="lib/jquery-1.11.1.min.js"></script>
<!-- Bootstrap -->
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<link href="lib/bootstrap/font/css/open-iconic-bootstrap.css" rel="stylesheet">
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<!-- Favicon Error -->
<link rel="shortcut icon" href="#">
<!-- CSS Form -->
<link rel="stylesheet" href="css/form.css">
<!-- CSS Modal -->
<link rel="stylesheet" href="css/modal.css">
<!-- Phaser Lib -->
<script type="text/javascript" src="lib/phaser.js"></script>
<script type="text/javascript" src="chat/chat.js"></script>
<script type="text/javascript" src="lib/chatJs.js"></script>
<link href="css/chat.css" rel="stylesheet">
<title>P2P-Maze</title>
<style>
#multiplayer-form {
width: 100%;
}
.div-game {
/* width: 1100px;
height: 700px;
display: block; */
margin: auto;
width: 77%;
}
.item {
margin-top: 10px;
background-color: rgb(0, 0, 0);
}
.item div {
width: 100px;
display: inline-block;
padding-top: 5px;
}
.modal-footer p {
text-align: center;
/* line-height: 100px; */
}
</style>
</head>
<body class="hm-gradient">
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="title-modal"><strong>GAME INSTRUCTION</strong></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>L'obiettivo del gioco è riuscire a risolvere il labirinto usando la logica.
Il giocataore, che può muoversi con le frecce della tastiera, dovrà superare i vari ostacoli per
riuscire ad arrivare al tesoro.
Ha a disposizione tre vite per raggiungere il suo obiettivo finale.
All'apertura del gioco vedrà tutti gli item posizionati. E' possibile ingrandire ognuno di esso
posizionandosi con la freccia del mouse.
Si può giocare in Singleplayer o Multiplayer. In quest'ultimo caso ci si
dovrà registrare e selezionare uno dei peer disponibili, se ne esistono.
<br>
<br>
Buon divertimento !
</p>
</div>
<div class="modal-footer">
<p style="text-align: right">Author: Antonio Faienza
<br>
Course: Peer-to-Peer System
<br>
University of Bologna - Alma Mater Studiorum
</p>
</div>
</div>
</div>
<!-- Form Multiplayer -->
<div class="hm-gradient" id="multiplayer-form" style="display: none;">
<hr class="my-4">
</div>
<!-- Div Game -->
<div class="div-game" id="P2PMaze"></div>
<!-- Div Item Take -->
<div class="div-game item"></div>
<!-- <script>
var c = new Chat();
c.createChat();
c.receiveMessage();
</script> -->
</body>
<script type="text/javascript" src="game/main.js"></script>
<script type="text/javascript" src="lib/bootstrap/js/mdb.min.js"></script>
<script type="text/javascript" src="lib/popper.min.js"></script>
</html>