-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapplication.html
119 lines (95 loc) · 4.25 KB
/
application.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Project MOTION</title>
<!-- BabylonJS import -->
<script src="/babylonjs/babylon.js"></script>
<script src="/static/babylon.objFileLoader.min.js"></script>
<script src="/static/babylon.2.5.canvas2d.js"></script>
<!-- BabylonJS import end -->
<!-- JSWorks import -->
<script src="/jsworks/jsworks.js"></script>
<link rel="stylesheet" href="/jsworks/jsworks.css">
<!-- JSWorks import end -->
<script src="/application.js"></script>
<link rel="stylesheet" href="/main.css">
<link rel="import" href="/main.html">
<link rel="stylesheet" href="/font-awesome/css/font-awesome.min.css">
</head>
<body>
<script>
JSWorks.config = {
backendURL: 'https://motion-project.herokuapp.com',
backendSocket: 'wss://motion-project.herokuapp.com/game',
serviceWorkerEnabled: false
}
</script>
<app-info>
<app-routes>
<app-route id="MenuRoute" page="MenuPage" default></app-route>
<app-route id="LoginRoute" page="LoginPage" match="login"></app-route>
<app-route id="SignUpRoute" page="SignUpPage" match="signup"></app-route>
<app-route id="SinglePlayerRoute" page="SinglePlayerPage" match="singleplayer"></app-route>
<app-route id="MultiplayerRoute" page="MultiplayerPage" match="multiplayer"></app-route>
<app-route id="LogoutRoute" page="LoadingPage" match="logout"></app-route>
<app-route id="ScoresRoute" page="ScoresPage" match="scores"></app-route>
</app-routes>
</app-info>
<div id="background"></div>
<div class="game-content">
<canvas id="game-canvas" tabindex="90000"></canvas>
<div id="game-hud" class="hidden">
<canvas id="hud-speedometer"></canvas>
<div id="hud-top-bar">
<div id="hud-score">
<div id="hud-score-text" class="hud-text">Счёт:</div>
<div id="hud-score-value" class="hud-value">3507</div>
</div>
<div id="hud-timer">
<div id="hud-combo">
<div id="hud-combo-text" class="hud-text">Комбо x2</div>
<div id="hud-combo-value-border">
<div id="hud-combo-value"></div>
</div>
</div>
<div id="hud-timer-value">02:58</div>
<div id="hud-countdown">3</div>
</div>
<div id="hud-stats">
<div id="hud-stats-text" class="hud-text">Сбито:</div>
<div id="hud-stats-value" class="hud-value">
<div id="hud-current-place">0</div>
<div style="display: none">
<span id="hud-place-delimiter">/</span>
<span id="hud-total-places">2</span>
</div>
</div>
<div id="hud-stats-delta">+ 00:07</div>
</div>
</div>
</div>
<div id="pause-menu">
<div id="pause-menu__container">
<div id="pause-menu__continue" class="button buttonWhite">Продолжить</div>
<div id="pause-menu__exit" class="button buttonWhite">Выйти</div>
</div>
</div>
<div id="gameover">
<div id="gameover__container">
<div id="gameover__score_text">Ваш счёт:</div>
<div id="gameover__score">1488</div>
<div id="gameover__kills_text">Сбитых кораблей:</div>
<div id="gameover__kills">13</div>
<div id="gameover__combo_text">Максимум контрольных точек подряд:</div>
<div id="gameover__combo">22</div>
<div id="gameover__button-container">
<div id="gameover__save-btn" class="button buttonWhite">Сохранить</div>
<div id="gameover__exit" class="button buttonWhite">Выйти</div>
</div>
</div>
</div>
</div>
<app-main></app-main>
</body>
</html>