-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
160 lines (150 loc) · 3.88 KB
/
Copy pathindex.html
File metadata and controls
160 lines (150 loc) · 3.88 KB
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
154
155
156
157
158
159
160
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Game</title>
<style>
body {
background-color: black;
}
#pauseScreen{
position: absolute;
/* bottom: 25%;
left: 25%; */
margin-top: 20%;
margin-left: 40%;
font-family: sans-serif;
font-size: 45px;
color: red;
text-shadow: 2px 2px black;
visibility: hidden;
font-weight: heavy;
}
#gameStartScreen{
position: absolute;
/* bottom: 25%;
left: 25%; */
margin-top: 150px;
margin-left: 20px;
font-family: sans-serif;
font-size: 45px;
color: red;
text-shadow: 2px 2px black;
visibility: hidden;
font-weight: heavy;
}
#btn_startGame{
position: absolute;
/* bottom: 50%;
left: 50%; */
font-weight: heavy;
font-size: 15px;
margin-top: 20%;
margin-left: 40%;
}
#gameOverScreen {
position: absolute;
/* bottom: 25%;
left: 25%; */
margin-top: 20%;
margin-left: 35%;
font-family: sans-serif;
font-size: 45px;
color: red;
text-shadow: 2px 2px black;
visibility: hidden;
font-weight: heavy;
}
#gameOverScreen2 {
position: absolute;
/* bottom: 25%;
left: 25%; */
margin-top: 30%;
margin-left: 23%;
font-family: sans-serif;
font-size: 30px;
color: red;
text-shadow: 2px 2px black;
visibility: hidden;
font-weight: heavy;
}
#gameCanvas {
background-color: black;
width: 1122px;
height: 360px;
margin: auto;
/* text-align: center; */
}
#scoreboard {
text-align: center;
font-family: Segoe UI, Helvetica, Ubuntu, sans-serif;
color: white;
}
#scores {
font-size:600%;
padding:0;
margin:0;
color: white;
}
#title {
background-color: white;
color: black;
}
#hurt {
background-color: red;
display: none;
left: 0;
opacity: 0.15;
pointer-events: none;
position: absolute;
top: 0;
z-index: 1002;
}
</style>
</head>
<body onload='setup();'>
<div class="row">
<div id='gameCanvas' class="column" style="float: left; width: 90%;">
<div id="gameStartScreen" style='visibility: visible;'>PRESSIONE O BOTÃO PARA COMEÇAR O JOGO</div>
<br>
<button type="button" id="btn_startGame" onclick="draw();">START GAME</button>
<div id="pauseScreen" style='visibility: hidden;'>PAUSE</div>
<div >
<span id="gameOverScreen" style="display: inline-block" style='visibility: hidden;'>GAME OVER </span>
<span id="gameOverScreen2" style="display: inline-block" style='visibility: hidden;'>PRESSIONE R PARA JOGAR NOVAMENTE </span>
</div>
</div>
<div id='scoreboard' class="column" style="float: left; width: 10%;">
<h4 style="color:tomato;">PONTOS</h4>
<h2 id='score' style="color:gold">0</h2>
<hr>
<h4 style="color:tomato;">VIDAS</h4>
<h2 id='vidas' style="color:gold"></h2>
<hr>
<h4 style="color:tomato;">CONTROLES:</h4>
<div style="text-align: left;">
<h6>A - MOVIMENTAR NAVE PARA DIREITA</h6>
<h6>D - MOVIMENTAR NAVE PARA ESQUERDA</h6>
<h6>P - PAUSAR</h6>
<h6>R - REINCIAR</h6>
<h6>L - ALTERNAR LUZ</h6>
<h6>1 - CÂMERA FIXA</h6>
<h6>2 - CÂMERA EM MOVIMENTO</h6>
</div>
</div>
</div>
<script src='./Scripts/three.js'></script>
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="./Scripts/OBJLoader.js"></script>
<script src="./Scripts/stats.min.js"></script>
<script src="./Scripts/WebGL.js"></script>
<script src='./Scripts/keyboard.js'></script>
<script src="./Scripts/Lensflare.js"></script>
<script src="./Scripts/MTLLoader.js"></script>
<script src='./Scripts/TrackballControls.js'></script>
<script src='./Scripts/game_bkp.js'></script>
</body>
</html>