Add crashing

This commit is contained in:
asraelite 2018-03-07 14:51:18 +00:00
parent bd97945e66
commit 60f77c36a9
9 changed files with 67 additions and 10 deletions

View file

@ -46,6 +46,7 @@ function renderEntity(entity) {
}
function renderShip(ship) {
if (ship.crashed) return;
context.save();
context.translate(...ship.com);
context.rotate(ship.r);