Browse Source

Corrected alphadata syntax; added incgraphic statements for converted graphics.

Karl Garrison 3 years ago
parent
commit
d334860b6b
1 changed files with 123 additions and 77 deletions
  1. 123 77
      ature.78b

+ 123 - 77
ature.78b

@@ -372,7 +372,51 @@ end
 ;  %00010000
 ;  %00010000
 ;end
 ;end
 
 
-  incgraphic bgchars.png 0 1 2 3
+  incgraphic bgchars.png 0 1 2 3 0
+  incgraphic archer.png 0 1 2 3
+  incgraphic armor.png 0 1 2 3
+  incgraphic armorboss.png 0 1 2 3
+  incgraphic bat.png 0 1 2 3
+  incgraphic black.png 0 1 2 3
+  incgraphic black16.png 0 1 2 3
+  incgraphic blackboss.png 0 1 2 3
+  incgraphic book.png 0 1 2 3
+  incgraphic boss.png 0 1 2 3
+  incgraphic boss1.png 0 1 2 3
+  incgraphic boss2.png 0 1 2 3
+  incgraphic boss3.png 0 1 2 3
+  incgraphic cannon.png 0 1 2 3
+  incgraphic captain.png 0 1 2 3
+  incgraphic commander.png 0 1 2 3
+  incgraphic fish.png 0 1 2 3
+  incgraphic flower.png 0 1 2 3
+  incgraphic ghost.png 0 1 2 3
+  incgraphic grunt.png 0 1 2 3
+  incgraphic healallhp.png 0 1 2 3
+  incgraphic healallmp.png 0 1 2 3
+  incgraphic healbook.png 0 1 2 3
+  incgraphic healhp.png 0 1 2 3
+  incgraphic healmp.png 0 1 2 3
+  incgraphic ikaza.png 0 1 2 3
+  incgraphic knight.png 0 1 2 3
+  incgraphic leaf.png 0 1 2 3
+  incgraphic lion.png 0 1 2 3
+  incgraphic mage.png 0 1 2 3
+  incgraphic muschroom.png 0 1 2 3
+  incgraphic rabid.png 0 1 2 3
+  incgraphic scorpio.png 0 1 2 3
+  incgraphic shield.png 0 1 2 3
+  incgraphic skeleton.png 0 1 2 3
+  incgraphic snake.png 0 1 2 3
+  incgraphic spider.png 0 1 2 3
+  incgraphic strikebook.png 0 1 2 3
+  incgraphic switch.png 0 1 2 3
+  incgraphic switch_on.png 0 1 2 3
+  incgraphic sword.png 0 1 2 3
+  incgraphic treant.png 0 1 2 3
+  incgraphic victory.png 0 1 2 3
+  incgraphic wolf.png 0 1 2 3
+  incgraphic zombie.png 0 1 2 3
   characterset bgchars
   characterset bgchars
   alphachars '.X'
   alphachars '.X'
   P0C1=$0F
   P0C1=$0F
@@ -1222,6 +1266,7 @@ end
 
 
 room_draw
 room_draw
   rem 'Reset the monster missile and item flags
   rem 'Reset the monster missile and item flags
+  clearscreen
   missile1x = nowhere
   missile1x = nowhere
   missile1y = nowhere
   missile1y = nowhere
   item_flags = 0
   item_flags = 0
@@ -1248,6 +1293,7 @@ room_draw_64
   rem r65 r66 r67 r68 r69 r70 r71 r72 r73 r74 r75 r76 r77 r78 r79 r80 r81 r82 r83 r84 r85 r86 r87 r88 r89 r90 r91 r92 r93 r94 r95 r96 r97 r98 r99 r100
   rem r65 r66 r67 r68 r69 r70 r71 r72 r73 r74 r75 r76 r77 r78 r79 r80 r81 r82 r83 r84 r85 r86 r87 r88 r89 r90 r91 r92 r93 r94 r95 r96 r97 r98 r99 r100
 room_draw_end
 room_draw_end
   rem 'Clear bottom scrolling playfield row, so collision detection works properly
   rem 'Clear bottom scrolling playfield row, so collision detection works properly
+  savescreen
   var44 = 0
   var44 = 0
   var45 = 0
   var45 = 0
   var46 = 0
   var46 = 0
@@ -1257,7 +1303,7 @@ room_draw_end
  
  
 
 
 r00
 r00
-  alphadata r00_background
+  alphadata r00_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
@@ -1274,7 +1320,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r01
 r01
   if quest_flags{1} then BACKGRND=gray else BACKGRND=black
   if quest_flags{1} then BACKGRND=gray else BACKGRND=black
-  alphadata r01_background
+  alphadata r01_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'X..............................X'
   'X..............................X'
   'X..............................X'
   'X..............................X'
@@ -1291,7 +1337,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r02
 r02
   if quest_flags{1} then BACKGRND=gray else BACKGRND=black
   if quest_flags{1} then BACKGRND=gray else BACKGRND=black
-  alphadata r02_background
+  alphadata r02_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'X........XX...............XX...X'
   'X........XX...............XX...X'
   'X........XX...............XX...X'
   'X........XX...............XX...X'
@@ -1308,7 +1354,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r03
 r03
   BACKGRND = sand
   BACKGRND = sand
-  alphadata r03_background
+  alphadata r03_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'X.........XXXXXXXXXXXX..........'
   'X.........XXXXXXXXXXXX..........'
   'X.........XXXXXXXXXXXX..........'
   'X.........XXXXXXXXXXXX..........'
@@ -1325,7 +1371,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r04
 r04
   BACKGRND=gray
   BACKGRND=gray
-  alphadata r04_background
+  alphadata r04_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   '...............................X'
   '...............................X'
   '...............X...............X'
   '...............X...............X'
@@ -1342,7 +1388,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r05
 r05
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r05_background
+  alphadata r05_background bgchars
   'XXXXXXXX..XXXXXXXXXX..XXXXXXXXXX'
   'XXXXXXXX..XXXXXXXXXX..XXXXXXXXXX'
   'X.XXXX...XXXXXXXXXXXX...XXXXXXXX'
   'X.XXXX...XXXXXXXXXXXX...XXXXXXXX'
   'X.......XXXXXXXXXXXXXXX........X'
   'X.......XXXXXXXXXXXXXXX........X'
@@ -1359,7 +1405,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r06
 r06
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r06_background
+  alphadata r06_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XX.......XX.....................'
   'XX.......XX.....................'
   'XX.......XX.....................'
   'XX.......XX.....................'
@@ -1376,7 +1422,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r07
 r07
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r07_background
+  alphadata r07_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   '.............X.................X'
   '.............X.................X'
   '.............X.................X'
   '.............X.................X'
@@ -1394,7 +1440,7 @@ end
 r08
 r08
   BACKGRND=brown
   BACKGRND=brown
   if quest_flags{3} goto r08_open
   if quest_flags{3} goto r08_open
-  alphadata r08_background
+  alphadata r08_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXX....XXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXX....XXXXXXXXXXXXXX'
@@ -1410,7 +1456,7 @@ end
   plotmap r08_background 0 16 0 32 11
   plotmap r08_background 0 16 0 32 11
   goto r08_end
   goto r08_end
 r08_open
 r08_open
-  alphadata r08_open_background
+  alphadata r08_open_background bgchars
   'XXXXXXXXXXXXXX....XXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXX....XXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXX....XXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXX....XXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXX....XXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXX....XXXXXXXXXXXXXX'
@@ -1428,7 +1474,7 @@ r08_end
   goto room_draw_end
   goto room_draw_end
 r09
 r09
   BACKGRND=sand
   BACKGRND=sand
-  alphadata r09_background
+  alphadata r09_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXX.............'
   'XXXXXXXXXXXXXXXXXXX.............'
   'XXXXXXXXXXX.....................'
   'XXXXXXXXXXX.....................'
@@ -1445,7 +1491,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r10
 r10
   BACKGRND=sand
   BACKGRND=sand
-  alphadata r10_background
+  alphadata r10_background bgchars
   'XXXXXXXXXXXXXX....XXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXX....XXXXXXXXXXXXXX'
   '............XX.................X'
   '............XX.................X'
   '.............XX................X'
   '.............XX................X'
@@ -1462,7 +1508,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r11
 r11
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r11_background
+  alphadata r11_background bgchars
   'XX.......XXXXXXXXXXXXXX.........'
   'XX.......XXXXXXXXXXXXXX.........'
   'XX.......XXXXXXXXXXXXXX.........'
   'XX.......XXXXXXXXXXXXXX.........'
   'XX........XXXXXXXXXXXX..........'
   'XX........XXXXXXXXXXXX..........'
@@ -1479,7 +1525,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r12
 r12
   BACKGRND=gray
   BACKGRND=gray
-  alphadata r12_background
+  alphadata r12_background bgchars
   '...............................X'
   '...............................X'
   '...............................X'
   '...............................X'
   '...............................X'
   '...............................X'
@@ -1496,7 +1542,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r13
 r13
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r13_background
+  alphadata r13_background bgchars
   'XXXXXXXXXXXXXX...XXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXX...XXXXXXXXXXXXXXX'
   'X..............................X'
   'X..............................X'
   'X..............................X'
   'X..............................X'
@@ -1513,7 +1559,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r14
 r14
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r14_background
+  alphadata r14_background bgchars
   'XXX...XX...XXXXXXXXX...XX.....XX'
   'XXX...XX...XXXXXXXXX...XX.....XX'
   'XXX...XX...XXXXXXXXX...XX.......'
   'XXX...XX...XXXXXXXXX...XX.......'
   'XXX...XX...............XX.......'
   'XXX...XX...............XX.......'
@@ -1529,7 +1575,7 @@ end
   plotmap r14_background 0 16 0 32 11
   plotmap r14_background 0 16 0 32 11
   goto room_draw_end
   goto room_draw_end
 r15
 r15
-  alphadata r15_background
+  alphadata r15_background bgchars
   'XX...XXX...XXX...XXX...XXX.....X'
   'XX...XXX...XXX...XXX...XXX.....X'
   '.....XXX...XXX...XXX...XXX.....X'
   '.....XXX...XXX...XXX...XXX.....X'
   '.....XXX.......................X'
   '.....XXX.......................X'
@@ -1546,7 +1592,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r16
 r16
   BACKGRND=yellow
   BACKGRND=yellow
-  alphadata r16_background
+  alphadata r16_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'X..............................X'
   'X..............................X'
   'X..............................X'
   'X..............................X'
@@ -1563,7 +1609,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r17
 r17
   BACKGRND=sand
   BACKGRND=sand
-  alphadata r17_background
+  alphadata r17_background bgchars
   'XXXXXX.......XXXXXXXXXXXX....XXX'
   'XXXXXX.......XXXXXXXXXXXX....XXX'
   'XXXXXXXX.......XXXXXXXX.......XX'
   'XXXXXXXX.......XXXXXXXX.......XX'
   'XXXXXXXXXX..........XX..........'
   'XXXXXXXXXX..........XX..........'
@@ -1580,7 +1626,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r18
 r18
   BACKGRND = turfy
   BACKGRND = turfy
-  alphadata r18_background
+  alphadata r18_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXX.........'
   'XXXXXXXXXXXXXXXXXXXXXXX.........'
   'XXXXXXXXXXXXXXXXXXX.............'
   'XXXXXXXXXXXXXXXXXXX.............'
   '................................'
   '................................'
@@ -1597,7 +1643,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r19
 r19
   BACKGRND=sand
   BACKGRND=sand
-  alphadata r19_background
+  alphadata r19_background bgchars
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXXX.........'
   '..........XXXXXXXXXXXXX.........'
@@ -1614,7 +1660,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r20
 r20
   BACKGRND=sand
   BACKGRND=sand
-  alphadata r20_background
+  alphadata r20_background bgchars
   '...............................X'
   '...............................X'
   '....X.X.X.....XX.XX.XX.....X.X.X'
   '....X.X.X.....XX.XX.XX.....X.X.X'
   '....XXXXX.....XXXXXXXX.....XXXXX'
   '....XXXXX.....XXXXXXXX.....XXXXX'
@@ -1631,7 +1677,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r21
 r21
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r21_background
+  alphadata r21_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   '....X.X.X......X.XX.X......X.X.X'
   '....X.X.X......X.XX.X......X.X.X'
   '....XXXXX......XXXXXX......XXXXX'
   '....XXXXX......XXXXXX......XXXXX'
@@ -1648,7 +1694,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r22
 r22
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r22_background
+  alphadata r22_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXX...XXX...XXXXXXXXXXXXXX'
   'XXXXXXXXX...XXX...XXXXXXXXXXXXXX'
   'XXXXXXX.............XXXXXXXXXXXX'
   'XXXXXXX.............XXXXXXXXXXXX'
@@ -1665,7 +1711,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r23
 r23
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r23_background
+  alphadata r23_background bgchars
   'XXXXXXX...XXXXXXXXXXXXXXXX.....X'
   'XXXXXXX...XXXXXXXXXXXXXXXX.....X'
   'XXXXXXX...XXXXXXXXXXXXXXXX.....X'
   'XXXXXXX...XXXXXXXXXXXXXXXX.....X'
   'XXXXXXX....XXXXXXXXXXXXX.......X'
   'XXXXXXX....XXXXXXXXXXXXX.......X'
@@ -1683,7 +1729,7 @@ end
 r24
 r24
   BACKGRND=yellow
   BACKGRND=yellow
   if quest_flags{5} then goto r24_open  
   if quest_flags{5} then goto r24_open  
-  alphadata r24_background
+  alphadata r24_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'X..............................X'
   'X..............................X'
   'X...XX....................XX...X'
   'X...XX....................XX...X'
@@ -1699,7 +1745,7 @@ end
   plotmap r24_end_background 0 16 0 32 11
   plotmap r24_end_background 0 16 0 32 11
   goto r24_end
   goto r24_end
 r24_open
 r24_open
-  alphadata r24_open_background
+  alphadata r24_open_background bgchars
   'X..............................X'
   'X..............................X'
   'X..............................X'
   'X..............................X'
   'X...XX....................XX...X'
   'X...XX....................XX...X'
@@ -1717,7 +1763,7 @@ r24_end
   goto room_draw_end
   goto room_draw_end
 r25
 r25
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r25_background
+  alphadata r25_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXX..........'
   'XXXXXXXXXXXXXXXXXXXXXX..........'
   'XXXXXXXXXXXXXXXXXXXX............'
   'XXXXXXXXXXXXXXXXXXXX............'
   'XXXXXXXXXXXXXXXXXX.XXXXXXXXXX...'
   'XXXXXXXXXXXXXXXXXX.XXXXXXXXXX...'
@@ -1734,7 +1780,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r26
 r26
   BACKGRND = turfy
   BACKGRND = turfy
-  alphadata r26_background
+  alphadata r26_background bgchars
   '................................'
   '................................'
   '................................'
   '................................'
   '...XXXXXXX.....XXXXXXXXXXXXX....'
   '...XXXXXXX.....XXXXXXXXXXXXX....'
@@ -1751,7 +1797,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r27
 r27
   BACKGRND=sand
   BACKGRND=sand
-  alphadata r27_background
+  alphadata r27_background bgchars
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
@@ -1768,7 +1814,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r28
 r28
   BACKGRND=sand
   BACKGRND=sand
-  alphadata r28_background
+  alphadata r28_background bgchars
   '....X............XX...........XX'
   '....X............XX...........XX'
   '....XXXXXXXXXX...XX.....XXXXXXXX'
   '....XXXXXXXXXX...XX.....XXXXXXXX'
   '....X............XX...........XX'
   '....X............XX...........XX'
@@ -1787,7 +1833,7 @@ r29
   BACKGRND=turfy
   BACKGRND=turfy
   if quest_flags{6} then goto r29_open
   if quest_flags{6} then goto r29_open
   if item_flags{3} then goto r29_open   
   if item_flags{3} then goto r29_open   
-  alphadata r29_background
+  alphadata r29_background bgchars
   'XX..XXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XX..XXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XX..X.........................XX'
   'XX..X.........................XX'
   'XX..X.........................XX'
   'XX..X.........................XX'
@@ -1803,7 +1849,7 @@ end
   plotmap r29_background 0 16 0 32 11
   plotmap r29_background 0 16 0 32 11
   goto room_draw_end
   goto room_draw_end
 r29_open 
 r29_open 
-  alphadata r29_open_background
+  alphadata r29_open_background bgchars
   'XX..XXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XX..XXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XX..X.........................XX'
   'XX..X.........................XX'
   'XX..X.........................XX'
   'XX..X.........................XX'
@@ -1819,7 +1865,7 @@ end
   plotmap r29_open_background 0 16 0 32 11
   plotmap r29_open_background 0 16 0 32 11
   goto room_draw_end
   goto room_draw_end
 r30
 r30
-  alphadata r30_background
+  alphadata r30_background bgchars
   'X...............................'
   'X...............................'
   'XX......X.....X.....X.....X.....'
   'XX......X.....X.....X.....X.....'
   'XXX....XXX...XXX...XXX...XXX....'
   'XXX....XXX...XXX...XXX...XXX....'
@@ -1836,7 +1882,7 @@ end
   plotmap r30_background 0 16 0 32 11
   plotmap r30_background 0 16 0 32 11
   goto room_draw_end
   goto room_draw_end
 r31
 r31
-  alphadata r31_background
+  alphadata r31_background bgchars
   '...............................X'
   '...............................X'
   '...............................X'
   '...............................X'
   '...............................X'
   '...............................X'
@@ -1855,7 +1901,7 @@ end
 r32  
 r32  
   BACKGRND=turfy
   BACKGRND=turfy
   if quest_flags{2} then goto r32_open
   if quest_flags{2} then goto r32_open
-  alphadata r32_background
+  alphadata r32_background bgchars
   'X.....XXXXXXXXXXXXXXXXXXX.....XX'
   'X.....XXXXXXXXXXXXXXXXXXX.....XX'
   'X....XXXXXXXXXXXXXXXXXXXXX....XX'
   'X....XXXXXXXXXXXXXXXXXXXXX....XX'
   'X...XXXXXXXXXXXXXXXXXXXXXXX...XX'
   'X...XXXXXXXXXXXXXXXXXXXXXXX...XX'
@@ -1871,7 +1917,7 @@ end
   plotmap r32_background 0 16 0 32 11
   plotmap r32_background 0 16 0 32 11
   goto room_draw_end
   goto room_draw_end
 r32_open
 r32_open
-  alphadata r32_open_background
+  alphadata r32_open_background bgchars
   'X.....XXXXXXXX....XXXXXXX.....XX'
   'X.....XXXXXXXX....XXXXXXX.....XX'
   'X....XXXXXXXXX....XXXXXXXX....XX'
   'X....XXXXXXXXX....XXXXXXXX....XX'
   'X...XXXXXXXXX......XXXXXXXX...XX'
   'X...XXXXXXXXX......XXXXXXXX...XX'
@@ -1887,7 +1933,7 @@ end
   plotmap r32_open_background 0 16 0 32 11
   plotmap r32_open_background 0 16 0 32 11
   goto room_draw_end
   goto room_draw_end
 r33
 r33
-  alphadata r33_background
+  alphadata r33_background bgchars
   'XX..............................'
   'XX..............................'
   'XX.............XXX..............'
   'XX.............XXX..............'
   'XX...........XX...XX............'
   'XX...........XX...XX............'
@@ -1904,7 +1950,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r34
 r34
   BACKGRND = turfy
   BACKGRND = turfy
-  alphadata r34_background
+  alphadata r34_background bgchars
   '................................'
   '................................'
   '................................'
   '................................'
   '...XXXXXXXXXXXXX......XXXXXXX...'
   '...XXXXXXXXXXXXX......XXXXXXX...'
@@ -1922,7 +1968,7 @@ end
 r35
 r35
   BACKGRND=sand
   BACKGRND=sand
   if quest_flags{4} then goto r35_open
   if quest_flags{4} then goto r35_open
-  alphadata r35_background
+  alphadata r35_background bgchars
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
@@ -1938,7 +1984,7 @@ end
   plotmap r35_background 0 16 0 32 11
   plotmap r35_background 0 16 0 32 11
   goto room_draw_end
   goto room_draw_end
 r35_open
 r35_open
-  alphadata r35_open_background
+  alphadata r35_open_background bgchars
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
@@ -1955,7 +2001,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r36
 r36
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r36_background
+  alphadata r36_background bgchars
   '................................'
   '................................'
   '..XXXXXXXX..XXXXXXXX..XXXXXXXX..'
   '..XXXXXXXX..XXXXXXXX..XXXXXXXX..'
   '..XXXXXXXX..XXXXXXXX..XXXXXXXX..'
   '..XXXXXXXX..XXXXXXXX..XXXXXXXX..'
@@ -1972,7 +2018,7 @@ end
   goto room_draw_end  
   goto room_draw_end  
 r37
 r37
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r37_background
+  alphadata r37_background bgchars
   '................................'
   '................................'
   '..XXXXXXX..XXXXXXXXXX..XXXXXXX..'
   '..XXXXXXX..XXXXXXXXXX..XXXXXXX..'
   '..XXXXXXX..XXXXXXXXXX..XXXXXXX..'
   '..XXXXXXX..XXXXXXXXXX..XXXXXXX..'
@@ -1989,7 +2035,7 @@ end
   goto room_draw_end    
   goto room_draw_end    
 r38
 r38
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r38_background
+  alphadata r38_background bgchars
   'XX............................XX'
   'XX............................XX'
   '......XXXXXXXXXXXXXXXXXXX.......'
   '......XXXXXXXXXXXXXXXXXXX.......'
   '....XXX................XXXX.....'
   '....XXX................XXXX.....'
@@ -2006,7 +2052,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r39
 r39
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r39_background
+  alphadata r39_background bgchars
   'XXX...........................XX'
   'XXX...........................XX'
   '..XX...X........X.......X....XXX'
   '..XX...X........X.......X....XXX'
   '..XX..XXX......XXX.....XXX...XXX'
   '..XX..XXX......XXX.....XXX...XXX'
@@ -2029,7 +2075,7 @@ room_draw_40
   goto room_draw_end
   goto room_draw_end
 
 
 r40
 r40
-  alphadata r40_background
+  alphadata r40_background bgchars
   'X...............................'
   'X...............................'
   'XXX.............................'
   'XXX.............................'
   'XXXXX...........................'
   'XXXXX...........................'
@@ -2048,7 +2094,7 @@ end
   
   
 r41
 r41
   BACKGRND = turfy
   BACKGRND = turfy
-  alphadata r41_background
+  alphadata r41_background bgchars
   '................................'
   '................................'
   '.............X..................'
   '.............X..................'
   '............XXX.................'
   '............XXX.................'
@@ -2065,7 +2111,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r42
 r42
   BACKGRND = turfy
   BACKGRND = turfy
-  alphadata r42_background
+  alphadata r42_background bgchars
   '................................'
   '................................'
   '..........................X.....'
   '..........................X.....'
   '.........................XXX....'
   '.........................XXX....'
@@ -2082,7 +2128,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r43
 r43
   BACKGRND = sand
   BACKGRND = sand
-  alphadata r43_background
+  alphadata r43_background bgchars
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXX..........'
   '..........XXXXXXXXXXXXX.........'
   '..........XXXXXXXXXXXXX.........'
   '..........XXXXXXXXXXXXX.........'
   '..........XXXXXXXXXXXXX.........'
@@ -2099,7 +2145,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r44
 r44
   BACKGRND=sand
   BACKGRND=sand
-  alphadata r44_background
+  alphadata r44_background bgchars
   '................................'
   '................................'
   '........X.........X.............'
   '........X.........X.............'
   '.......XXX.......XXX............'
   '.......XXX.......XXX............'
@@ -2116,7 +2162,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r45
 r45
   BACKGRND = sand
   BACKGRND = sand
-  alphadata r45_background
+  alphadata r45_background bgchars
   '................................'
   '................................'
   '................................'
   '................................'
   '................................'
   '................................'
@@ -2133,7 +2179,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r46
 r46
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r46_background
+  alphadata r46_background bgchars
   '..X.......X.XXX..XXX.XXXXXXXXX..'
   '..X.......X.XXX..XXX.XXXXXXXXX..'
   '..X....XXXXXXXX..XXXXXXX.XXXXX..'
   '..X....XXXXXXXX..XXXXXXX.XXXXX..'
   '..X.......XXXXXXXXXX.XXX.XXXXX..'
   '..X.......XXXXXXXXXX.XXX.XXXXX..'
@@ -2150,7 +2196,7 @@ end
   plotmap r46_background 0 16 0 32 11
   plotmap r46_background 0 16 0 32 11
   goto room_draw_end
   goto room_draw_end
 r47
 r47
-  alphadata r47_background
+  alphadata r47_background bgchars
   '..XX...........................X'
   '..XX...........................X'
   '...XX..X....X.....X.....X......X'
   '...XX..X....X.....X.....X......X'
   '..XX..XXX..XXX...XXX...XXX....XX'
   '..XX..XXX..XXX...XXX...XXX....XX'
@@ -2170,7 +2216,7 @@ end
 
 
 r48
 r48
   BACKGRND = turfy
   BACKGRND = turfy
-  alphadata r48_background
+  alphadata r48_background bgchars
   'X...............................'
   'X...............................'
   'X...........X...................'
   'X...........X...................'
   'X...............................'
   'X...............................'
@@ -2188,7 +2234,7 @@ end
 
 
 r49
 r49
   BACKGRND=turfy
   BACKGRND=turfy
-  alphadata r49_background
+  alphadata r49_background bgchars
   '................................'
   '................................'
   '................................'
   '................................'
   '.......XXXXXXXXXXXXXXXXXX.......'
   '.......XXXXXXXXXXXXXXXXXX.......'
@@ -2207,7 +2253,7 @@ end
 
 
 r50
 r50
   BACKGRND = sand + 0
   BACKGRND = sand + 0
-  alphadata r50_background
+  alphadata r50_background bgchars
   '..............................XX'
   '..............................XX'
   '.............................XXX'
   '.............................XXX'
   '...........................XXXXX'
   '...........................XXXXX'
@@ -2226,7 +2272,7 @@ end
 r51
 r51
   rem 'black ship top
   rem 'black ship top
   BACKGRND = seablue + 2
   BACKGRND = seablue + 2
-  alphadata r51_background
+  alphadata r51_background bgchars
   '.............XXXXXXXXXXXXX......'
   '.............XXXXXXXXXXXXX......'
   '...........XXXXXXXXXXXXXXX......'
   '...........XXXXXXXXXXXXXXX......'
   '..........XXXXXXXXXXXXXXXX......'
   '..........XXXXXXXXXXXXXXXX......'
@@ -2243,7 +2289,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r52
 r52
   BACKGRND = sand
   BACKGRND = sand
-  alphadata r52_background
+  alphadata r52_background bgchars
   'XX..............................'
   'XX..............................'
   'XXX.............................'
   'XXX.............................'
   'XXXX............................'
   'XXXX............................'
@@ -2260,7 +2306,7 @@ end
   goto room_draw_end
   goto room_draw_end
 r53
 r53
   BACKGRND = sand
   BACKGRND = sand
-  alphadata r53_background
+  alphadata r53_background bgchars
   '................................'
   '................................'
   '......XXX..XXX......XXX..XXX....'
   '......XXX..XXX......XXX..XXX....'
   '.....X...XX...X....X...XX...X...'
   '.....X...XX...X....X...XX...X...'
@@ -2278,7 +2324,7 @@ end
 r54
 r54
   BACKGRND = turfy
   BACKGRND = turfy
   if quest_flags{3} then goto r54_open  
   if quest_flags{3} then goto r54_open  
-  alphadata r54_background
+  alphadata r54_background bgchars
   '..XX.XXXXXX.XXXXXXXX.XXXXXX.XX..'
   '..XX.XXXXXX.XXXXXXXX.XXXXXX.XX..'
   '..XX.XXXXXXXXXX..XXXXXXXXXX.XX..'
   '..XX.XXXXXXXXXX..XXXXXXXXXX.XX..'
   '..XXXXX.XXXXXXX..XXXXXXX.XXXXX..'
   '..XXXXX.XXXXXXX..XXXXXXX.XXXXX..'
@@ -2294,7 +2340,7 @@ end
   plotmap r54_background 0 16 0 32 11
   plotmap r54_background 0 16 0 32 11
   goto room_draw_end    
   goto room_draw_end    
 r54_open
 r54_open
-  alphadata r54_open_background
+  alphadata r54_open_background bgchars
   '..XX.XXXXXX.XXXXXXXXXX.....XXX..'
   '..XX.XXXXXX.XXXXXXXXXX.....XXX..'
   '..XX.XXXXXXXX...........XXXXXX..'
   '..XX.XXXXXXXX...........XXXXXX..'
   '..XXXXX.XXXXX........XXX.XXXXX..'
   '..XXXXX.XXXXX........XXX.XXXXX..'
@@ -2312,7 +2358,7 @@ end
 r55
 r55
   BACKGRND = sand
   BACKGRND = sand
   if quest_flags{7} then goto r55_open
   if quest_flags{7} then goto r55_open
-  alphadata r55_background
+  alphadata r55_background bgchars
   '...XX..........................X'
   '...XX..........................X'
   '...............................X'
   '...............................X'
   '.......XXXXXXX.................X'
   '.......XXXXXXX.................X'
@@ -2328,7 +2374,7 @@ end
   plotmap r55_background 0 16 0 32 11
   plotmap r55_background 0 16 0 32 11
   goto room_draw_end
   goto room_draw_end
 r55_open  
 r55_open  
-  alphadata r55_open_background
+  alphadata r55_open_background bgchars
   '...XX..........................X'
   '...XX..........................X'
   '...............................X'
   '...............................X'
   '.......XXXXXXX.................X'
   '.......XXXXXXX.................X'
@@ -2347,7 +2393,7 @@ r56
   rem 'Shield on island
   rem 'Shield on island
   BACKGRND = sand
   BACKGRND = sand
   if !quest_flags{6} then goto r56_closed
   if !quest_flags{6} then goto r56_closed
-  alphadata r56_background
+  alphadata r56_background bgchars
   'X...............................'
   'X...............................'
   'X...............................'
   'X...............................'
   'XXX.............................'
   'XXX.............................'
@@ -2363,7 +2409,7 @@ end
   plotmap r56_background 0 16 0 32 11
   plotmap r56_background 0 16 0 32 11
   goto room_draw_end
   goto room_draw_end
 r56_closed
 r56_closed
-  alphadata r56_closed_background
+  alphadata r56_closed_background bgchars
   'X...............................'
   'X...............................'
   'X...............................'
   'X...............................'
   'XXX.............................'
   'XXX.............................'
@@ -2381,7 +2427,7 @@ r56_end
   goto room_draw_end
   goto room_draw_end
 r57
 r57
   BACKGRND = sand
   BACKGRND = sand
-  alphadata r57_background
+  alphadata r57_background bgchars
   '................................'
   '................................'
   '................................'
   '................................'
   '................................'
   '................................'
@@ -2400,7 +2446,7 @@ end
 r58
 r58
   BACKGRND = sand
   BACKGRND = sand
   if quest_flags{2} goto r58_open
   if quest_flags{2} goto r58_open
-  alphadata r58_background
+  alphadata r58_background bgchars
   '................XXXXXXXXXXXXXXXX'
   '................XXXXXXXXXXXXXXXX'
   '................XXXXXXXXXXXXXXXX'
   '................XXXXXXXXXXXXXXXX'
   '...............XXXXXXXXXXXXXXXXX'
   '...............XXXXXXXXXXXXXXXXX'
@@ -2416,7 +2462,7 @@ end
   plotmap r58_background 0 16 0 32 11
   plotmap r58_background 0 16 0 32 11
   goto room_draw_end
   goto room_draw_end
 r58_open
 r58_open
-  alphadata r58_open_background
+  alphadata r58_open_background bgchars
   '................XXXXXXXXXXXXXXXX'
   '................XXXXXXXXXXXXXXXX'
   '...................XXXXXXXXXXXXX'
   '...................XXXXXXXXXXXXX'
   '.....................XXXXXXXXXXX'
   '.....................XXXXXXXXXXX'
@@ -2437,7 +2483,7 @@ r59
   BACKGRND = seablue + 1
   BACKGRND = seablue + 1
   rem 'black ship bottom, when switch3 isn't pressed
   rem 'black ship bottom, when switch3 isn't pressed
   if quest_flags{3} goto black_ship_open
   if quest_flags{3} goto black_ship_open
-  alphadata r59_background
+  alphadata r59_background bgchars
   '.XXXX..XX......XX...XXXXX....XXX'
   '.XXXX..XX......XX...XXXXX....XXX'
   'XXXXX...............X...X....XXX'
   'XXXXX...............X...X....XXX'
   '.XXXX........................XXX'
   '.XXXX........................XXX'
@@ -2453,7 +2499,7 @@ end
   plotmap r59_background 0 16 0 32 11
   plotmap r59_background 0 16 0 32 11
   goto black_ship_end
   goto black_ship_end
 black_ship_open
 black_ship_open
-  alphadata black_ship_open_background
+  alphadata black_ship_open_background bgchars
   '.XXXX..XX......XX...XXXXX....XX.'
   '.XXXX..XX......XX...XXXXX....XX.'
   'XXXXX...............X...X....XX.'
   'XXXXX...............X...X....XX.'
   '.XXXX........................XX.'
   '.XXXX........................XX.'
@@ -2473,7 +2519,7 @@ black_ship_end
 r60
 r60
   rem 'Boss 3, Kraken room.'
   rem 'Boss 3, Kraken room.'
   BACKGRND = black
   BACKGRND = black
-  alphadata r60_background
+  alphadata r60_background bgchars
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
   'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
@@ -2492,7 +2538,7 @@ end
 r61
 r61
   BACKGRND = sand
   BACKGRND = sand
   if !hero_items{5} then goto r61_closed
   if !hero_items{5} then goto r61_closed
-  alphadata r61_background
+  alphadata r61_background bgchars
   'X...............................'
   'X...............................'
   'X...............................'
   'X...............................'
   'XXX.............................'
   'XXX.............................'
@@ -2508,7 +2554,7 @@ end
   plotmap r61_background 0 16 0 32 11
   plotmap r61_background 0 16 0 32 11
   goto room_draw_end
   goto room_draw_end
 r61_closed 
 r61_closed 
-  alphadata r61_closed_background
+  alphadata r61_closed_background bgchars
   'XX..............................'
   'XX..............................'
   'XXXXX...........................'
   'XXXXX...........................'
   'XXXXXXXX........................'
   'XXXXXXXX........................'
@@ -2526,7 +2572,7 @@ end
 
 
 r62
 r62
   BACKGRND = sand
   BACKGRND = sand
-  alphadata r62_background
+  alphadata r62_background bgchars
   '...............................X'
   '...............................X'
   '..............................XX'
   '..............................XX'
   '..............................XX'
   '..............................XX'
@@ -2545,7 +2591,7 @@ end
 
 
 r63
 r63
   BACKGRND = sand
   BACKGRND = sand
-  alphadata r63_background
+  alphadata r63_background bgchars
   'XX.............................X'
   'XX.............................X'
   'XX............................XX'
   'XX............................XX'
   'XX............................XX'
   'XX............................XX'
@@ -3755,7 +3801,7 @@ intro_screen
   music_which=music_which_intro
   music_which=music_which_intro
   BACKGRND = black
   BACKGRND = black
   COLUPF = white
   COLUPF = white
-  alphadata intro_screen_background
+  alphadata intro_screen_background bgchars
   '..X....XXXXX..X...X..XXX...XXXX.'
   '..X....XXXXX..X...X..XXX...XXXX.'
   '.X.X.....X....X...X..X..X..X....'
   '.X.X.....X....X...X..X..X..X....'
   'X...X....X....X...X..XXX...XXXX.'
   'X...X....X....X...X..XXX...XXXX.'