Allow compilation by using cdn

This commit is contained in:
dylan
2023-05-06 17:18:49 -07:00
parent 6bd5f7ae01
commit 5760a3f03b
11 changed files with 30 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ import {
fillRect,
} from "./window.ts";
import { font } from "./font.ts";
// import { keyDown, keyPressed, keyReleased } from "./keyboard.ts";
import { keyDown, keyPressed, keyReleased } from "./keyboard.ts";
import { addToContext, runCode } from "./runcode.ts";
import { resetRepl } from "./repl.ts";
import { COLOR } from "./colors.ts";
@@ -51,9 +51,9 @@ const faux = {
spr: drawSprite,
txt: drawText,
rect: fillRect,
// key_down: keyDown,
// key_pressed: keyPressed,
// key_released: keyReleased,
btn: keyDown,
btnp: keyPressed,
btnr: keyReleased,
code: (n: number) => {
return runCode(getCodeSheet(n));
},