Skip to content

Instantly share code, notes, and snippets.

View odditica's full-sized avatar
🐌
me

Jan Vorisek odditica

🐌
me
View GitHub Profile
@odditica
odditica / autoeurobeat.txt
Created August 25, 2017 12:42
What happens when you take lyrics of a bunch of Eurobeat songs and plug them into a Markov chain-based text generator.
They wanna feel so brave
I'm so brave
I'm waiting For love
me on)
(1, 2, 3, 4)
all the time is on New emotions from me on
the morning sun
Forever...
Come on and say (c'mon)
Go and I'm crazy... hot and leave me is town which is a flash
uniform sampler2D texture, smpPalette;
uniform vec2 paletteSize;
varying vec4 vertTexCoord;
int dither[64];
vec3 nearestColour(vec3 col){
float dist, minDist = 999.;
vec2 pixelSize = vec2(1. / paletteSize.xy);
vec3 outCol, palCol;
for (float x = 0.; x < 1.; x += pixelSize.x) {
//PADDED
#macro b00000000 0
#macro b00000001 1
#macro b00000010 2
#macro b00000011 3
#macro b00000100 4
#macro b00000101 5
#macro b00000110 6
#macro b00000111 7
#Korg Monologue CC mappings
cc16 EG ATTACK
cc17 EG DECAY
cc25 EG INT
cc24 LFO RATE
cc26 LFO DEPTH
cc28 DRIVE
cc35 VCO2 PITCH
cc36 VCO1 SHAPE
cc37 VCO2 SHAPE
@odditica
odditica / gml2bf.gml
Created February 15, 2019 17:45
gml2bf
// Brainfuck -> GML
// By @blokatt
// Conversion tool: https://jsfiddle.net/Blokatt/fxj1m7tn/
#macro MEMORY_SIZE 32768
#macro mem _m[_p]
#macro i mem = (mem + 1) & 0xff;
#macro d mem = (mem - 1) & 0xff;
#macro l _p --;
#macro r _p ++;
# GMS2 RenderDoc settings generator script v1.0
# by @blokatt
#
# This version of the script generates a settings file for the last project you've built.
#
# 1) Run and close the game from inside the IDE (make sure to use the VM, not YYC)
# 2) Run this script.
# 3) In RenderDoc, load the generated settings file and launch the game.
function bail($message) {