Skip to content

Instantly share code, notes, and snippets.

Avatar
🍔

Alec Troemel AlecTroemel

🍔
View GitHub Profile
View grass.shader
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);
@AlecTroemel
AlecTroemel / tectonicalypse.fnl
Created Oct 3, 2021
Ludum Dare 49 game about an angry earthquake
View tectonicalypse.fnl
;; 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))
@AlecTroemel
AlecTroemel / earigator.p8
Last active Apr 25, 2021
LD48: Earigator
View earigator.p8
pico-8 cartridge // http://www.pico-8.com
version 30
__lua__
-- ld48: earigator
-- by: alec t
-- framework
-------------------------------
--------- tiny ecs ----------
-- by katrinakitten
@AlecTroemel
AlecTroemel / a_damsel_a_day.fnl
Created Oct 4, 2020
Ludum Dare 47 game. Created using TIC-80 and Fennel
View a_damsel_a_day.fnl
;; 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 / super_corgo_drifter.p8
Last active Aug 21, 2020
GMTK Jam 2020 game. collect cherries while hanging on to your dogs leash!
View super_corgo_drifter.p8
pico-8 cartridge // http://www.pico-8.com
version 29
__lua__
-- pico lib
-------------------------------
-------- id counter -----------
-------------------------------
id_counter=0
function get_id()
@AlecTroemel
AlecTroemel / civilian_bailout.p8
Last active Apr 28, 2019
source for my ludumdare 44 game "civilian bailout"
View civilian_bailout.p8
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 / titan_ceremony.p8
Last active Dec 2, 2018
source code for my Ludum Dare 43 game "titan ceremony"
View titan_ceremony.p8
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 / addCacheControl.js
Last active Jul 10, 2018
add S3 Bucket Cache Control to existing Objects, with pagination
View addCacheControl.js
/* 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');
View keybase.md

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: