Skip to content

Commit

Permalink
lint: automatically ran prettier via workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperj authored and github-actions[bot] committed Oct 13, 2024
1 parent b2b0a09 commit 894c85b
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 16 deletions.
6 changes: 3 additions & 3 deletions src/components/YouTubeEmbed.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
const {videoId} = Astro.props;
const videoUrl = `https://www.youtube-nocookie.com/embed/${videoId}`;
---
const { videoId } = Astro.props;
const videoUrl = `https://www.youtube-nocookie.com/embed/${videoId}`;
---

<div class="youtube" data-video-url={videoUrl}>
Expand Down
2 changes: 1 addition & 1 deletion src/content/portfolio/airport-sim.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ headerImage: "/images/airport-sim/planecover.webp"
---

import { Icon } from "astro-icon/components";
import YouTubeEmbed from "@/components/YouTubeEmbed.astro"
import YouTubeEmbed from "@/components/YouTubeEmbed.astro";

For my final year dissertation project for my bachelors degree in [Games Computing](https://www.lincoln.ac.uk/course/cgpcmpub/), I created a [serious game](https://en.wikipedia.org/wiki/Serious_game). I made use of a Meta Quest 2 VR headset and a game I created with Unity engine, to create a simulated world to allow a person to simulate the effects of international travel to provide training and reassurance. The goal was to create an immersive experience that would help users prepare for the challenges they may face when travelling abroad.

Expand Down
11 changes: 8 additions & 3 deletions src/content/portfolio/aquanaut.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ tags:
- unity
- c-sharp
---
import YouTubeEmbed from "@/components/YouTubeEmbed.astro"

import YouTubeEmbed from "@/components/YouTubeEmbed.astro";

Aquanaut is a classic shooter inspired by game, set in the depths of the ocean.

Expand All @@ -22,14 +23,18 @@ This game was made by:
- <strong>Josh Cooper</strong> (me) - Team Lead & the Weapons Systems
- <strong>[Vanta](https://vantasia.dev)</strong> - Design Lead & the Texturing
- <strong>Artur Wojcik</strong> - AI Lead & Game Flow Design
- <strong>[Matt Silverwood](https://silverwood.dev)</strong> - Input & Interaction Systems
- <strong>[Matt Silverwood](https://silverwood.dev)</strong> - Input &
Interaction Systems

We also used resources from other places

<details>

<summary>Enemies Sprites from Doom (Id Software, 1993)</summary>
<em>Sprites have been used as a placeholder, with the understanding that they will be replaced at a later, and are being used only for educational purposes.</em>
<em>
Sprites have been used as a placeholder, with the understanding that they will
be replaced at a later, and are being used only for educational purposes.
</em>

- Various Sound Effects from [freesound](https://freesound.org).
- Tile Set from [Tileable.co](https://tileable.co/).
Expand Down
2 changes: 1 addition & 1 deletion src/content/portfolio/my-recipes-ar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ tags:
- android
---

import YouTubeEmbed from "@/components/YouTubeEmbed.astro"
import YouTubeEmbed from "@/components/YouTubeEmbed.astro";

Similar to the [VR City Simulation](/portfolio/vr-city) (it was created as a part of the same module), this is my first deep dive into augmented reality development.

Expand Down
3 changes: 2 additions & 1 deletion src/content/portfolio/undercooked.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ tags:
- gamedev
- c++
---
import YouTubeEmbed from "@/components/YouTubeEmbed.astro"

import YouTubeEmbed from "@/components/YouTubeEmbed.astro";

This is an implementation of the core mechanics from [Overcooked](https://www.team17.com/games/overcooked/) implemented in SDL and C++.

Expand Down
3 changes: 2 additions & 1 deletion src/content/portfolio/vr-city.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ tags:
- unity
- c-sharp
---
import YouTubeEmbed from "@/components/YouTubeEmbed.astro"

import YouTubeEmbed from "@/components/YouTubeEmbed.astro";

This is a VR experience to simulate the effects of being in a city while being inside a VR headset. This was the first time I created anything for VR and I enjoyed doing so - so expect me to see more stuff from me!

Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const latestContent = content.slice(0, 6);
href={`${item.collection}/${item.slug}`}
class="print:hidden mt-2 self-end justify-self-end text-black-500 dark:text-white-500 no-underline hover:text-black-800 dark:hover:text-white-800 flex items-center hover:underline"
>
Read More
Read More
<Icon name="lucide:chevron-right" class="ml-2" />
</a>
</div>
Expand Down
9 changes: 4 additions & 5 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
}

main a {
@apply underline
@apply underline;
}

main a::after {
content: ' (' attr(href) ')';
content: " (" attr(href) ")";
}

abbr::after {
content: ' (' attr(title) ')';
content: " (" attr(title) ")";
}

.youtube::after {
Expand All @@ -34,7 +34,6 @@
.button {
@apply border-2 border-green-900 rounded-xl no-underline flex items-center justify-center text-xl mt-5 w-full !important;
}

}

html {
Expand Down Expand Up @@ -108,4 +107,4 @@
.button {
@apply text-green-900 dark:text-white-500 bg-green-300 border-2 border-green-900 dark:bg-green-700 mr-4 mb-2 px-8 py-2 rounded-xl no-underline hover:bg-green-200 dark:hover:bg-green-800 flex items-center justify-center text-xl mt-5 tablet:w-1/3 !important;
}
}
}

0 comments on commit 894c85b

Please sign in to comment.