Fix angle resolution
This commit is contained in:
parent
5b861cc341
commit
0101ef8d55
5 changed files with 44 additions and 22 deletions
|
@ -8,15 +8,17 @@ import * as edit from './edit.mjs';
|
|||
|
||||
export let shipLanded = false;
|
||||
|
||||
let notification;
|
||||
let notification = null;
|
||||
let notLife = 0;
|
||||
|
||||
function notify(message) {
|
||||
if (notification === null) return;
|
||||
notification.text = message;
|
||||
notLife = 60;
|
||||
}
|
||||
|
||||
export function tick() {
|
||||
if (notification === null) return;
|
||||
if (notLife-- <= 0)
|
||||
notification.text = '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue