clean client code

This commit is contained in:
Asraelite 2016-03-24 13:26:35 +00:00
parent f3619ba891
commit 21a30ad212
18 changed files with 294 additions and 268 deletions

View file

@ -1,4 +1,4 @@
function renderAsteroid(pallet, body) {
Renderer.prototype.renderAsteroid = (pallet, body) => {
var pos = body.getPos();
var x = pos.x * SCALE;
var y = pos.y * SCALE;
@ -16,7 +16,9 @@ function renderAsteroid(pallet, body) {
}
context.closePath();
context.strokeStyle = '#fff';
context.fillStyle = '#090909';
context.fill();
context.stroke();
pallet.restore();
}
};