diff options
| author | Patrick Kingston <patrick@pkingston.xyz> | 2026-02-07 01:25:35 -0500 |
|---|---|---|
| committer | Patrick Kingston <patrick@pkingston.xyz> | 2026-02-07 01:25:35 -0500 |
| commit | 80a1f6aa01bcff47bbe6c4273233997da0d3c271 (patch) | |
| tree | b9e419c70204113850de324c36f67d685f22c15d /main.fab | |
| parent | 91ab1e7b87b7d2e19f815e4dccaa57a8d47963a1 (diff) | |
Create build system with babashka
Diffstat (limited to 'main.fab')
| -rw-r--r-- | main.fab | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main.fab b/main.fab new file mode 100644 index 0000000..ebbb2a4 --- /dev/null +++ b/main.fab @@ -0,0 +1,20 @@ +fn load_level() + ppu_reset_addr($2000) + + for UU i = 0; i < 1024; i += 1 + {PPUDATA}(1) + +mode main() + // Set the palette: + palette = example_palette + ppu_upload_palette() + + // Load the background + {PPUMASK}(PPUMASK_BG_ON | PPUMASK_NO_CLIP) + + // Loop forever: + while true + +// Define the tileset (commonly called CHR): +chrrom + file(fmt, "tiles.png") |
