Merge branch 'master' of github.com:Patreon/foxy-moxy

This commit is contained in:
lucaswadedavis 2016-12-15 12:21:20 -08:00
commit e76ce6370a
2 changed files with 42 additions and 1 deletions

40
js/fox.js Normal file
View file

@ -0,0 +1,40 @@
// TODO: use query params for these
var gen = require('random-seed');
var IMG_WIDTH = 64;
var IMG_HEIGHT = 64;
// move to helper function
var Point = function (x, y) {
return {
x: x,
y: y
};
};
var randomFox = (function () {
// head top left corner
var origin = Point(IMG_WIDTH / 4, IMG_HEIGHT / 4);
// head width and height
var width = IMG_WIDTH / 2;
var height = IMG_HEIGHT / 2;
var ears = (function () {
// TODO: generate stuff
return {
left: {
x: null
},
right: {
x: null
}
};
});
return {
ears: ears,
eyes: eyes,
nose: nose,
mouth: mouth
};
}());

View file

@ -19,6 +19,7 @@
"dependencies": { "dependencies": {
"canvas": "^1.6.2", "canvas": "^1.6.2",
"express": "^4.14.0", "express": "^4.14.0",
"node-gyp": "^3.4.0" "node-gyp": "^3.4.0",
"random-seed": "^0.3.0"
} }
} }