This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useStore } from './useStore.js' | |
export function GameUI() { | |
const { | |
isPaused, | |
pause, | |
play, | |
} = useStore(state => ({ | |
isPaused: state.isPaused, | |
pause: state.pause, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"$id": "https://schemas.fdgt.dev/PRIVMSG/generic.json", | |
"title": "PRIVMSG/generic", | |
"description": "", | |
"type": "object", | |
"properties": { | |
"command": { | |
"description": "The type of IRC command that was used to send this message.", | |
"pattern": "^(?:CLEARCHAT|CLEARMSG|GLOBALUSERSTATE|HOSTTARGET|JOIN|NICK|NOTICE|PART|PASS|PING|PONG|PRIVMSG|RECONNECT|ROOMSTATE|USERNOTICE|USERSTATE|WHISPER)$", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { EventSubMiddleware } from '@twurple/eventsub' | |
import Koa from 'koa' | |
import KoaRouter from 'koa-router' | |
const app = new Koa | |
const router = new KoaRouter | |
const middleware = new EventSubMiddleware('...') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.componentWithCutCorners { | |
background-color: red; | |
clip-path: generateCornerCutPath(( | |
'borderSize': $panelBorderSize, | |
'clipSize': $panelCornerClipSize, | |
'isBorder': false, | |
'uiScale': var(--ui-scale), | |
)); | |
display: block; | |
height: 100px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--hue-shift: 0deg; | |
@include generateHSLCustomPropertiesFromColor('palette-black', #060606); | |
@include generateHSLCustomPropertiesFromColor('palette-green', #00bc8c); | |
@include generateHSLCustomPropertiesFromColor('palette-dark-grey', #313131); | |
@include generateHSLCustomPropertiesFromColor('palette-grey', #444444); | |
@include generateHSLCustomPropertiesFromColor('palette-red', #f00); | |
@include generateHSLCustomPropertiesFromColor('palette-white', #fff); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Local imports | |
import { useAnimatedFavicon } from './useAnimatedFavicon.js' | |
export function AnimatedFavicon() { | |
useAnimatedFavicon({ | |
imageURL: '/favicon-spritesheet.png', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MapManager { | |
findPath(fromX, fromY, toX, toY) { | |
/** | |
* With ngraph we don't have to create grid cells if they're unoccupied, so we | |
* have to verify we're not running the pathfinder against non-existent nodes. | |
*/ | |
if (this.#graph.hasNode(`${toX}|${toY}`)) { | |
/** | |
* It's probably not necessary to generate a new pathfinder every time right | |
* now, but it'll be valuable in the future when the user gains the ability |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parents": { | |
"primary": "Cindy Huel", | |
"secondary": "Edmond Jacobi-Jerde" | |
}, | |
"children": [ | |
{ | |
"parents": { | |
"primary": "Georgia Hegmann III", | |
"secondary": "Penny Rodriguez Sr." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Intro Cinematic | |
EXT. DARK FOREST - DUSK | |
The scene is black. | |
INNKEEPER (V.O.) | |
My grandfather was a carpenter. He built the inn as a refuge for our family, but it quickly became so much more. | |
CUT TO: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: greeting | |
position: -4,-239 | |
--- | |
Alastair Reid: Well hello there! I've brought your daily supplies! | |
You: Thank you, Alastair. | |
Alastair Reid: Have you heard the news going through town? | |
-> No, please do tell! | |
<<jump no>> |