Skip to content

Instantly share code, notes, and snippets.

View wjt's full-sized avatar

Will Thompson wjt

View GitHub Profile
From 984dfd70c922da3f15890ef01853b11cd10e4460 Mon Sep 17 00:00:00 2001
From: Will Thompson <wjt@endlessaccess.org>
Date: Wed, 16 Sep 2026 09:57:05 +0100
Subject: [PATCH] WIP: Rebind grappling to left stick and L2
---
project.godot | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/project.godot b/project.godot
@wjt
wjt / gist:0be997da76c196600df5d9b87aaed785
Created August 10, 2026 09:41
backstitch-sync-server.service
[Unit]
Description=Backstitch sync server
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target
[Service]
Type=exec
User=backstitch
ExecSearchPath=/home/backstitch/.cargo/bin:/usr/local/bin:/usr/bin:/bin
WorkingDirectory=/home/backstitch/backstitch-sync-server
commit 05d45d129ede9d7e585ea7bfbef7fb9ff11a4255
Author: Will Thompson <wjt@endlessaccess.org>
Date: Mon Jul 6 14:26:14 2026 +0100
WIP: scene transition anticipation
diff --git a/scenes/globals/scene_switcher/transitions/transitions.gd b/scenes/globals/scene_switcher/transitions/transitions.gd
index 16da0631b..107304076 100644
--- a/scenes/globals/scene_switcher/transitions/transitions.gd
+++ b/scenes/globals/scene_switcher/transitions/transitions.gd
# SPDX-FileCopyrightText: The Threadbare Authors
# SPDX-License-Identifier: MPL-2.0
extends CanvasLayer
## The probability distribution for the amount of rain. The y-axis is the amount of rain for a given (randomly-chosen) point on the x-axis.
@export var rain_distribution: Curve
@onready var gpu_particles_2d: GPUParticles2D = %GPUParticles2D
func _ready() -> void:
[global]
current_lives=3
incorporating_threads=false
completed_quests=Array[String](["res://scenes/quests/lore_quests/quest_001/quest.tres"])
[inventory]
items_collected=[]
@wjt
wjt / 70c60831e77e26f1efda45ef9560cf02f8d81340.patch
Created February 4, 2026 17:53
Threadbare PR 1865 conflict resolution
commit 70c60831e77e26f1efda45ef9560cf02f8d81340
Merge: 1c1ec84f b2cc145e
Author: Will Thompson <wjt@endlessaccess.org>
Date: Wed Feb 4 17:45:26 2026 +0000
Merge remote-tracking branch 'origin/main' into issue_1847
diff --cc scenes/game_elements/props/filling_barrel/filling_barrel.tscn
index 507aac10,1bc0eea5..7f44c0bc
--- a/scenes/game_elements/props/filling_barrel/filling_barrel.tscn
@wjt
wjt / crow-jam.strudel.js
Created January 28, 2026 09:21
A crow-based livecoding jam from a work retreat
$: s(`
bd ~ [bd bd] ~,
~ sd ~ sd,
hh*2 hh hh*2 [hh oh]
`)
.bank("tr909").dec(.4)
.gain(slider(0, 0, 1, 0.1))
.lpf(slider(9100, 100, 20000, 250))
.hpf(slider(10100, 100, 20000, 250))
.jux(rev)
#!/usr/bin/env python3
# Copyright The Threadbare Authors
# SPDX-License-Identifier: MPL-2.0
import json
import subprocess
import csv
import sys
import re
NO_CREDIT_LICENSES = {
{"Protocol":0,"Id":"539e63778261a8d644de4977c35008a2","Path":"/media/Music/Rolo Tomassi/In the Echo of All Dreams/Rolo Tomassi - In the Echo of All Dreams - 01 Woodburn.flac","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"flac","Size":37871254,"Name":"Rolo Tomassi - In the Echo of All Dreams - 01 Woodburn","IsRemote":false,"ETag":"16be8aef6b61229f0274530ec5d969a6","RunTimeTicks":1968730420,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"UseMostCompatibleTranscodingProfile":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":null,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"flac","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersion
#!/bin/bash
set -ex
source=scenes/tileset.tres
declare -A targets=(
[tiles/bridges.tres]="tiles for bridges (and their shadows)"
[tiles/elevation.tres]="cliff tiles (plain and mines)"
[tiles/exterior_floors.tres]="grass, sand, and dirt tiles"
[tiles/foam.tres]="foam tiles"
[tiles/void_chromakey.tres]="chromakey Void texture"