[oden] Fix various bugs in graphics modules

This commit is contained in:
John Doty 2023-06-24 11:03:21 -07:00
parent 9e685bc569
commit b2b730f79c
2 changed files with 5 additions and 5 deletions

View file

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

View file

@ -1,4 +1,4 @@
import { cls, print, spr } from "./src/graphics";
import { cls, print, spr } from "./src/graphics.js";
export function init() {
print("Hello world!");