Improve edit screen
This commit is contained in:
parent
52770d7eb2
commit
826986cdbf
12 changed files with 235 additions and 40 deletions
|
@ -21,7 +21,11 @@ export function launchShip() {
|
|||
game.state.landed = false;
|
||||
}
|
||||
|
||||
export function editShip() {
|
||||
export function toggleEdit() {
|
||||
if (game.state.editing) {
|
||||
endEditing();
|
||||
return;
|
||||
}
|
||||
game.state.editing = true;
|
||||
game.state.inventory = true;
|
||||
edit.init();
|
||||
|
@ -34,8 +38,6 @@ export function endEditing() {
|
|||
graphics.changePerspective('universe');
|
||||
game.state.editing = false;
|
||||
game.state.inventory = false;
|
||||
} else {
|
||||
console.log(reason);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue