Skip to content

Instantly share code, notes, and snippets.

@polerin
polerin / overlay.effect
Created May 13, 2022 22:55
Simple overlay/camera blend shader for OBS
// yeaaaah
#include "includes/streamfx.effect"
uniform float minPass<
string name = "Minimum alpha to let through";
string field_type = "slider";
float minimum = 0.0;
float maximum = 1.0;
float step = 0.001;
@polerin
polerin / ApiClientFactory.js
Last active May 20, 2022 18:35
Example of api client implementations, focusing on contained state through class properties or enclosed scope
// factory included just to be silly
class ApiClientFactory
{
options;
defaultOptions = {
"apiClientClass" : "ApiClientPrecheck",
"clientOptions" : {
"tokenLife" : 400,
"someDeepConfig" : {
"foo" : 10,
@polerin
polerin / MessageBridge.ts
Last active May 23, 2022 23:37
Typescript Type mapping / const / etc issues
// Basically just a typed facade around PubSub, but the basic goal
// is the same regardless of the backing implmentation
export default class MessageBridge<MessageMap>
{
// ... snip
public subscribe<MessageName extends keyof MessageMap>(
messageName : MessageName,
listener : (message : MessageMap[MessageName]) => void

MonoRepo for publishing a combo of packages and applications aimed at web based multiplayer game development

Applications

API

Express for the API/Game Cooridinator/File Server. Games MUST register themsevlves with it

Frontend

A Lit web component base for the frontend find/join game. Games SHOULD register themselves with it (TBD).