Add crashing
This commit is contained in:
parent
bd97945e66
commit
60f77c36a9
9 changed files with 67 additions and 10 deletions
|
@ -46,6 +46,7 @@ function renderEntity(entity) {
|
|||
}
|
||||
|
||||
function renderShip(ship) {
|
||||
if (ship.crashed) return;
|
||||
context.save();
|
||||
context.translate(...ship.com);
|
||||
context.rotate(ship.r);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue