add asteroids

This commit is contained in:
Asraelite 2016-03-22 18:34:11 +00:00
parent 0ceea5f4af
commit 0aa259b874
17 changed files with 246 additions and 37 deletions

View file

@ -6,8 +6,8 @@ function renderShip(pallet, ship) {
var thr8 = game.assets.images.ships[ship.hull].thrust8;
//pallet.view(ship.x, ship.y, false, ship.r);
var pos = ship.getPos();
var x = pos.x + 16;
var y = pos.y + 16;
var x = pos.x;
var y = pos.y;
var vx = -game.world.getCenter().x;
var vy = -game.world.getCenter().y;