Skip to content

Instantly share code, notes, and snippets.

@LeonardA-L
LeonardA-L / backtrack.js
Created February 21, 2017 05:23
Back-tracking through a grid
//NB: map = grid
// Map dimension
var N = 5;
// Map init
var map = [];
for(var i = 0; i<N; i++) {
map.push([])
for(var j=0;j<N; j++) {
map[i].push(
@LeonardA-L
LeonardA-L / shadwen_animate.lua
Created May 31, 2016 18:58
Allows to create camera interpolations in the Shadwen editor
module(..., package.seeall)
debug.ReloadScripts.allowReload(...)
require "socket"
local cam;
local frameRate = 25; -- In ms. So 40 fps
local frame = 0;
local keyFrames = {};
local diff = {};