Add logo to main menu
This commit is contained in:
parent
cfe9c55c9a
commit
435b24cb6a
15 changed files with 135 additions and 40 deletions
|
@ -2,6 +2,7 @@ import {game} from '../game.mjs';
|
|||
import {getContainedSectors} from '../world/index.mjs';
|
||||
import * as background from './background.mjs';
|
||||
import * as gui from './gui.mjs';
|
||||
import * as draw from './draw.mjs';
|
||||
|
||||
export let canvas, context, tempCanvas, tempContext;
|
||||
export let view;
|
||||
|
@ -21,10 +22,14 @@ export function init() {
|
|||
y: 0,
|
||||
zoom: 1
|
||||
}
|
||||
|
||||
draw.text('Loading...', canvas.width / 2, canvas.height / 2,
|
||||
{ align: 'center', valign: 'middle' });
|
||||
}
|
||||
|
||||
export function render() {
|
||||
context.clearRect(0, 0, canvas.width, canvas.height);
|
||||
context.fillStyle = '#000';
|
||||
context.fillRect(0, 0, canvas.width, canvas.height);
|
||||
context.save();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue