Add game over screen

This commit is contained in:
asraelite 2018-03-07 17:01:14 +00:00
parent f91febfd3c
commit a11dfb9352
5 changed files with 96 additions and 15 deletions

View file

@ -14,15 +14,19 @@ export function setPlayerShip(ship) {
}
export function init() {
clear();
spawn.player();
let p = spawn.startPlanet();
spawn.testEntity(p);
spawn.tick();
}
export function clear() {
entities.clear();
celestials.clear();
ships.clear();
particles.clear();
tracers.clear();
spawn.player();
let p = spawn.startPlanet();
spawn.testEntity(p);
spawn.tick();
}
export function remove(object) {