[oden] Load typescript kinda
This commit is contained in:
parent
cc21e8c406
commit
3968aabdb1
10 changed files with 1284 additions and 31 deletions
24
src/graphics.ts
Normal file
24
src/graphics.ts
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue