almost a real repl

This commit is contained in:
dylan
2023-05-03 15:17:27 -07:00
parent 7de521bd39
commit 1482288b0c
6 changed files with 308 additions and 35 deletions

View File

@ -4,7 +4,7 @@ import {
} from "./window.ts";
import { font } from "./font.ts";
import { keyDown, keyPressed, keyReleased } from "./keyboard.ts";
// import { codeSheet } from "./sheet.ts";
import { addToContext } from "./runcode.ts";
// deno-fmt-ignore
const sprites = [
@ -66,7 +66,11 @@ const faux = {
key_down: keyDown,
key_pressed: keyPressed,
key_released: keyReleased,
// code_sheet: codeSheet,
log: console.log,
};
for (const key in faux) {
addToContext(key, faux[key as keyof typeof faux]);
}
export default faux;