-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkitchennightmare.html
243 lines (197 loc) · 13.2 KB
/
kitchennightmare.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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
<title style="font-size: 60%;">Kitchen Nightmare</title>
</head>
<body style="background-color: #28282b;">
<div class="mobilemenubutton">
<div id="rcorners1" class="child" onclick="setVisible('mobile_menu')" style="width: fit-content; height: fit-content;">
<i class="material-symbols-rounded" id="" style="padding: 3px; font-size: 32px; color: aliceblue;"> menu </i>
</div>
</div>
<div id="mobile_menu" style="height: fit-content;">
<div id="rcorners1" style="width: 100%; height: fit-content; padding-bottom: 20px; background-color: #252527;">
<div>
<div class="center" id="" onclick="setInvisible('mobile_menu')" style=" width: fit-content; position: absolute; top: 10px; margin-left: 0px; user-select: none;">
<i class="material-symbols-rounded" id="navbarformat" style="color: aliceblue;"> chevron_left </i>
</div>
<div style="width: 100%; height: 100%; display: flexbox; flex-direction: column; margin-top: 55px; padding-top: 20px; text-align: center;">
<div class="m_menubutton">
<a href="index.html" class="m_menubutton" style="color: aliceblue; text-decoration: none;">
<i class="material-symbols-rounded" id="navbarformat"> Home </i>
<p style="margin: 0;"> Home </p>
</a>
</div>
<div class="m_menubutton">
<a href="about.html" style="color: aliceblue; text-decoration: none;">
<i class="material-symbols-rounded" id="navbarformat"> recent_patient </i>
<p style="margin: 0;"> Skills </p>
</a>
</div>
<div class="m_menubutton">
<a href="contact.html" class="m_menubutton" style="color: aliceblue; text-decoration: none;">
<i class="material-symbols-rounded" id="navbarformat"> contact_page </i>
<p style="margin: 0;"> Contact </p>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="leftbar">
<div>
<div id="abs_center">
<nav>
<ul>
<li><a href="index.html">
<i class="material-symbols-rounded" id="navbarformat"> Home </i>
<p id="abs_center" style="margin: 0;"> Home </p>
</a></li>
<li><a href="about.html">
<i class="material-symbols-rounded" id="navbarformat"> recent_patient </i>
<p id="abs_center" style="margin: 0;"> Skills </p>
</a></li>
<li id="abs_center"><a href="contact.html">
<i class="material-symbols-rounded" id="navbarformat"> contact_page </i>
<p id="abs_center" style="margin: 0;"> Contact </p>
</a></li>
</ul>
</nav>
</div>
</div>
</div>
<div class="socialbar" style="height: fit-content;">
<div>
<div id="abs_center" style="display: inline; flex-wrap: nowrap; flex-direction: row;">
<a href="https://github.com/NiicoNiicoDev" style="margin-right: 10px;">
<img src="images/social/githubicon.png" class="portfolioimage" alt="github" style="max-width: 32px; max-height: 32px; min-height: 32px; min-width: 32px;">
</a>
<a href="https://www.linkedin.com/in/georgewcottrell/">
<img src="images/social/linkedinIcon.png" class="portfolioimage" alt="linkedin" style=" max-width: 32px; max-height: 32px; min-height: 32px; min-width: 32px;">
</a>
</div>
</div>
</div>
<div class="rightbody" id="rightbody" style="width: 80%;">
<div class="center" style="padding-top: 40px; width:40vw; padding-left: 20px; padding-right: 20px;">
<div id="rcorners1" style="margin-bottom: 40px;">
<p id="abs_center" style="font-size:xx-large; font-weight: bolder; padding: 20px; margin: 0; text-align: center;">
Kitchen Nightmare
</p>
</div>
</div>
<hr id="abs_center" style="width: 90%;">
<div class="center" style="width:40vw; padding-left: 20px; padding-right: 20px;">
<p id="abs_center" style="font-size:large; font-weight: bold; margin: 0; text-align: center;">
Kitchen Nightmare is a 2.5D kitchen themed dungeon crawler about a chef who has lost his mind and developed an unhealthy relationship with his ingredients.
</p>
<p id="abs_center" style="font-size:large; font-weight: bold; padding: 20px; margin: 0; text-align: center;">
The project was completed as part of my 3rd year 'Collaborative Games Development' module at the University of Chester.
The team for this project consisted of team of 7 members with a composition of 4 Programmers, 2 Artists and UI Designer with myself contributing as the Team Lead, Programmer and Level Designer
</p>
</div>
<hr id="abs_center" style="width: 90%;">
<div class="center" style="width:40vw; padding-left: 20px; padding-right: 20px;">
<p id="abs_center" style="font-size:x-large; font-weight: bold; padding: 20px; margin: 0; text-align: center; ">
Video Playthrough
</p>
<p id="abs_center" style="font-size:small; font-weight: 200; padding-bottom: 20px; margin: 0; text-align: center; ">
<a href="https://www.youtube.com/watch?v=IMaDHpBHBmM">YouTube Link</a>
</p>
<div id="abs_center" style="margin-bottom: 40px;">
<iframe width="1280" height="720"
src="https://www.youtube.com/embed/IMaDHpBHBmM">
</iframe>
</div>
</div>
<hr id="abs_center" style="width: 90%;">
<div class="center" style="padding-top: 10px; width:40vw; padding-left: 20px; padding-right: 20px; margin-bottom: 20px;">
<div id="rcorners1" style="margin-bottom: 40px;">
<p id="abs_center" style="font-size:x-large; font-weight: bolder; padding: 5px; margin: 0; text-align: center;">
Key Features
</p>
</div>
<div>
<div id="rcorners1" style="margin-bottom: 20px;">
<p id="abs_center" style="font-size:large; font-weight: bold; padding: 5px; margin: 0; text-align: center;">
Procedural Level Generation
</p>
</div>
<div id="abs_center" style="display: flex; flex-direction: row;" >
<img src="images/portfolio/KitchenNightmare/mst.png" style="display: block; border-radius: 20px; margin-bottom: 20px; width:100%; height: 100%; margin-right: 20px;" alt="Coming Soon">
<div style="width: 80%; min-width: 400px; max-width: 600px">
<p id="abs_center" style="font-size:large; font-weight: normal; padding: 10px; margin: 0; text-align: center; align-content: center;">
To procedurally generate random rooms and connect them with pathways, three key algorithms were used:
Delaunay Triangulation, the Minimum Spanning Tree (MST), and the A* search algorithm.
</p>
<p style="font-size:large; font-weight: normal; padding: 10px; padding-top: 20px; margin: 0; text-align: center;">
Rooms were placed in an enclosed space and triangulated by x-coordinates, with non-Delaunay triangles adjusted via edge flipping for improved visuals.
Connections between rooms were formed using the MST, but additional pathways were added to introduce loops and enhance gameplay fluidity.
The A* search algorithm then connected rooms with pathway assets, using Manhattan Distance as a heuristic to create straight, precise hallways for player navigation.
</p>
</div>
</div>
</div>
</div>
<hr id="abs_center" style="width: 60%;">
<div class="center" style="padding-top: 10px; width:40vw; padding-left: 20px; padding-right: 20px; margin-bottom: 20px;">
<div>
<div id="rcorners1" style="margin-bottom: 20px;">
<p id="abs_center" style="font-size:large; font-weight: bold; padding: 5px; margin: 0; text-align: center;">
Class / Inheritance Based Weapons and Combat System
</p>
</div>
<div id="abs_center" style="display: flex; flex-direction: row;" >
<div style="width: 80%; min-width: 400px; max-width: 600px">
<p id="abs_center" style="font-size:large; font-weight: normal; padding: 10px; margin: 0; text-align: center; align-content: center;">
I worked with another programmer to develop the attack system framework and several unique weapons.
This system followed a top-down approach, with a base weapon class from which specific types—Basic, Line, AOE, and Custom Collider—were derived.
</p>
<p style="font-size:large; font-weight: normal; padding: 10px; padding-top: 20px; margin: 0; text-align: center;">
For instance, the mortar and pestle inherits core behaviors like damage, collision detection, and radius size from the Base Weapon and AOE classes.
Its unique ability to pull in and push out enemies is implemented within its own derived class.
To handle context-sensitive damage timings, we implemented a "DealDamage" function in the base class, triggered via animation events.
This ensured consistent damage handling across all weapons, regardless of their effects.
</p>
</div>
<img src="images/portfolio/KitchenNightmare/hammer.png" style="display: block; border-radius: 20px; margin-bottom: 20px; width:100%; height: 100%; margin-left: 20px;" alt="Coming Soon">
</div>
</div>
</div>
<hr id="abs_center" style="width: 90%;">
<div class="center" style="padding-top: 10px; width:40vw; padding-left: 20px; padding-right: 20px; margin-bottom: 60px;">
<div id="rcorners1" style="margin-bottom: 40px;">
<p id="abs_center" style="font-size:x-large; font-weight: bolder; padding: 5px; margin: 0; text-align: center;">
Learning Points
</p>
<p style="font-size:large; font-weight: normal; padding: 10px; padding-top: 20px; text-align: center;">
Initially, I found the top-down programming approach challenging for conceptualizing and prototyping.
However, I realized it is highly effective when all requirements are well-defined prior to development,
providing a structured framework for implementation. This approach enabled our attack system to become a
well-designed and extensible feature that accommodated all current and future potential weapons and attack types
</p>
<p style="font-size:large; font-weight: normal; padding: 10px; padding-top: 20px; margin-bottom: 60px; text-align: center;">
Additionally, when working in a collaborative environment, it is crucial to maintain regular updates on feature implementation.
While adhering to a pre-established plan is essential, individual programming styles and approaches can lead to integration challenges over time if not properly aligned.
</p>
</div>
</div>
</div>
</body>
</html>
<script>
function setVisible(id) {
document.getElementById(id).style.visibility = 'visible';
document.getElementById(id).style.width = '100px'
document.getElementById('rightbody').style.opacity = '0.1'
}
function setInvisible(id) {
document.getElementById(id).style.width = '0px'
document.getElementById(id).style.visibility = 'hidden';
document.getElementById('rightbody').style.opacity = '1'
}
</script>