Skip to content

Instantly share code, notes, and snippets.

@comp500
comp500 / fabricserversidemods.md
Last active April 15, 2024 20:13
Useful Fabric server side mods
package main
import (
"flag"
"image"
"image/color"
"time"
"github.com/peterhellberg/gfx"
)
@caseyanderson
caseyanderson / micropython_win_setup.markdown
Last active August 10, 2022 06:27
describes the installation procedure for MicroPython development under Windows 10

Generating Procedural Game Worlds with Wave Function Collapse

Wave Function Collapse (WFC) by @exutumno is a new algorithm that can generate procedural patterns from a sample image. It's especially exciting for game designers, letting us draw our ideas instead of hand coding them. We'll take a look at the kinds of output WFC can produce and the meaning of the algorithm's parameters. Then we'll walk through setting up WFC in javascript and the Unity game engine.

sprites

The traditional approach to this sort of output is to hand code algorithms that generate features, and combine them to alter your game map. For example you could sprinkle some trees at random coordinates, draw roads with a brownian motion, and add rooms with a Binary Space Partition. This is powerful but time consuming, and your original vision can someti

@anubhavmishra
anubhavmishra / envoy.json
Last active October 27, 2021 01:45
Envoy Config
{
"listeners": [
{
"address": "tcp://0.0.0.0:1010",
"filters": [
{
"type": "read",
"name": "http_connection_manager",
"config": {
"access_log": [
anonymous
anonymous / .tmux.conf
Created July 7, 2016 05:12
set -g default-terminal "screen-256color"
# change prefix command to C-z
set -g prefix C-z
unbind C-b
bind C-z last-window
bind z send-prefix
# setup | and - for window splitting
unbind %
bind | split-window -h