-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
145 lines (131 loc) · 6.04 KB
/
game.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>8PG</title>
<link rel="stylesheet" type="text/css" href="css/game.css">
<link rel="stylesheet" type="text/css" href="dep/animate.css/animate.min.css">
<script src="dep/jquery/jquery-3.5.1.min.js"></script>
<script src="dep/sweetalert2/sweetalert2@10.js"></script>
<script type="text/javascript" src='js/game.js'></script>
</head>
<!-- Carga la partida que se establece en el localStorage o inicia una con la plantilla. -->
<body>
<div id='upper-bar'>
<div id='screen-switch'>
<button id='menu'>☰</button>
<button id='board-switch' class='switch'>Board</button>
<button id='upgrades-switch' class='switch'>Crafting</button>
</div>
<div id='status-bar'>
<div class='status-box'>
<img src='res/img/gold.png' alt='gold' height='85%'>
<div><p>Gold</p><p id='gold-score' class='score'>1000</p></div>
</div>
<div class='status-box' id='status-mana'>
<img src='res/img/mana.png' alt='mana' height='85%'>
<div><p>Mana</p><p id='mana-score' class='score'>1000</p></div>
</div>
<div class='status-box'>
<img src='res/img/food.png' alt='food' height='85%'>
<div><p>Food</p><p id='food-score' class='score'>1000</p></div>
</div>
</div>
<div id='events-bar'>
<textarea id='events-list' readonly='true' rows='3'></textarea>
<button class='action-button' id='end-turn'>End turn (1)</button>
</div>
</div>
<div id='board-screen' class='game-screen animate__animated animate__slideInRight animate__faster'>
<div id='board'>
</div>
</div>
<div id='lower-bar'>
<div id='insight'>
<div id='title-box'>
<p id='title'><b></b></p>
<img class='insight-icon' src='res/img/stamina.png' alt='stamina'>
<p id='stamina-score'></p>
</div>
<div class='insight-box'>
<p class='title'> Health: </p>
<img class='insight-icon' src='res/img/health.png' alt='health'>
<p id='health-score'></p>
</div>
<div class='insight-box'>
<p class='title'> Strength: </p>
<img class='insight-icon' src='res/img/strength.png' alt='strength'>
<p id='strength-score'></p>
</div>
<div class='insight-box'>
<select id='powerups-list'></select>
<button id='powerups-cast'>Cast</button>
<p class='title'> Production: </p>
<img id='production-icon' class='insight-icon' src='res/img/gold.png' alt='production'>
<p id='production-score'></p>
</div>
</div>
<div id='game-buttons'>
<button class='action-button' id='move'>Move</button>
<button class='action-button' id='attack'>Attack</button>
</div>
</div>
<div id='lowest-bar'>
<div id='insight-2'>
<div id='title-box'>
<p id='title'><b>Empty square</b></p>
<img class='insight-icon' src='res/img/background-empty.png' alt='empty'>
</div>
<div class='insight-box'>
<img class='insight-icon' src='res/img/background-empty.png' alt='empty'>
<p class='title'> Reinforcements: </p>
</div>
<div class='insight-box'>
<img class='insight-icon' src='res/img/background-empty.png' alt='empty'>
<select name="reinforcements-list" id="reinforcements-list">
</select>
</div>
<div class='insight-box'>
<img class='insight-icon' src='res/img/background-empty.png' alt='empty'>
</div>
</div>
<div id='game-buttons-2'>
<button class='action-button' id='spawn'>Spawn</button>
<button class='action-button' id='disarm'>Disarm</button>
</div>
</div>
<div id='upgrade-screen' class='game-screen animate__animated animate__slideInLeft animate__faster'>
<select name="crafting-list" id="crafting-list" size='14'>
</select>
<div id='crafting-info'>
<div id='crafting-description'>
<p id='crafting-description-p'></p>
<div id='crafting-summary-unit'>
<div style='display:flex;justify-content:center;align-items:center;height:70%'>
<img class="summary-icon" src="res/img/health.png" alt="health">
<p id='crafting-unit-health'></p>
</div>
<div style='display:flex;justify-content:center;align-items:center;height:70%'>
<img class="summary-icon" src="res/img/strength.png" alt="strength">
<p id='crafting-unit-strength'></p>
</div>
<div style='display:flex;justify-content:center;align-items:center;height:70%'>
<img class="summary-icon" src="res/img/stamina.png" alt="stamina">
<p id='crafting-unit-stamina'></p>
</div>
</div>
</div>
<div id='crafting-data'>
<img id='crafting-portrait' src='res/img/grass.png' alt='portrait'>
<div id='crafting-cost'>
<p>Cost: </p>
<img src='res/img/gold.png' alt='cost'>
<p> 100</p>
</div>
<button class='action-button'>Craft</button>
</div>
</div>
</div>
</body>
</html>