-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (44 loc) · 2.25 KB
/
index.html
File metadata and controls
48 lines (44 loc) · 2.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="description"
content="Build a Role-Playing Game using JavaScript, featuring characters, quests, and battles." />
<meta name="keywords" content="Role-Playing Game, JavaScript, gaming, web development, interactive" />
<meta property="og:title" content="Role-Playing Game" />
<meta property="og:description"
content="Build a Role-Playing Game using JavaScript, featuring characters, quests, and battles." />
<meta property="og:image" content="https://coderespite.com/image/js-projects/role-playing-game.png" />
<meta property="og:url" content="https://coderespite.com/projects/js-projects/role-playing-game" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Role-Playing Game" />
<meta name="twitter:description"
content="Build a Role-Playing Game using JavaScript, featuring characters, quests, and battles." />
<meta name="twitter:image" content="https://coderespite.com/image/js-projects/role-playing-game.png" />
<meta charset="utf-8">
<link rel="stylesheet" href="./styles.css">
<title>RPG - Dragon Repeller</title>
</head>
<body>
<div id="game">
<div id="stats">
<span class="stat">XP: <strong><span id="xpText">0</span></strong></span>
<span class="stat">Health: <strong><span id="healthText">100</span></strong></span>
<span class="stat">Gold: <strong><span id="goldText">50</span></strong></span>
</div>
<div id="controls">
<button id="button1">Go to store</button>
<button id="button2">Go to cave</button>
<button id="button3">Fight dragon</button>
</div>
<div id="monsterStats">
<span class="stat">Monster Name: <strong><span id="monsterName"></span></strong></span>
<span class="stat">Health: <strong><span id="monsterHealth"></span></strong></span>
</div>
<div id="text">
Welcome to Dragon Repeller. You must defeat the dragon that is preventing people from leaving the town. You
are in the town square. Where do you want to go? Use the buttons above.
</div>
</div>
<script src="./script.js"></script>
</body>
</html>