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

@ -51,6 +51,8 @@ function Renderer() {
if (body.bodyType == 'ship') {
renderShip(pallet, body);
} else if (body.bodyType == 'asteroid') {
renderAsteroid(pallet, body);
} else {
pallet.rect('#338', body.x, body.y, 10, 10);
}