Compare commits

..

3 Commits

Author SHA1 Message Date
1c3b37a70c Merge branch 'main' of git.nathancummins.com.au:encie22/portfolio
All checks were successful
Build and Deploy to Web Server / deploy (push) Successful in 16m51s
2025-08-28 16:06:56 +09:30
ca15fa782d Expand DNDT, add TrackInline, more tracks 2025-08-28 16:03:29 +09:30
ba8eec5879 Add colour options for primary colour 2025-08-28 16:02:32 +09:30
20 changed files with 191 additions and 24 deletions

View File

@@ -17,5 +17,8 @@
],
"css.customData": [
".vscode/tailwind.json"
]
],
"[mdx]": {
"editor.wordWrap": "on"
}
}

View File

@@ -31,19 +31,61 @@ externalLinks:
]
---
_This page contains just a few details of my involvement in the project. I will continue to update it and add more details while the game develops (and when I get the time to!)_.
import TrackInline from "@components/TrackInline.astro";
<small>
_This page contains just a few details of my involvement in the project. I
will continue to update it and add more details while the game develops (and
when I get the time to!)_.
</small>
Since late 2023 I have had the pleasure of working with the team at Catalyst Games on the cozy-adventure RPG _Dungeons and Dining Tables_, a game where you play as an axolotl on a quest to decorate their house.
This little axolotl and the team around it have since become key figures in my life and I consider myself privileged to be a part of the project's development.
![The axolotl, which I affectionately name Frank after the axolotl of a friend](/src/assets/img/projects/dungeons-and-dining-tables/nathan-cummins-dungeons-and-dining-tables-13.jpg)
![The axolotl, which I affectionately name Frank after the axolotl of a friend. Screenshot from a development build.](/src/assets/img/projects/dungeons-and-dining-tables/nathan-cummins-dungeons-and-dining-tables-13.jpg)
# My Role
While I joined the team partway through the development of the project, I have still been involved since quite early in the development timeline as a composer, sound designer, and also as a programmer responsible for almost all integration of audio.
This has allowed me to deeply integrate both music and sound into the game and with cross-pollination of the two together, from birds that tweet the melody of the area that you are in, to music that mixes between highly orchestrated pieces to music for jazz quartet, to custom designed logic allowing sounds to be obscured by objects in the game-world.
# The Gameplay and My Approach
While I can't share too much currently, the [steam page](https://store.steampowered.com/app/2941630/Dungeons_and_Dining_Tables/) has a good overview of the the gameplay:
> Dungeons and Dining Tables is a Cozy-Adventure RPG where you play as an Axolotl on a quest to decorate their house and defeat the termites out to eat their furniture!
>
> Randomly generated dungeons to explore with puzzles to complete, enemies to defeat and rare furniture loot to collect. Travel through the World Tree, take on new rogue-like challenges and defeat bosses for the most epic of furnishings (maybe even a Legendary Bed of Maximum Health!)
>
> Furniture collected on a dungeon run can be used to decorate not only your humble home but also the homes of the cute and quirky characters of the town of Kindlerest! Decorating your home will give you comfy points that are used to level up your house, improve player stats, upgrade shops and other quality of life features for your dungeon runs.
Considering the gameplay, my approach to the audio has been to make it as dynamic and responsive to the gameplay as possible, with reactive music and sound design that not only compliments but heightens the user experience.
This is best exemplified by the music of the town _Kindlerest_, which is a cosy orchestral piece (with some hustle-and-bustle for good measure) that transitions seamlessly to a jazz quartet piece (_Pine for a Tune_) while you are decorating your house via some simple layering in FMOD.
<div class="my-4">
<TrackInline id="dndt-kindlerest" />
<TrackInline id="dndt-pine-for-a-tune" />
</div>
![The decoration mode. Screenshot from a development build.](/src/assets/img/projects/dungeons-and-dining-tables/nathan-cummins-dungeons-and-dining-tables-4.jpeg)
# My Inspiration
Throughout the project I have taken a lot of inspiration from games that have been significant to my development as a composer and as a sound designer.
The games that have inspired me the most include _Super Mario Galaxy_, and many games from the _The Legend of Zelda_ series, in particular the approach to sound design from _The Legend of Zelda: Breath of the Wild_.
Throughout the project my inspiration has been drawn from a variety of sources.
Primarily and probably unsurprisingly, I have drawn a lot of inspiration from the art style itself and in particular the animations done by the extremely talented Ty Hemi.
The art style and animations are so full of character that it is difficult not to be inspired by them and as a result my sound design work tries to reflect the same character and charm.
I have also of course taken a lot of inspiration from games that have been significant to my development as a composer and as a sound designer.
The games that have inspired me the most include _Super Mario Galaxy_ and many games from the _The Legend of Zelda_ series, in particular the approach to the sound design of _The Legend of Zelda: Breath of the Wild_.
It is also impossible to ignore the influence of the _Animal Crossing_ series, in particular _Animal Crossing: New Horizons_ which is most evident in the UI sounds.
# Listen
<div class="my-4">
<TrackInline id="dndt-lampshade-grove" />
<TrackInline id="dndt-kindlerest" />
<TrackInline id="dndt-pine-for-a-tune" />
<TrackInline id="dndt-the-couch-troll" />
<TrackInline id="dndt-the-couch-trolls-lair" />
<TrackInline id="dndt-gameplay-trailer" />
</div>

Binary file not shown.

BIN
public/audio/dungeons-and-dining-tables/Kindlerest.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
public/audio/dungeons-and-dining-tables/Pine_for_a_Tune.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

BIN
public/audio/dungeons-and-dining-tables/The_Couch_Troll.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,8 @@
{
"src": "dungeons-and-dining-tables/Dungeons_and_Dining_Tables.mp3",
"metadata": {
"title": "Gameplay Trailer",
"subtitle": "Dungeons and Dining Tables",
"extra": "Synthetic Orchestra"
}
}

View File

@@ -0,0 +1,8 @@
{
"src": "dungeons-and-dining-tables/Kindlerest.mp3",
"metadata": {
"title": "Kindlerest",
"subtitle": "Dungeons and Dining Tables",
"extra": "Synthetic Orchestra"
}
}

View File

@@ -0,0 +1,8 @@
{
"src": "dungeons-and-dining-tables/Pine_for_a_Tune.mp3",
"metadata": {
"title": "Pine for a Tune",
"subtitle": "Dungeons and Dining Tables",
"extra": "Synthetic Orchestra"
}
}

View File

@@ -0,0 +1,8 @@
{
"src": "dungeons-and-dining-tables/The_Couch_Troll.mp3",
"metadata": {
"title": "The Couch Troll",
"subtitle": "Dungeons and Dining Tables",
"extra": "Synthetic Orchestra"
}
}

View File

@@ -0,0 +1,8 @@
{
"src": "dungeons-and-dining-tables/The_Couch_Trolls_Lair.mp3",
"metadata": {
"title": "The Couch Troll's Lair",
"subtitle": "Dungeons and Dining Tables",
"extra": "Synthetic Orchestra"
}
}

View File

@@ -2,10 +2,8 @@
// TODO: Handle author, etc., via inclusion of some sort of tag in the quote, either frontmatter tags or simply [author=Person Name]
---
<div class="flex w-full items-center">
<blockquote
class="border-primary mx-auto my-8 max-w-xl border-l-6 py-2 pl-4 italic"
>
<div class="my-4 flex w-full items-center px-2 md:px-8">
<blockquote class="border-primary mx-auto border-l-6 pl-4 italic">
<p class="text-lg font-light"><slot /></p>
</blockquote>
</div>

View File

@@ -54,7 +54,7 @@ const initialQueue = await Promise.all(
</div>
<div
id="player:time:progress:played"
class="bg-primary absolute top-0 left-0 m-0 h-full p-0"
class="from-primary to-primary-50 absolute top-0 left-0 m-0 h-full bg-gradient-to-r p-0"
>
</div>
</div>
@@ -342,7 +342,7 @@ const initialQueue = await Promise.all(
return { bufferedSeconds: 0, bufferedPercent: 0 };
}
addFromTrackCard(track) {
addToQueue(track, immediatePlay = false) {
var current = this.playlist[this.index];
if (
@@ -356,7 +356,7 @@ const initialQueue = await Promise.all(
this.play();
}
} else {
this.queue(track, true);
this.queue(track, immediatePlay);
}
}
}

View File

@@ -14,6 +14,10 @@ import { getAudioDurationInSeconds } from "get-audio-duration";
import { join } from "path";
const fullFilePath = join(process.cwd(), "public", track.data.src);
const duration = await getAudioDurationInSeconds(fullFilePath);
if (!track.data.card) {
throw new Error(`Track with ID "${track.id}" is missing card data.`);
}
---
<div
@@ -21,7 +25,7 @@ const duration = await getAudioDurationInSeconds(fullFilePath);
"relative flex min-h-42 flex-auto hover:cursor-pointer",
index < 2 ? "lg:w-1/2" : "sm:w-1/2 md:w-1/3 lg:w-1/4"
]}
onclick=`window.player.addFromTrackCard({ src: "${track.data.src}", "metadata": ${JSON.stringify(track.data.metadata)}, "duration": "${duration}" })`
onclick=`window.player.addToQueue({ src: "${track.data.src}", "metadata": ${JSON.stringify(track.data.metadata)}, "duration": "${duration}" }, true);`
>
<Image
src={track.data.card.image.src}

View File

@@ -0,0 +1,34 @@
---
import { getTrackByID } from "@lib/utils";
import { Icon } from "astro-icon/components";
interface Props {
id: string;
class?: string;
}
const { id, class: className, ...attrs } = Astro.props as Props;
const track = getTrackByID(id);
if (!track) {
throw new Error(`Track with ID "${id}" not found.`);
}
import { getAudioDurationInSeconds } from "get-audio-duration";
import { join } from "path";
const fullFilePath = join(process.cwd(), "public", track.data.src);
const duration = await getAudioDurationInSeconds(fullFilePath);
---
<div
class:list={[
"text-primary flex items-center transition hover:cursor-pointer hover:text-gray-300",
className
]}
onclick=`window.player.addToQueue({ src: "${track.data.src}", "metadata": ${JSON.stringify(track.data.metadata)}, "duration": "${duration}" }, true);`
{...attrs}
>
<Icon name="fa7-solid:play-circle" class="mr-2 inline-block" />
<span class="inline-block">{track.data.metadata.title}</span>
</div>

View File

@@ -68,23 +68,30 @@ const tracks = defineCollection({
subtitle: z.string().optional(),
extra: z.string().optional(),
artist: z.string().optional().default("Nathan Cummins"),
artwork: z.preprocess((val) => `/src/assets/img/tracks/${val}`, image())
artwork: z
.preprocess((val) => `/src/assets/img/tracks/${val}`, image())
.optional()
}),
autoQueue: z
.object({
order: z.number()
})
.optional(),
card: z.object({
image: z.object({
src: z.preprocess((val) => `/src/assets/img/tracks/${val}`, image()),
alt: z.string()
}),
text: z.object({
primary: z.string(),
secondary: z.string()
card: z
.object({
image: z.object({
src: z.preprocess(
(val) => `/src/assets/img/tracks/${val}`,
image()
),
alt: z.string()
}),
text: z.object({
primary: z.string(),
secondary: z.string()
})
})
})
.optional()
})
});

View File

@@ -1,9 +1,11 @@
import type { ImageMetadata } from "astro";
import { getImage } from "astro:assets";
import type { CollectionEntry } from "astro:content";
import { getCollection, type CollectionEntry } from "astro:content";
type Project = CollectionEntry<"projects">;
const tracks = await getCollection("tracks");
const allProjectOtherImages = import.meta.glob<{ default: ImageMetadata }>(
"/src/assets/img/projects/**/*",
{ eager: true }
@@ -137,3 +139,13 @@ export function slugify(input: string): string {
slug = slug.replace(/^-+|-+$/g, "");
return slug;
}
export function getTrackByID(id: string): CollectionEntry<"tracks"> | null {
for (const track of tracks) {
if (track.id === id) {
return track;
}
}
return null;
}

View File

@@ -5,6 +5,18 @@
@theme {
--color-primary: #ff2d00;
--color-primary-50: oklch(1 0.244 31.9);
--color-primary-100: oklch(0.91 0.244 31.9);
--color-primary-200: oklch(0.84 0.244 31.9);
--color-primary-300: oklch(0.77 0.244 31.9);
--color-primary-400: oklch(0.7 0.244 31.9);
--color-primary-500: #ff2d00;
--color-primary-600: oklch(0.55 0.244 31.9);
--color-primary-700: oklch(0.45 0.244 31.9);
--color-primary-800: oklch(0.35 0.244 31.9);
--color-primary-900: oklch(0.18 0.244 31.9);
--color-primary-950: oklch(0.09 0.244 31.9);
--font-header: "Lutschine Bold", sans-serif;
--font-header-alt: "Lutschine Regular", sans-serif;
--font-body: "Roboto", sans-serif;