-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (62 loc) · 3.47 KB
/
index.html
File metadata and controls
62 lines (62 loc) · 3.47 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="./styles.css">
<title>A Monster Story - RPG</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<header id="soundControls">
<button id ="noNoise">Disable sound effects</button>
<h2 class="sr-only" id="music">Background music</h2>
<audio id="backgroundMusic" controls loop aria-labelledby="music" title="Fancy copyright free medieval music!">
<source src="assets/sound/backgroundmusic.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</header>
<h1 class="sr-only">A Monster Story</h1>
<div id="startScreen">
<p id="title">In a world full of heroes, the monster is often closer than you think.</p>
<div id="image"><img src="assets/images/monsterstoryfull.png" alt="Title image of A Monster Story. Background: a dark, gloomy forest, a crescent moon and ominous shadows. The text is adorned with a sword and shield." id="logo">
<div id="startText">
<p>Welcome, adventurer. You have arrived in Mossglade, where your story begins. You should start your journey by exploring the town.</p></div></div>
<button id="buttonStart">Go to town</button>
</div>
<div id="game" tabindex="-1">
<div id="description"><p id="text"></p></div>
<div id="image"><img src="" alt="" id="locationImage"></div>
<div id="inventory">
<h2 class="sr-only">Your inventory</h2>
<div class="bag-container">
<p class="bag"><span class="sr-only">Your bag holds:</span><img src="assets/images/icons/inventory.png" alt="" id="bag"></p>
</div>
<div class="item-container">
<div class="items">
<div id="item1"><p><span class="sr-only">Stick</span><img src="" alt="" id="inventoryImage1" class="inventimage"></p></div>
<div id="item2"><p><span class="sr-only">Dagger</span><img src="" alt="" id="inventoryImage2" class="inventimage"></p></div>
<div id="item3"><p><span class="sr-only">Spear</span><img src="" alt="" id="inventoryImage3" class="inventimage"></p></div>
<div id="item4"><p><span class="sr-only">Sword</span><img src="" alt="" id="inventoryImage4" class="inventimage"></p></div>
</div></div></div>
<div id="stats">
<h2 class="sr-only">Your stats</h2>
<p class="stat"><span class="sr-only">XP: </span><img src="assets/images/icons/xp.png" alt="" id="xp"><strong><span id="xpText">0</span></strong></p>
<p class="stat"><span class="sr-only">Health: </span><img src="assets/images/icons/health.png" alt="" id="healthVial"><strong><span id="healthText">100</span></strong></p>
<p class="stat"><span class="sr-only">Gold: </span><img src="assets/images/icons/coin.png" alt="" id="coin"><strong><span id="goldText">50</span></strong></p>
</div>
<div id="creatureStats">
<h2 class="sr-only">Creature stats</h2>
<p class="stat">Creature: <strong><span id="creatureName"></span></strong></p>
<p class="stat">Health: <strong><span id="creatureHealth"></span></strong></p>
</div>
<div id="controls">
<h2 class="sr-only">Game controls</h2>
<button id="button1">Go to store</button>
<button id="button2">Go to tavern</button>
<button id="button3">Go to cave</button>
<button id="button4">Fight dragon</button>
</div></div>
</div>
<script src="./script.js"></script>
</body>
</html>