Skip to content

Instantly share code, notes, and snippets.

txt="greets to everyone at the pico 1k jam 2022 🐱 its a blast playing all your entries 🐱 some are real gems! 🐱 enjoy squeezing every byte into your code 🐱 i know i have 🐱 good luck to all 🐱 i hope you enjoyed this scroller 🐱 i am out of bytes 🐱 now go make something cool! 🐱 have fun! ★ ★ ★"
_l,_t,_s=1,-10,{} -- INIT globals:
-- _l: loop counter, increments each time demo restarts.
-- _t: the clock, determines the position of text,
-- start negative to give a short pause before
-- first text appears.
-- _s: table of particles, used for various
-- background effects.
mis,bom,bas={},{},{} -- Initialize tables to store:
-- mis: missiles fired (both enemy and player)
-- bom: explosions (booms)
-- bas: player missile batteries (bases)
tax,tay,kb,sco,shk=64,64,1,0,0 -- Initialize globals:
-- tax, tay: targeting reticule XY
-- kb: flag if player is using keyboard input (1), or mouse input
-- sco: player score (0)
-- shk: screen shake effect amount (0)
@wesleywerner
wesleywerner / ud.remembrance.user.js
Last active November 13, 2022 04:54
Urban Dead character memories
// ==UserScript==
// @name UD Remembrance
// @version 4
// @author Wesley Werner (aka Wez)
// @description Lists memories of previous turns.
// @namespace http://wiki.urbandead.com/index.php/User:Wez
// @updateURL https://gist.github.com/wesleywerner/fbcb0131687c067e922678c90b0c4480/raw/ud.remembrance.user.js
// @downloadURL https://gist.github.com/wesleywerner/fbcb0131687c067e922678c90b0c4480/raw/ud.remembrance.user.js
// @grant GM.getValue
// @grant GM.setValue
@wesleywerner
wesleywerner / download-love-wiki.sh
Last active February 16, 2021 21:38
downloads the love wiki for offline browsing
mkdir -p ~/love2d.org
cd ~/love2d.org
wget \
--wait=2 \
--random-wait \
--recursive \
--convert-links \
--adjust-extension \
--no-parent \
@wesleywerner
wesleywerner / color.lua
Last active September 2, 2018 08:32
Materialize color palette for Lua
color = { }
color["red lighten-5"] = { 255/255, 235/255, 238/255 }
color["red lighten-4"] = { 255/255, 205/255, 210/255 }
color["red lighten-3"] = { 239/255, 154/255, 154/255 }
color["red lighten-2"] = { 229/255, 115/255, 115/255 }
color["red lighten-1"] = { 239/255, 083/255, 080/255 }
color["red"] = { 244/255, 067/255, 054/255 }
color["red darken-1"] = { 229/255, 057/255, 053/255 }
color["red darken-2"] = { 211/255, 047/255, 047/255 }
color["red darken-3"] = { 198/255, 040/255, 040/255 }
'''
Godville crossword solver by Goddess Shadowed Princess
Copyleft 2018, licensed under GPL 3
Requirements: python, html2text (pip install html2text)
Version 1
'''
@wesleywerner
wesleywerner / cerial.lua
Created January 8, 2018 18:11
Lua table serialization to CSV-like string
--[[
cerial.lua
Copyright 2018 wesley werner <wesley.werner@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
@wesleywerner
wesleywerner / love.lua.tags
Last active August 31, 2018 05:40
Geany tags for LÖVE 11.1
# format=pipe
VideoStream|virtual|(newVideoStream File)|
int|virtual|()|
int|virtual|()|
string|virtual|()|
void|virtual|()|
void|virtual|()|
void|virtual|(seek double)|
double|virtual|(tell const)|
bool|virtual|(isPlaying const)|
@wesleywerner
wesleywerner / geany-love-tag-gen.lua
Created January 3, 2018 08:08
Generates Geany function tags from LÖVE sources.
--[[
geany tag generator.lua
Generates Geany function tags from LÖVE sources.
You require lua file system to run this:
luarocks install luafilesystem
Copyright 2018 wesley werner <wesley.werner@gmail.com>