-
Notifications
You must be signed in to change notification settings - Fork 1
/
game-play.html
137 lines (130 loc) · 5.86 KB
/
game-play.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Game • Megagotchi</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer" />
<link rel="stylesheet" href="./assets/css/theme.css">
<link rel="stylesheet" href="./assets/css/audio.css">
<link rel="stylesheet" href="./assets/css/site-wide.css" />
<link rel="stylesheet" href="./assets/css/game-play.css">
<script type="module" src="./assets/js/audio.js" defer></script>
<script type="module" src="./assets/js/game-play.js" defer></script>
</head>
<body>
<div id="page-container" class="flex">
<header class="flex">
<!-- BEGIN Header Content -->
<section id="audio-section">
<audio loop controls controlsList="novolume nodownload noplaybackrate">
<source src="./assets/audio/bg-music.ogg" />
<source src="./assets/audio/bg-music.mp3" />
</audio>
</section>
<section id="logo-section">
<img src="./assets/img/title-megagotchi.png" title="Megagotchi" alt="Megagotchi" />
</section>
<nav id="nav-bar">
<i id="nav-button" class="fa-solid fa-bars" closed></i>
<div id="menu" class="box" hidden>
<!-- BEGIN Popup Menu Content -->
<h1>Credits</h1>
<div>
<div>
<h2>Peter C. Matthews</h2>
<span>Team Lead - JavaScript</span></li>
</div>
<div>
<h2>Stephen McKeown</h2>
<span>HTML - Graphical Design</span></li>
</div>
<div>
<h2>Mauricio Banados-Cornejo</h2>
<span>Wireframing & CSS</span></li>
</div>
<div>
<h2>Ramon Merrell</h2>
<span>JS DOM</span>
</div>
</div>
<div class="megaquarium">
<p>This mini-game is inspired by Megaquarium, by Twice Cricled.</p>
<a href="https://store.steampowered.com/app/600480/Megaquarium/" target="_blank">
<img src="./assets/img/mq-logo.png" title="Buy Megaquarium on Steam"
alt="Megaquarium Logo" />
<p>Buy game on Steam</p>
</a>
</div>
<!-- END Popup Menu Content -->
</div>
</nav>
<!-- BEGIN Header Content -->
</header>
<main class="flex">
<!-- BEGIN Page Content -->
<section class="flex game-window">
<!-- BEGIN Left Container -->
<section class="box info-box creature-container">
<div>
<p class="strCreatureName">Peacock Mantis Shrimp</p>
<div id="txtSpecialAbility"></div>
</div>
<div>
<p class="strPetName">Bob</p>
<img class="creature-image" id="imgAvatar" src="https://via.placeholder.com/170" />
<button id="btnSpecialAbility" class="btn btn-primary">Special Ability</button>
<button id="btnTerminate" class="btn btn-secondary">Terminate</button>
</div>
</section>
<!-- END Left Container -->
<!-- BEGIN Right Container -->
<section class="box info-box stats-container">
<div class="stat-row">
<div>
<p>HEALTH</p>
</div>
<meter id="idHealthBar" min="0" max="100" value="100">
</meter>
</div>
<div class="stat-row">
<div>
<p>HUNGER</p>
<button id="btnHunger" class="btn btn-primary action">Feed</button>
</div>
<meter class="inverse" id="idHungerBar" min="0" max="100" value="0">
</meter>
</div>
<div class="stat-row">
<div>
<p>BOREDOM</p>
<button id="btnBoredom" class="btn btn-primary action">Play</button>
</div>
<meter class="inverse" id="idBoredomBar" min="0" max="100" value="0">
</meter>
</div>
<div class="stat-row">
<div>
<p>HAPPINESS</p>
<button id="btnHappiness" class="btn btn-primary action">Pet</button>
</div>
<meter id="idHappinessBar" min="0" max="100" value="100">
</meter>
</div>
</section>
<!-- END Right Container -->
</section>
<!-- END Page Content -->
</main>
<footer class="flex">
<!-- BEGIN Footer Content -->
<!-- END Footer Content -->
</footer>
</div>
</body>
</html>