summaryrefslogtreecommitdiffstats
path: root/src/index.ts
blob: 4db13d52f53d250936b5ea26c6ac9c05a7597855 (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);

	GameContext.load(renderer);
};