some more cart infrastructure

This commit is contained in:
dylan
2023-05-02 17:06:54 -07:00
parent a7b675d541
commit fdc8f97aee
7 changed files with 61 additions and 57 deletions

View File

@ -1,6 +1,10 @@
[
{
"sheet_type": "code",
"value": "return {init: () => {}, update: () => {}, draw: () => {clearScreen(); drawText(0, 0, 'hello world')}}"
"value": "x = code_sheet(1);\nreturn {init: () => {y = 0}, update: () => {y += speed; if (y > 127) {y = -6}}, draw: () => {clear_screen(); draw_text(x, y, 'hello world')}}"
},
{
"sheet_type": "code",
"value": "speed = 2; return 8"
}
]