fix: remove logs

This commit is contained in:
Mahdi Dibaiee
2015-12-19 14:35:02 +03:30
parent bccbd7acfe
commit eecc441cb2
3 changed files with 1 additions and 22 deletions

View File

@ -1,9 +1,4 @@
import Unit from './unit';
import fs from 'fs';
let log = (...strings) => {
fs.appendFileSync(__dirname + '/../log', strings.join(' ') + '\n');
}
const BULLET_SPEED = 10;
@ -34,8 +29,6 @@ export default class Tank extends Unit {
bullet.go(this.x + 2, this.y - 2);
bullet.velocity = this.normalize();
log(this.angle, '(' + this._angle + ') =', bullet.velocity.join(','));
this.bullets.push(bullet);
}