add asteroids
This commit is contained in:
parent
0ceea5f4af
commit
0aa259b874
17 changed files with 246 additions and 37 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue