diff --git a/build/snake.js b/build/snake.js index 4bcf85a..032cfe5 100644 --- a/build/snake.js +++ b/build/snake.js @@ -16,9 +16,8 @@ var _fs2 = _interopRequireDefault(_fs); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -var log = _fs2.default.createWriteStream(__dirname + '/log'); - var FRAME = 100; +loop(); var ui = new _interface2.default(); @@ -185,5 +184,4 @@ function gameover() { process.on('exit', function () { ui.cursor.horizontalAbsolute(0).eraseLine(); ui.cursor.show(); - log.end(); }); diff --git a/package.json b/package.json index e9e1495..9b4a2a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-games", - "version": "2.0.0", + "version": "2.0.1", "description": "Simple node console games", "main": "index.js", "scripts": { diff --git a/src/snake.js b/src/snake.js index fd73196..f93619c 100644 --- a/src/snake.js +++ b/src/snake.js @@ -2,9 +2,8 @@ import Unit from './classes/unit'; import Interface from './classes/interface'; import fs from 'fs'; -let log = fs.createWriteStream(__dirname + '/log'); - let FRAME = 100; +loop(); let ui = new Interface(); @@ -165,5 +164,4 @@ function gameover() { process.on('exit', function() { ui.cursor.horizontalAbsolute(0).eraseLine() ui.cursor.show(); - log.end(); });