"Panzer Dragoon 1k" is a 2D remake of Panzer Dragoon in 1k of JavaScript for JS1K 2014 by @greweb
Use your Dragoon to prevent enemies from escaping.
#!/bin/bash | |
# Minimal script for timelapse capturing your screen in MacOSX. | |
# You must run the script, from an empty directory where the images will be stored. | |
# Usage: ./timelapse | |
# or | |
# Usage: ./timelapse <seconds> |
"Panzer Dragoon 1k" is a 2D remake of Panzer Dragoon in 1k of JavaScript for JS1K 2014 by @greweb
Use your Dragoon to prevent enemies from escaping.
function bindSomething (cb) { | |
anyEventSystem.on("something", function (e) { | |
if (cb.length === 0) { | |
cb(); | |
} | |
else { | |
var computation = takesALotOfCPU(); | |
cb(computation); | |
} | |
}); |
function Dog (name, age) { | |
this._f = {}; | |
this._prop("name", name); | |
this._prop("age", age); | |
} | |
Dog.prototype = { | |
_prop: function (prop, initialValue) { | |
var self = this; | |
Object.defineProperty(this, prop, { |
#ifdef GL_ES | |
precision highp float; | |
#endif | |
// General parameters | |
uniform sampler2D from; | |
uniform sampler2D to; | |
uniform float progress; | |
uniform vec2 resolution; |
#ifdef GL_ES | |
precision highp float; | |
#endif | |
// General parameters | |
uniform sampler2D from; | |
uniform sampler2D to; | |
uniform float progress; | |
uniform vec2 resolution; |
#ifdef GL_ES | |
precision highp float; | |
#endif | |
// General parameters | |
uniform sampler2D from; | |
uniform sampler2D to; | |
uniform float progress; | |
uniform vec2 resolution; |
#ifdef GL_ES | |
precision highp float; | |
#endif | |
#define QUALITY 32 | |
// General parameters | |
uniform sampler2D from; | |
uniform sampler2D to; | |
uniform float progress; |
{ "size": 0.3 } |