-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadvdemo.html
41 lines (35 loc) · 1.46 KB
/
advdemo.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
<!DOCTYPE HTML>
<html>
<head>
<title>Prototype Adventure Game</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="advScript.js"></script>
</head>
<body>
<!--
Changes - changed ids to include a - between words, make sure to update the javascript
-->
<h1> Javascript Adventure Game </h1>
<p id="options-logic">Start an adventure.</p>
<p id="location-logic"><br></p>
<p id="location-description"><br></p>
<p id="item-logic"></p>
<p id="inventory">Inventory:</p>
<p id="achievements">Achievements:</p>
<p id="quests">Quests:</p>
<button onclick="moveNorth()"> N </button>
<button onclick="moveSouth()"> S </button>
<button onclick="moveWest()"> W </button>
<button onclick="moveEast()"> E </button>
<button onclick="activateItem()"> Z </button>
<div id="hide-on-load"><p>If you can read this the script didn't load and I apologize, but I don't get why. Current problems:</p><ol><li>uBlock blocks script.</li></ol></div>
</body>
<!--
Ideas to add - Quests
Idea 1 - You come upon a lonely hillstead, a sign invites you inside.
A man asks you to quest to find the three rings of power to heal his ailing daughter.
One ring from fighting the armies of aggramidir
Second ring from exploring sewers of Kowloon
Third ring from losing your laser rifle to a goblin then exploring their camp
-->
</html>