Skip to content

Instantly share code, notes, and snippets.

View webcaetano's full-sized avatar
🦄
Working from home

Andre Caetano webcaetano

🦄
Working from home
View GitHub Profile
@webcaetano
webcaetano / gh-pages.md
Created December 3, 2015 16:35
Deploying to GitHub Pages

Deploying to GitHub Pages

Deploying your app using git subtree allows the use of GitHub Pages. Your gh-pages branch will contain the files from dist.

Steps

Prerequisites

  1. If not already available, install git-subtree.
@webcaetano
webcaetano / swingParticle.js
Created November 27, 2015 17:31
Phaser Tweened Particle.
function create() {
// console.log(game.add)
var rand = function(min, max){
if(!min) min = 0;
if(!max) max = 100;
return Math.floor(Math.random() * (max - min + 1)) + min;
}

Find issues marked with help wanted

label:"help wanted" language:javascript

Timelapse .png sequence to video

ffmpeg -r 20 -i "video/img (%d).png" -q:v 1 -b:v 1500k "../timelapse.avi"

@webcaetano
webcaetano / onlyanimation.plugin.jsfl
Last active October 11, 2015 15:20
JSFL SpriteSheet to Export to Phaser Only The animation frames and basic information
function getPluginInfo(lang){
pluginInfo = new Object();
pluginInfo.id = "onlyani";
pluginInfo.name = "onlyani";
pluginInfo.ext = "json";
pluginInfo.encoding = "utf8";
pluginInfo.capabilities = new Object();
pluginInfo.capabilities.canRotate = true;
pluginInfo.capabilities.canTrim = true;
pluginInfo.capabilities.canShapePad = true;