This repository has been archived by the owner on Dec 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
108 lines (82 loc) · 2.73 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>untitled_game.js</title>
<!--Styling-->
<link href="style.css" rel="stylesheet" type="text/css">
<!--Scripts-->
<script src="assets/script/script.js"></script>
<script src="assets/script/type.js"></script>
</head>
<body onload="intro()">
<!--Intro-->
<div class="intro" id="intro">
<span>untitled_game.js</span>
</div>
<!--Death-->
<div class="death" id="death-screen">
<span>You died.</span>
<p>Reload the page to restart the game.</p>
</div>
<!--Fight-->
<div class="fight" id="fight">
<p id="health-bar-label" class="bar-label label-health">Health</p>
<div id="health-bar" class="health-bar">
<div class="fight-bars">
<div id="health" class="health"></div>
</div>
</div>
<p id="monster-bar-label" class="bar-label label-monster">Something</p>
<div id="monster-bar" class="monster-bar">
<div class="fight-bars">
<div id="monster" class="monster"></div>
</div>
</div>
<!--Monster-->
<img id="monster-img" class="centre-img monster-img" src="/assets/img/monster.webp">
<img id="omori-img" class="centre-img omori-img" src="/assets/img/knife_dropped.png">
<!--Fight Options-->
<button id="attack" class="button attack-button" onclick="attack()">Attack</button>
<button id="cool" class="button cool-button" onclick="calm()">Calm Down</button>
</div>
<!--Stabbed Image-->
<img id="stabbed" class="stabbed" src="/assets/img/stabbed.gif">
<!--Text-->
<div class="textbox" id="textbox"></div>
<!--Info-->
<div class="info">
<div id="location-box" class="location">
<h1>Location</h1>
<span id="location"></span>
</div>
<div id="objective-box" class="objective">
<h1>Objective</h1>
<span id="objective"></span>
</div>
<div id="valid-box" class="valid">
<h1>Valid Commands</h1>
<span id="valid"></span>
</div>
</div>
<!--Input-->
<div contenteditable class="input" id="input" onkeyup="checkInput(event)"></div>
<!--Background-->
<img id="background" class="background" src="/assets/img/background.gif">
<!--Audio Files-->
<audio id="whiteSpace" inline loop autoplay>
<source src="assets/audio/white-space.mp3" type="audio/mpeg">
</audio>
<audio id="nyctophobia" inline loop>
<source src="assets/audio/nyctophobia.mp3" type="audio/mpeg">
</audio>
<audio id="calm" inline loop>
<source src="assets/audio/calm.mp3" type="audio/mpeg">
</audio>
<audio id="death" inline>
<source src="assets/audio/death.mp3" type="audio/mpeg">
</audio>
<audio id="credit" inline loop>
<source src="assets/audio/credit.mp3" type="audio/mpeg">
</audio>
</body>
</html>