generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
77 lines (65 loc) · 3.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="A Text based Adventure Game for fans of Limmy's Adventure Call sketches" />
<link href="https://fonts.googleapis.com/css2?family=MedievalSharp&family=Open+Sans:wght@300&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="assets/css/style.css" />
<title>Adventure Call</title>
</head>
<body>
<!-- Page heading including logo from show.-->
<div class="heading">
<div class="center-logo">
<img src="assets/images/ac-logo.png" alt="Adventure Call Logo" />
</div>
</div>
<!-- Welcome screen for game including name input box. -->
<div id="welcome-screen" class="question-container show">
<div class="question-style">
<img src="assets/images/falconhoof.jpg" alt="Falconhoof. A man dressed in typical medival fantasy clothing." width="265" height="200" />
<h2>Greetings Traveller and welcome to Adventure Call. I am Falconhoof. I will be your guide on this quest. What is your name traveller?</h2>
<label class="question-style">
Please enter Your Name to begin!
<input class="input-style" id="player-name" name="playername" type="text" />
</label>
<div>
<button id="start-game" class="button-style">Start Game</button>
</div>
</div>
</div>
<!-- This screen shows if the player does not enter a valid name -->
<div id="no-name-screen" class="question-container hide">
<div class="question-style">
<h2>Please Enter a Name!</h2>
<button id="go-back" class="button-style">OK</button>
</div>
</div>
<!-- Main Game Screen with questions populated by gameScript.js and question information taken from questions.js. -->
<div id="game-screen" class="question-container hide">
<div id="welcome" class="welcome-style hide">Welcome!</div>
<div id="question-image"></div>
<p class="question-style">Time elapsed: <span id="time">0</span>s</p>
<div id="question" class="question-style">Question</div>
<div id="answer-options" class="buttons">
<button class="button-style">Answer 1</button>
<button class="button-style">Answer 2</button>
<button class="button-style">Answer 3</button>
<button class="button-style">Answer 4</button>
</div>
</div>
<!-- End Screen which displays fireworks display gif -->
<div id="end-screen" class="question-container hide">
<div class="question-style">
<img src="assets/images/fireworks.gif" alt="Animated 8-bit graphcs style fireworks" width="265" height="200" />
<h2 id="end-message">You have done well in your quest, playerName. You have completed the game in endTime seconds!</h2>
<button id="reload" class="button-style">Go back to the beginning?</button>
</div>
</div>
<!-- Javascript tags for jQuery and custom js files written by Mark Johnston -->
<script src="https://code.jquery.com/jquery-3.5.1.js" integrity="sha256-QWo7LDvxbWT2tbbQ97B53yJnYU3WhH/C8ycbRAkjPDc=" crossorigin="anonymous"></script>
<script src="assets/js/questions.js"></script>
<script src="assets/js/gameScript.js"></script>
</body>
</html>