-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_REMOTE_4656.html
43 lines (40 loc) · 1.37 KB
/
index_REMOTE_4656.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
<!DOCTYPE html>
<html>
<head>
<title>Dungeon of Chaos</title>
<link rel="stylesheet" href="style/style.css">
</head>
<body>
<h1>Dungeon of Chaos</h1>
<div>
<div class="entity-container">
<h1><span id="player-name"></span>: <span id="player-hp"></span></h1>
<h3><ul id="player-stat-list"></ul></h3>
</div>
<div class="entity-container">
<h1><span id="player-inventory"></span>: <span id="player-gold"></span></h1>
<h3><ul id="player-item-list"></ul></h3>
</div>
<hr />
<div>
<label for="player-select">Hero: <select name="player-select" id="player-select" onchange="dungeon.reset()" /></select>
</div>
<div>
<button id="btn-fight" onclick="dungeon.fight();">Melee</button>
<button id="btn-steal" onclick="dungeon.fight('Steal');">Steal</button>
<button id="btn-potion" onclick="dungeon.drinkPotion();">Potion</button>
<button id="btn-reset" onclick="dungeon.reset();">Reset Combat</button>
</div>
<hr />
<div style="height:300px;width:400px;border:2px solid #ccc;font:14px/24px Verdana, Geneva, sans-serif;overflow:auto;" id="fight-log"></div>
</div>
<!-- Game Data Files -->
<script src="data/heroes.js"></script>
<script src="data/mobs.js"></script>
<script src="data/actions.js"></script>
<script src="data/loot.js"></script>
<!-- Game App Files -->
<script src="app/hero.js"></script>
<script src="app/game.js"></script>
</body>
</html>