[oden][oden-js] Rework modules
Damn this is a lot
This commit is contained in:
parent
aa90cea4a3
commit
db8a5f8eed
12 changed files with 280 additions and 105 deletions
15
src/graphics.js
Normal file
15
src/graphics.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import * as core from "graphics-core";
|
||||
|
||||
function cls(r, g, b) {
|
||||
core.cls(r, g, b);
|
||||
}
|
||||
|
||||
function print(...args) {
|
||||
core.print(args.join(" "));
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue