[oden] Load typescript kinda

This commit is contained in:
John Doty 2023-06-24 14:21:47 -07:00
parent cc21e8c406
commit 3968aabdb1
10 changed files with 1284 additions and 31 deletions

24
src/graphics.ts Normal file
View file

@ -0,0 +1,24 @@
import * as core from "graphics-core";
export function cls(r: number, g: number, b: number) {
core.cls(r, g, b);
}
export function print(...args: string[]) {
core.print(args.join(" "));
}
export function spr(
x: number,
y: number,
w: number,
h: number,
sx: number,
sy: number,
sw: number | undefined = undefined,
sh: number | undefined = undefined
) {
sw = sw || w;
sh = sh || h;
core.spr(x, y, w, h, sx, sy, sw, sh);
}