forked from michaljaz/webmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
131 lines (117 loc) · 3.63 KB
/
index.html
File metadata and controls
131 lines (117 loc) · 3.63 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
<!DOCTYPE html>
<html>
<head>
<title>Web-Minecraft</title>
<!-- META TAGS -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<!-- ICON -->
<!-- <link rel="icon"> -->
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
<!-- Google Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css">
<!-- Material Design Bootstrap -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/css/mdb.min.css">
<!-- Own style -->
<link rel="stylesheet" href="/css/style.css">
<!-- JQuery -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/umd/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/js/mdb.min.js"></script>
</head>
<body>
<!-- RENDER CANVAS -->
<canvas id="c"></canvas>
<!-- Minecraft Player View Canvas -->
<canvas id="c_player"></canvas>
<!-- LOADING SCREEN -->
<div class="initLoading">
<div class="loadingBar text-center">
<img src="assets/images/logo.png">
<h1 class="loadingText">Ładowanie zasobów...</h1>
<div class="status"></div>
<img src="assets/images/loadingx.gif">
</div>
</div>
<!-- Chat -->
<div class="chat"></div>
<div class="md-form com">
<input type="text" class="form-control text-light com_i">
</div>
<!-- Bottom inventory bar -->
<span class="player_hp"></span>
<span class="player_xp"></span>
<span class="player_food"></span>
<div class="xp_bar_empty"></div>
<div class="xp_bar"></div>
<div class="inv_bar"></div>
<div class="inv_cursor"></div>
<!-- Inventory window -->
<div class="inv_window"></div>
<!-- MENU -->
<div class="gameMenu">
<div class="row">
<!-- FIRST COLUMN -->
<div class="col-4 pl-5 pt-4">
Web-minecraft v.1.0<br>
Wykonanie: michaljaz
</div>
<!--SECOND COLUMN -->
<div class="col-4 text-center p-3">
<h3>Gra zatrzymana</h3>
<button class="gameOn btn btn-dark w-100">
Graj
</button>
</div>
<!-- THIRD COLUMN -->
<div class="col-4 p-3">
Kontrolki
<li>
<button>W</button> do przodu
</li>
<li>
<button>S</button> do tyłu
</li>
<li>
<button>A</button> w lewo
</li>
<li>
<button>D</button> w prawo
</li>
<li>
<button>R</button> sprint
</li>
<li>
<button>E</button> ekwipunek
</li>
<li>
<button>Spacja</button> skakanie
</li>
<li>
<button>Shift</button> skradanie się
</li>
<li>
<button>`</button> odpowiednik Escape
</li>
<li>
<button>/</button> <button>T</button> czat
</li>
</div>
</div>
</div>
<!-- VIEW CROSS -->
<div class="cross">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<line x1="15" y1="0" x2="15" y2="30" stroke="black" stroke-width="1" />
<line x1="0" y1="15" x2="30" y2="15" stroke="black" stroke-width="1" />
</svg>
</div>
</body>
</html>