[oden] Fix various bugs in graphics modules
This commit is contained in:
parent
9e685bc569
commit
b2b730f79c
2 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue