Add logo to main menu

This commit is contained in:
asraelite 2018-03-02 19:37:24 +00:00
parent cfe9c55c9a
commit 435b24cb6a
15 changed files with 135 additions and 40 deletions

View file

@ -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();