summaryrefslogtreecommitdiffstats
path: root/src/index.ts
blob: a5ac4a257e5bf79ae908f311ed45d26c5102ae69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { GameContext } from './controller/gamecontext';

import Renderer from './view/renderer/Renderer';

window.onload = async () => {
	const canvas = document.getElementById('rpgedit') as HTMLCanvasElement;
	if (!canvas)
		return;

	const renderer = new Renderer(canvas);

	await GameContext.load(renderer);
};