remove log

This commit is contained in:
Mahdi Dibaiee 2015-12-12 09:50:21 +03:30
parent 6ef4f8890f
commit c8a673ad3d
3 changed files with 3 additions and 7 deletions

View File

@ -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();
});

View File

@ -1,6 +1,6 @@
{
"name": "node-games",
"version": "2.0.0",
"version": "2.0.1",
"description": "Simple node console games",
"main": "index.js",
"scripts": {

View File

@ -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();
});