[oden] Text is mildly functional
This commit is contained in:
parent
8914b1795f
commit
ecce7b64eb
5 changed files with 204 additions and 114 deletions
15
game/log.ts
Normal file
15
game/log.ts
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue