aboutsummaryrefslogtreecommitdiff
path: root/main.fab
diff options
context:
space:
mode:
Diffstat (limited to 'main.fab')
-rw-r--r--main.fab20
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")