-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
139 lines (106 loc) · 2.82 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
<!--
/***
* Vex webgl port
* Autor: Bernard Bekker
* Year: 2013
*
* This code is shared under the:
* Creative Commons Attribution-NonCommercial 4.0 International Public License
*
* http://creativecommons.org/licenses/by-nc/4.0/deed.en_US
*
*/
-->
<!DOCTYPE html>
<HTML>
<head>
<title>Vex</title>
<script id="vertex" type="x-shader">
attribute vec2 aVertexPosition;
uniform mat4 uTransformation;
uniform mat4 uAspectTransformation;
void main() {
gl_Position = uAspectTransformation*uTransformation * vec4(aVertexPosition, 0.0, 1.0);
}
</script>
<script id="fragment" type="x-shader">
#ifdef GL_ES
precision highp float;
#endif
uniform vec4 uColor;
void main() {
gl_FragColor = uColor;
}
</script>
<link rel="stylesheet" href="css.css" />
<script src="menu.js"></script>
<script src="ui.js"></script>
<script src="glMatrix.js"></script>
<script src="game.js"></script>
<script src="renderer.js" ></script>
<script src="network.js"></script>
</head>
<body onload="showMenu()">
<div id="menucontainer" class="container">
<span id="introText">
VEX
<br/><br/>
Welcome to vex, the 2D party space shooter.
</span>
<br/>
<br/>
Players:
<div class="menu_players" id="menu_players">
</div>
<br/>
<button type="button" onclick="startGame()">Start the game!</input>
</div>
<div id="resultcontainer" class="container" style="visibility: hidden">
<span id="winning_player"></span> won!
<div id="results"></div>
<br/>
<span onclick="startGame()">Play Again?</span>
</div>
<div id="gamecontainer" class="container">
<div id="scoreboard">
</div>
<div id="fps"></div>
<canvas id="vex-canv">
je browser zuigt.
</canvas>
<div id="player_list" class="player_list">
</div>
</div>
<div class="hidden">
<div id="proto_player_list_item" class="player_list_item">
<span id="name" class="player_name">
player
</span>
<br/>
<span id="score" class="player_score">
234
</span>
<div class="hp_border">
<div id="hp" class="player_hp">
</div>
</div>
<div class="energy_border">
<div id="energy" class="player_energy">
</div>
</div>
</div>
<div class="intro_player" id="proto_intro_player">
<span class="intro_name">
player name
</span>
<input type="text" name="player_name" id="player_name" placeholder="player name">
<div id="intro_color">
</div>
<div id="intro_controls">
Move: arrow-keys </br>
Shoot: numpad-0
</div>
</div>
</div>
</body>
</HTML>