Spaces:
Runtime error
Runtime error
File size: 556 Bytes
65567a2 6c2bcb4 65567a2 6c2bcb4 65567a2 6c2bcb4 2aa79c0 6c2bcb4 65567a2 6c2bcb4 65567a2 2aa79c0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
export const base = {
default: `const canvas = document.querySelector('canvas');
canvas.style.backgroundColor = '#fff';
const ctx = canvas.getContext('2d');
function draw(){
const FPS = 60;
// TODO: Add drawing logic here
// NEVER stop the loop
setTimeout(requestAnimationFrame(draw),1000/FPS)
}
draw();
`.trim(),
};
export const COMMAND_CREATE_GAME = "CREATE_GAME";
export const COMMAND_ADD_FEATURE = "ADD";
export const COMMAND_REMOVE_FEATURE = "REMOVE";
export const COMMAND_EXTEND_FEATURE = "EXTEND";
export const COMMAND_FIX_BUG = "FIX";
|