-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.html
141 lines (126 loc) · 3.92 KB
/
main.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
<html>
<head>
<title>Projeto SG</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<!-- Fontawesome CDN -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt"
crossorigin="anonymous">
<style>
body {
position: absolute;
left: 0px;
top: 0px;
/* PointerLockControls */
width: 100%;
height: 100%;
background-color: #ffffff;
margin: 0;
overflow: hidden;
font-family: arial;
}
#blocker {
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
}
#instructions {
width: 100%;
height: 100%;
display: -webkit-box;
display: -moz-box;
display: box;
-webkit-box-orient: horizontal;
-moz-box-orient: horizontal;
box-orient: horizontal;
-webkit-box-pack: center;
-moz-box-pack: center;
box-pack: center;
-webkit-box-align: center;
-moz-box-align: center;
box-align: center;
color: #ffffff;
text-align: center;
cursor: pointer;
}
#infoCrouch {
position: absolute;
bottom: 10px;
left: 5px;
width: 100%;
text-align: left;
z-index: 100;
display: block;
font-size: 30px;
}
#infoBullets {
position: absolute;
bottom: 10px;
right: 10px;
width: 100%;
text-align: right;
z-index: 100;
display: block;
font-size: 30px;
}
#info {
position: absolute;
top: 10px;
width: 100%;
text-align: center;
z-index: 100;
display: block;
}
#infoHelp {
position: absolute;
top: 10px;
width: 100%;
text-align: center;
z-index: 100;
display: block;
}
#soundConfig {
position: absolute;
top: 10px;
left: 5px;
width: 100%;
text-align: left;
z-index: 100;
display: block;
font-size: 30px;
}
</style>
</head>
<body>
<div id="blocker">
<div id="instructions">
<span style="font-size:40px">Click to play</span>
<br /> (W, A, S, D = Move, SPACE = Jump, MOUSE = Look around)
</div>
</div>
<div id="infoCrouch"></div>
<div id="info">
<p>
<Strong>Salinha Interativa - Made by
<a href="https://github.com/HugoBar" target="_blank">Hugo</a> and
<a href="https://github.com/Zebiano" target="_blank">Sebastião</a>
</Strong>
</p>
<p>H for Help</p>
</div>
<div id="infoHelp"></div>
<div id="infoBullets"></div>
<div id="soundConfig"></div>
<!-- Libs -->
<script type="text/javascript" src="libs/three.min.js"></script>
<script type="text/javascript" src="libs/OBJLoader.js"></script>
<script type="text/javascript" src="libs/PointerLockControls.js"></script>
<!-- Javascript Files -->
<script type="text/javascript" src="main.js"></script>
<script type="text/javascript" src="assets/js/objects.js"></script>
<script type="text/javascript" src="assets/js/eventHandlers.js"></script>
<script type="text/javascript" src="assets/js/customFunctions.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
</body>
</html>