Add game over screen
This commit is contained in:
parent
f91febfd3c
commit
a11dfb9352
5 changed files with 96 additions and 15 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue