[oden] OK now everything is TS and it type-checks
This commit is contained in:
parent
3968aabdb1
commit
b6f6d908d2
6 changed files with 168 additions and 158 deletions
|
|
@ -1,13 +1,17 @@
|
|||
import * as core from "graphics-core";
|
||||
|
||||
// Clear the screen to the specified color. r, g, and b should vary from 0 to
|
||||
// 1.
|
||||
export function cls(r: number, g: number, b: number) {
|
||||
core.cls(r, g, b);
|
||||
}
|
||||
|
||||
export function print(...args: string[]) {
|
||||
// Print a message to the console.
|
||||
export function print(...args: unknown[]) {
|
||||
core.print(args.join(" "));
|
||||
}
|
||||
|
||||
// Draw a sprite in the rectangle from x,y to
|
||||
export function spr(
|
||||
x: number,
|
||||
y: number,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue