remove log
This commit is contained in:
parent
6ef4f8890f
commit
c8a673ad3d
@ -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();
|
||||
});
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-games",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"description": "Simple node console games",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user