This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import subprocess | |
import sys | |
import shutil | |
# CHANGE THESE TO YOUR FRAME SEQUENCES AND OUTPUT FOLDER | |
base_input_folder = "frame sequences" | |
output_folder = "gifs" | |
def pngs_to_gif(input_folder, output_folder, fps=15): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from psd_tools import PSDImage | |
import sys, os | |
def parse_layers(group, current_dir = ""): | |
for layer in group: | |
if layer.is_group(): | |
target_dir = (current_dir + "\\" + layer.name).replace(chr(0), "") | |
if not os.path.isdir(target_dir): | |
os.mkdir(target_dir) | |
parse_layers(layer, current_dir + "/" + layer.name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- A lightweight REXPaint .xp reader for LOVE2D. | |
-- By Vriska Serket / @arachonteur | |
-- | |
-- Output table looks like this. | |
--[[ | |
{ | |
version = 0, | |
layerCount = 0, | |
layers = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- | |
-- | |
-- | |
-- | |
local exp = { | |
version_bytes = 4, | |
layer_count_bytes = 4, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- title: sokobangarang | |
-- author: victoria lacroix | |
-- desc: a pretty mediocre prototype for something i instantly realized i didn't want to make | |
-- script: lua | |
t = 0 | |
lt = 0 | |
dt = 0 | |
dts = {} | |
avg_dt = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- | |
-- | |
-- | |
-- | |
local camera = { | |
TWEEN = 1, | |
SET = 2, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- title: Tiny Dungeon | |
-- author: team slime | |
-- desc: a dashing dungeon game | |
-- saveid: td | |
local a={}_mget=mget;_mset=mset;_btn=btn;_btnp=btnp;_sfx=sfx;local b=0;function sfx(...)if game.flags.sound then return _sfx(...)else return false end end;function mget(c,d)return _mget(Camera.x+c,Camera.y+d)end;function btn(...)local e=_btn(...)if e then game.moved=true end;return e end;function btnp(...)local e=_btnp(...)if e then game.moved=true end;return e end;function mset(c,d,f)if b==0 then a[c..","..d]={x=c,y=d,id=mget(c,d)}end;return _mset(Camera.x+c,Camera.y+d,f)end;t=0;lt=0;dt=0;dts={}avg_dt=0;game={qs=0,timer=0,width=240,height=138,roomWidth=30,roomHeight=17,collapse=0,shutter=0,buttons=0,broken=false,drawMap=false,orbs={},flagOrder={{"has_g","has_b","has_m","has_r"},{"sound","music","loaded","opened_final_zone"}},flags={has_r=false,has_b=false,has_g=false,has_m=false,sound=true,music=true,loaded=false,opened_final_zone=false},save=function(self)for g,h in ipairs(self.flagOrder)do local i=""for j,k in pairs( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- title: shoot test | |
-- author: vriska done it | |
-- desc: hope this helps | |
-- script: lua | |
-- input: mouse | |
t=0 | |
entities = {} | |
-- This function returns a 2d vector |