split stuff out

This commit is contained in:
dylan
2023-05-01 11:12:08 -07:00
parent 1781ae3bba
commit 5d742d5964
5 changed files with 345 additions and 331 deletions

19
game.ts Normal file
View File

@@ -0,0 +1,19 @@
import faux from "./builtins.ts";
let y = 0;
export default {
init() {
},
update() {
y++;
if (y>127) {
y=-5;
}
},
draw() {
faux.clearScreen();
faux.drawText(0, y, "hello, world");
},
}