-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
118 lines (117 loc) · 5.12 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
109
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Ragnarok</title>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" integrity="sha384-gfdkjb5BdAXd+lj+gudLWI+BXq4IuLW5IT+brZEZsLFm++aCMlF1V92rMkPaX4PP" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Staatliches" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- The Modal -->
<div id="start-modal" class="modal">
<!-- Modal content -->
<div class="modal-content box">
<h1 id="main-title">Ragnarok</h1>
<img class="player-img" id="init-Thor" src="images/Thor.png"/>
<img class="player-img" id="init-Loki" src="images/loki.png"/>
<div id="instructions">
<h2>Move your character around and find weapons. Explore to find the most powerful one.</h2>
<h2>If you take the Hero's Shield, it will provide you extra defense in battle.</h2>
<h2>When players encounter, they take turns to attack or defend.</h2>
<h2>Be careful with the frostbite! It will damage you.</h2>
<p>*This game has to be played on a full screen.</p>
</div>
<button class="close">Let's play</button>
</div>
</div>
<div id="end-modal" class="modal-two">
<!-- Modal content -->
<div class="modal-content-two box">
<h1 id="end-title">Raise your horns!</h1>
<h2 id="winner-phrase"><span id="match-winner"></span> won the battle!</h2>
<div>
<img id="winner-img" class="player-img" src=""/>
<img id="winner-gif" src=""/>
</div>
<div>
<button class="rematch">Rematch!</button>
</div>
<footer>
<p>Illustrations by Valentina Reyes C</p><p>Game developed by Cristobal Heiss J <a href="https://www.freecodecamp.org/ceheiss" target="_blank"><i class="fab fa-free-code-camp"></i></a> <a href="https://github.com/Ceheiss" target="_blank"><i class="fab fa-github"></i></a> <a href="https://twitter.com/cristobalheiss" target="_blank"><i class="fab fa-twitter"></i></a> <a href="https://www.codepen.io/ceheiss" target="_blank"><i class="fab fa-codepen"></i></a></p>
</footer>
</div>
</div>
<!-- Prompt when characters meet to fight, outside Flex -->
<h1 id="fight">Time to battle!</h1>
<i id="back-volume" class="fas fa-volume-up" title="background music"></i>
<!-- Board and sidebars -->
<div id="game">
<!-- sidebar player 1 -->
<div id="player1-box" class="stats-box box">
<h2>Thor</h2>
<img class="player-img" src="images/Thor.png"/>
<h3>Health: <span id="player1-health"></span></h3>
<h3>Weapon: <span id="player1-weapon"></span></h3>
<img class="weapon-display" id="w-display-1" src="" />
<h3>Damage: <span id="player1-damage"></span></h3>
<h2 id="1-player-turn" class="turn">Your Turn!</h2>
<button id="attack1" class="fightButton1 attackButton">Attack</button>
<button id="defend1" class="fightButton1 defendButton">Defend</button>
</div>
<!-- Central Board -->
<div id="table">
<div class="grid-container box"></div>
<div id="element"></div>
</div>
<!-- sidebar player 2 -->
<div id="player2-box" class="stats-box box">
<h2>Loki</h2>
<img class="player-img" src="images/loki.png"/>
<h3>Health: <span id="player2-health"></span></h3>
<h3>Weapon: <span id="player2-weapon"></span></h3>
<img class="weapon-display" id="w-display-2" src="" />
<h3>Damage: <span id="player2-damage"></span></h3>
<h2 id="2-player-turn" class="turn">Your Turn!</h2>
<button id="attack2" class="fightButton2 attackButton">Attack</button>
<button id="defend2" class="fightButton2 defendButton">Defend</button>
</div>
</div>
<!-- Sound Effects-->
<audio id="thunder" src="sounds/thunder.mp3">
Your browser does not support the audio element.
</audio>
<audio id="attack" src="sounds/attack.mp3">
Your browser does not support the audio element.
</audio>
<audio id="background" src="sounds/background.mp3">
Your browser does not support the audio element.
</audio>
<audio id="frostbite" src="sounds/frostbite.mp3">
Your browser does not support the audio element.
</audio>
<audio id="getItem" src="sounds/getItem.mp3">
Your browser does not support the audio element.
</audio>
<audio id="horn" src="sounds/horn.mp3">
Your browser does not support the audio element.
</audio>
<audio id="drum" src="sounds/drum.mp3">
Your browser does not support the audio element.
</audio>
<audio id="foot" src="sounds/foot.mp3">
Your browser does not support the audio element.
</audio>
<audio id="celebrate" src="sounds/celebrate.mp3">
Your browser does not support the audio element.
</audio>
<!-- JQUERY -->
<script
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha256-3edrmyuQ0w65f8gfBsqowzjJe2iM6n0nKciPUp8y+7E="
crossorigin="anonymous"></script>
<script src="scripts.js"></script>
</body>
</html>