[oden] Text is mildly functional

This commit is contained in:
John Doty 2023-08-31 17:18:37 -07:00
parent 8914b1795f
commit ecce7b64eb
5 changed files with 204 additions and 114 deletions

15
game/log.ts Normal file
View file

@ -0,0 +1,15 @@
import { print } from "./graphics";
const lines: string[] = [];
export function log(...args: unknown[]) {
// const line = args.join(" ");
lines.push(args.join(" "));
}
export function draw_log() {
for (const line of lines) {
print(line);
break;
}
}