-
Notifications
You must be signed in to change notification settings - Fork 1
/
lobby.html
167 lines (161 loc) · 4.53 KB
/
lobby.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<html>
<body style="background-color:black;">
<head>
<table>
<tr>
<th>
<img id="insignia" src="./static/logonew.png" style="width:60; height:60;"></img>
</th>
<th>
<title id="titletext">Terminus Beta Test 0.1.3</title>
</th>
</tr>
</table>
<script src="/socket.io/socket.io.js"></script>
<script src="./static/script.js"></script>
<script src="./index.js"></script>
<script src="/movement.js"></script>
<style>
.titletext {
color:yellow;
font-weight:bold;
font-style:italic;
font-size:40px;
font-family:Papyrus,Arial;
}
.instructions {
color: #aa00ff;
font-weight: bold;
font-size: 12px;
margin-top: 20px;
margin-left: 20px;
background-color: white;
border: 5px white;
border-radius: 5px;
padding: 5px;
width:500px;
font-family:Arial;
}
canvas {
background-color: white;
margin-left:25px;
cursor:crosshair;
}
button {
background-color: white;
border: 2px solid-purple;
color: #aa00ff;
font-size: 12px;
font-weight: bold;
font-family:Arial;
}
.game {
display: none;
}
.login {
display: initial;
align: center;
}
.logintab {
background-color: #aa00ff;
margin-top:auto;
margin-bottom:auto;
align: center;
border-radius:5px;
}
.loginalign {
margin-left:auto;
margin-right: auto;
}
.joinbutton {
transition-duration:0.4s;
cursor:pointer;
background-color:white;
color: black;
border: 5px #900000;
font-weight:bold;
letter-spacing: 7px;
margin-bottom:15px;
font-size: 24px;
width:150px;
height:50px;
border-radius: 5px;
}
.joinbutton:hover {
background-color:yellow;
color:#aa00ff;
border:5px #DDDDDD;
}
.splashtext {
margin-top:10px;
color:white;
font-size:32px;
font-family:Arial;
}
.nameinput {
font-size:14px;
border:5px black;
border-radius: 5px;
placeholder:"hello";
}
.msgBtn{
background-color:#aa00ff;
color:white;
font-weight:bold;
font-size:18px;
border:5px #aa00ff;
border-radius:5px;
transition-duration:0.4s;
}
.msgBtn:hover{
background-color:yellow;
color:black;
border: 5px #DDDDDD;
border-radius: 5px;
}
.playerzone{}
.playerlog{
background-color:white;
border-style:solid;
border-color: #aa00ff;
border-radius: 5px;
border-width: 5px;
}
</style>
</head>
<body>
<p class="titletext">Terminus Game Dev-Kit 0.1.3</p>
<p class="instructions"> Tip: Controls are straigthforward. WASD for movement, K for authentication, Space for sprinting, and T for chat. </p>
<div id="loginScreen" class="login">
<table class="loginalign" style="float:center">
<tr >
<th class="logintab" style="width:250px;height:180px">
<p class="splashtext">WELCOME!</p>
<input type="text" id="nameinput" class="nameinput" style="width:140px; margin-bottom:10px font-size:20px" placeholder="Guest" maxlength="20"></input>
<br></br>
<input type="text" id="passinput" class="passinput" style="width:140px; margin-bottom:10px font-size:20px" placeholder="Password(optional)" maxlength="20"></input>
<br></br>
<input type = "button" id="joinBtn" value="JOIN!" align="center"class="joinbutton"></input>
</th>
</tr>
</table>
</div>
<div id="gamewindow" class="game">
<table>
<tr>
<th class="playerzone" border="5px solid black">
<canvas id="playermap" height="400px" width="800px" border="5px solid black" border-style="outset"></canvas>
</th>
<th class="chatlog">
<canvas class="playerlog" id="playerlog"></canvas>
<br></br>
<canvas id="chatlog"></canvas>
<br></br>
<input type = "text" id="msgContent" placeholder="Message..."></input>
<input type = "button" id="sendmessage" value="SEND" class="msgBtn"></input>
</th>
</tr>
</table>
</div>
</body>
</html>