File size: 307 Bytes
2f65818
 
 
 
 
c976217
2f65818
 
c976217
 
 
 
2f65818
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export const baseGame = {
	default: `const canvas = document.querySelector('canvas');
canvas.style.backgroundColor = '#fff';
const ctx = canvas.getContext('2d');

function draw(delta) {
	// TODO: Add drawing logic here
}

// NEVER stop the gameloop
requestAnimationFrame(createGameLoop(draw));
`.trim(),
};