fantasy-console/game.ts

19 lines
208 B
TypeScript
Raw Normal View History

2023-05-01 11:12:08 -07:00
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");
},
}