node-console-games/index.js
Mahdi Dibaiee 6ef4f8890f feat: snake game
feat: unit.random
feat: ui.center
2015-12-12 09:44:22 +03:30

17 lines
285 B
JavaScript
Executable File

#!/usr/bin/env node
var game = process.argv[2];
if (!game) {
console.log('usage: node-games <game>')
console.log('');
console.log('Games');
console.log('- spacecraft');
console.log('- snake');
return;
}
require('babel-polyfill');
require(__dirname + '/build/' + game);