aboutsummaryrefslogtreecommitdiff
path: root/main.fab
blob: ebbb2a4b4e0c0931625096cfdbab12c9f5e01e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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")