This file contains hidden or 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
| //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( |
This file contains hidden or 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
| 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 = {}; |