Add more planets
This commit is contained in:
parent
504f5fcc0c
commit
6cad5551bb
13 changed files with 748 additions and 23 deletions
|
@ -106,8 +106,9 @@ export function game() {
|
|||
editButton.posRelative({ x: 0.5, xc: 0.5, y: 1 });
|
||||
editButton.y -= 45;
|
||||
editButton.tick = () => {
|
||||
editButton.options.draw = state.landed;
|
||||
editButton.options.disabled = state.editing && editMessage !== '';
|
||||
let usable = state.landed && !state.gameOver;
|
||||
editButton.options.draw = usable;
|
||||
editButton.options.disabled = usable && editMessage !== '';
|
||||
if (state.editing) {
|
||||
editButton.text = 'Finish';
|
||||
if (editMessage !== '') editButton.text = '(' + editMessage + ')';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue