Skip to content

Instantly share code, notes, and snippets.

View AlecTroemel's full-sized avatar
🍔

Alec Troemel AlecTroemel

🍔
View GitHub Profile

Keybase proof

I hereby claim:

  • I am alectroemel on github.
  • I am alectroemel (https://keybase.io/alectroemel) on keybase.
  • I have a public key ASBKYhHsIcUaROoPEwf1w_2vYvDhf8SLoJs1M5zpLJ6xyAo

To claim this, I am signing this object:

@AlecTroemel
AlecTroemel / addCacheControl.js
Last active July 10, 2018 19:06
add S3 Bucket Cache Control to existing Objects, with pagination
/* global require */
// this script iterates through all maps in the bucket
// and adds the "CacheControl" header
// if any keys fail, it will write them out to a file at the end of the crawl
const fs = require('fs');
const _ = require('lodash');
const AWS = require('aws-sdk');
const Promise = require('bluebird');
@AlecTroemel
AlecTroemel / titan_ceremony.p8
Last active December 2, 2018 19:14
source code for my Ludum Dare 43 game "titan ceremony"
pico-8 cartridge // http://www.pico-8.com
version 15
__lua__
-- titan ceremony
-- by alec troemel
-- for ludum dare 43
t=0
state="title"
sc=0 --shake duration
@AlecTroemel
AlecTroemel / civilian_bailout.p8
Last active April 28, 2019 21:10
source for my ludumdare 44 game "civilian bailout"
pico-8 cartridge // http://www.pico-8.com
version 18
__lua__
-- main
--animate an object
function animate(o)
o.t=(o.t+1)%o.s --tick fwd
if (o.t==0) then
o.f=o.f%#o.sp[o.as]+1
@AlecTroemel
AlecTroemel / super_corgo_drifter.p8
Last active August 21, 2020 09:29
GMTK Jam 2020 game. collect cherries while hanging on to your dogs leash!
pico-8 cartridge // http://www.pico-8.com
version 29
__lua__
-- pico lib
-------------------------------
-------- id counter -----------
-------------------------------
id_counter=0
function get_id()
@AlecTroemel
AlecTroemel / a_damsel_a_day.fnl
Created October 4, 2020 20:24
Ludum Dare 47 game. Created using TIC-80 and Fennel
;; title: f-lib-80
;; author: Alec Troemel
;; desc: a collection of useful things to start a game
;; script: fennel
;; Function Shorthands
(global abs math.abs)
(global rnd math.random)
(global min math.min)
(global max math.max)
@AlecTroemel
AlecTroemel / earigator.p8
Last active April 25, 2021 18:06
LD48: Earigator
pico-8 cartridge // http://www.pico-8.com
version 30
__lua__
-- ld48: earigator
-- by: alec t
-- framework
-------------------------------
--------- tiny ecs ----------
-- by katrinakitten
@AlecTroemel
AlecTroemel / tectonicalypse.fnl
Created October 3, 2021 21:40
Ludum Dare 49 game about an angry earthquake
;; title: game title
;; author: game developer
;; desc: short description
;; script: fennel
;; ls | entr -r ~/Applications/tic80 ld49.fnl --skip --fs .
;; 0 TAB: Globals
;; (var vector (require :vector))
shader_type spatial;
render_mode cull_disabled,diffuse_toon,specular_toon;
uniform vec4 color_top: hint_color = vec4(1,1,1,1);
uniform vec4 color_bottom: hint_color = vec4(0,0,0,1);
uniform vec4 color_highlight: hint_color = vec4(0,0,0,1);
const vec3 UP = vec3(0,1,0);
const vec3 RIGHT = vec3(1,0,0);