SHARE
TWEET

Test map source

ISSOtm Aug 8th, 2017 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SECTION "Test tileset", ROMX
  2.  
  3. TestTileset::
  4.     db 40 ; Number of tiles
  5.    
  6.     ; Grass tiles (80-82)
  7.     dw $0062, $02B5, $004A, $40B5, $004A, $08B4, $004B, $0094
  8.     dw $00AA, $0855, $002B, $00AA, $2054, $00AA, $0255, $004A
  9.     dw $0029, $00D2, $102D, $0052, $02AD, $0052, $40AD, $0046
  10.    
  11.     ; House (83-91)
  12.     dw $203F, $2F30, $203F, $3C23, $3C23, $203F, $2F30, $2F30 ; Left
  13.     dw $00FF, $3FC0, $00FF, $FC03, $FC03, $00FF, $FFFF, $0000 ; Bottom
  14.     dw $203F, $2F30, $203F, $3C23, $3F20, $1F10, $0F0F, $0000 ; Corner
  15.     dw $00FF, $00FF, $3FFF, $3FE0, $3FE7, $38E8, $38E8, $3FEF ; Door top-left
  16.     dw $3FE0, $3FEF, $37E1, $37E1, $31E1, $3FE0, $BFFF, $6060 ; Door bottom-left
  17.     dw $FC07, $FCF7, $7C17, $7C17, $1C17, $FC07, $FDFF, $0606 ; Door bottom-right
  18.     dw $00FF, $7FFF, $7FC0, $64C0, $64C0, $64C0, $64C0, $7FFF ; Window top
  19.     dw $64C0, $64C0, $64C0, $64C0, $64C0, $7FFF, $00FF, $00FF ; Window bottom
  20.     dw $00FF, $3FC0, $00FF, $FC03, $FC03, $00FF, $3FC0, $3FC0 ; Filler
  21.     dw $FFFF, $00FF, $54AB, $22DD, $00FF, $08F7, $44BB, $22DD ; Roof top
  22.     dw $80FF, $80FF, $80FF, $80FF, $80FF, $80FF, $80FF, $80FF ; Roof left
  23.     dw $80FF, $9FFF, $A0FF, $C0FF, $FFFF, $FF80, $FF80, $FFFF ; Roof bottom-left
  24.     dw $0707, $181F, $203F, $407F, $407F, $80FF, $80FF, $80FF ; Roof top-left
  25.     dw $00FF, $FFFF, $00FF, $00FF, $FFFF, $FF00, $FF00, $FFFF ; Roof bottom
  26.     dw $00FF, $54AB, $22DD, $00FF, $08F7, $44BB, $22DD, $00FF ; Roof filler
  27.    
  28.     ; Rock (92-97)
  29.     dw $FF56, $BBEF, $D77E, $EBBE, $DD77, $FF6A, $D5FF, $FF6A ; Left
  30.     dw $D50F, $C4F7, $82E3, $01F3, $03FD, $9FE9, $7F47, $BEBE ; Horizontal
  31.     dw $0F0C, $3732, $6F45, $4F4B, $CFC5, $FFAB, $FF55, $FF3E ; Top-left
  32.     dw $A7B6, $4362, $80E2, $81E2, $84F3, $83FF, $F7CC, $FFF9 ; Right
  33.     dw $F030, $EC4C, $D6A2, $82F2, $83F3, $83FD, $C37E, $FF3C ; Top-right
  34.     dw $FF00, $AF10, $FE00, $FF00, $AD42, $FF00, $EF10, $FB00 ; Filler
  35.    
  36.     ; 98
  37.     dw $FF00, $EF10, $FF00, $FF00, $BD42, $FF00, $EF10, $FF00 ; Water
  38. ;   dw $FF00, $F700, $FF00, $FF00, $DE00, $FF00, $F700, $FF00 ; Water frame 2
  39. ;   dw $FF00, $DF20, $FF00, $FF00, $7B84, $FF00, $DF20, $FF00 ; Water frame 3
  40.    
  41.     ; Bridge (99-9A)
  42.     dw $FF00, $FFFF, $FF00, $7788, $DD22, $BB44, $FFFF, $FF00 ; Horizontal
  43.     dw $F74A, $DF62, $EF52, $FF42, $F74A, $DF62, $EF52, $FF42 ; Vertical
  44.    
  45.     ; Sign (9B-9C)
  46.     dw $0000, $0000, $0000, $7F7F, $407F, $5F7F, $507F, $5777 ; Top-left
  47.     dw $5070, $5777, $5070, $5777, $5878, $5070, $507F, $207F ; Bottom-left
  48.    
  49.     ; 9D
  50.     dw $0000, $0012, $0044, $0000, $0020, $0002, $0040, $0008 ; Path tile (merge with rock filler ?)
  51.    
  52.     ; 9E
  53.     dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000 ; Flower
  54. ;   dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000 ; Flower frame 2
  55.    
  56.     ; Tree (9F-A4)
  57.     dw $01A9, $0243, $0D2E, $1798, $243B, $D3EC, $5C63, $E19E ; Top-left
  58.     dw $8092, $C048, $F033, $78AC, $FE16, $FF2B, $FE16, $FF69 ; Top-right
  59.     dw $243B, $D3EC, $5C63, $E19E, $243B, $D3EC, $5CE3, $E19E ; Middle-left
  60.     dw $FE17, $FF2B, $FE17, $FF69, $FE17, $FF2B, $FE17, $FF69 ; Middle-right
  61.     dw $24FB, $D3EC, $5CE3, $E19E, $7FFF, $057E, $0B7C, $0F3F ; Bottom-left
  62.     dw $FE17, $FF2B, $FE17, $FF69, $FF7F, $E0BC, $F018, $E0F0 ; Bottom-right
  63.    
  64.     ; A5
  65.     dw $4200, $A542, $AB44, $D628, $4438, $2856, $38C7, $106E ; Tall grass
  66.    
  67.     ; A6
  68.     dw $0000, $0000, $0000, $0000, $0000, $0000, $0000, $0000 ; Door mat
  69.    
  70.     ; A7
  71.     dw $FF00, $FF00, $FF00, $FF00, $FF00, $FF00, $FF00, $FF00 ; Accesses the third color of a palette
  72.    
  73.     ; Grey border
  74.     tile_attr $A7, 0, 0, 0, 0, 0, 0
  75.     tile_attr $A7, 0, 0, 0, 0, 0, 0
  76.     tile_attr $A7, 0, 0, 0, 0, 0, 0
  77.     tile_attr $A7, 0, 0, 0, 0, 0, 0
  78.    
  79.     ; Grass
  80.     tile_attr $80, 1, 2, 0, 0, 0, 0
  81.     tile_attr $81, 0, 2, 0, 0, 0, 0
  82.     tile_attr $82, 0, 2, 0, 0, 0, 0
  83.     tile_attr $80, 0, 2, 0, 0, 0, 0
  84.    
  85.     ; House top-left
  86.     tile_attr $80, 1, 2, 0, 0, 0, 0
  87.     tile_attr $81, 0, 2, 0, 0, 0, 0
  88.     tile_attr $8F, 0, 5, 0, 0, 0, 1
  89.     tile_attr $8D, 0, 5, 0, 0, 0, 1
  90.    
  91.     ; House top
  92.     tile_attr $8C, 1, 5, 0, 0, 0, 1
  93.     tile_attr $91, 0, 5, 0, 0, 0, 1
  94.     tile_attr $8C, 0, 5, 0, 0, 0, 1
  95.     tile_attr $91, 0, 5, 0, 0, 0, 1
  96.    
  97.     ; House top-right
  98.     tile_attr $8F, 1, 5, 0, 1, 0, 1
  99.     tile_attr $8D, 0, 5, 0, 1, 0, 1
  100.     tile_attr $82, 0, 2, 0, 0, 0, 0
  101.     tile_attr $80, 0, 2, 0, 0, 0, 0
  102.    
  103.     ; Roof bottom-left
  104.     tile_attr $80, 0, 2, 0, 0, 0, 0
  105.     tile_attr $81, 0, 2, 0, 0, 0, 0
  106.     tile_attr $8E, 0, 5, 0, 0, 0, 0
  107.     tile_attr $83, 0, 3, 0, 0, 0, 0
  108.    
  109.     ; Roof bottom
  110.     tile_attr $90, 0, 5, 0, 0, 0, 1
  111.     tile_attr $8B, 0, 3, 0, 0, 0, 0
  112.     tile_attr $90, 0, 5, 0, 0, 0, 1
  113.     tile_attr $8B, 0, 3, 0, 0, 0, 0
  114.    
  115.     ; Roof bottom-right
  116.     tile_attr $8E, 0, 5, 0, 1, 0, 1
  117.     tile_attr $83, 0, 3, 0, 1, 0, 1
  118.     tile_attr $82, 0, 2, 0, 0, 0, 0
  119.     tile_attr $80, 0, 2, 0, 0, 0, 0
  120.    
  121.     ; House left
  122.     tile_attr $80, 0, 2, 0, 0, 0, 0
  123.     tile_attr $81, 0, 2, 0, 0, 0, 0
  124.     tile_attr $83, 0, 3, 0, 0, 0, 0
  125.     tile_attr $83, 0, 3, 0, 0, 0, 0
  126.    
  127.     ; House middle
  128.     tile_attr $8B, 0, 3, 0, 0, 0, 0
  129.     tile_attr $8B, 0, 3, 0, 0, 0, 0
  130.     tile_attr $8B, 0, 3, 0, 0, 0, 0
  131.     tile_attr $8B, 0, 3, 0, 0, 0, 0
  132.    
  133.     ; House right
  134.     tile_attr $83, 0, 3, 0, 1, 0, 0
  135.     tile_attr $83, 0, 3, 0, 1, 0, 0
  136.     tile_attr $82, 0, 2, 0, 0, 0, 0
  137.     tile_attr $80, 0, 2, 0, 0, 0, 0
  138.    
  139.     ; House bottom-left
  140.     tile_attr $80, 0, 2, 0, 0, 0, 0
  141.     tile_attr $81, 0, 2, 0, 0, 0, 0
  142.     tile_attr $83, 0, 3, 0, 0, 0, 0
  143.     tile_attr $85, 0, 3, 0, 0, 0, 0
  144.    
  145.     ; Door
  146.     tile_attr $86, 0, 4, 0, 0, 0, 0
  147.     tile_attr $87, 0, 4, 0, 0, 0, 0
  148.     tile_attr $86, 0, 4, 0, 1, 0, 0
  149.     tile_attr $88, 0, 4, 0, 0, 0, 0
  150.    
  151.     ; House bottom
  152.     tile_attr $8B, 0, 3, 0, 0, 0, 0
  153.     tile_attr $84, 0, 3, 0, 0, 0, 0
  154.     tile_attr $8B, 0, 3, 0, 0, 0, 0
  155.     tile_attr $84, 0, 3, 0, 0, 0, 0
  156.    
  157.     ; Roof bottom with window top
  158.     tile_attr $90, 0, 5, 0, 0, 0, 1
  159.     tile_attr $89, 0, 4, 0, 0, 0, 0
  160.     tile_attr $90, 0, 5, 0, 0, 0, 1
  161.     tile_attr $89, 0, 4, 0, 1, 0, 0
  162.    
  163.     ; House bottom with window bottom
  164.     tile_attr $8A, 0, 4, 0, 0, 0, 0
  165.     tile_attr $84, 0, 3, 0, 0, 0, 0
  166.     tile_attr $8A, 0, 4, 0, 1, 0, 0
  167.     tile_attr $84, 0, 3, 0, 0, 0, 0
  168.    
  169.     ; House bottom-right
  170.     tile_attr $83, 0, 3, 0, 1, 0, 0
  171.     tile_attr $85, 0, 3, 0, 1, 0, 0
  172.     tile_attr $82, 0, 2, 0, 0, 0, 0
  173.     tile_attr $80, 0, 2, 0, 0, 0, 0
  174.    
  175.     ; Path
  176.     tile_attr $9D, 1, 0, 0, 0, 0, 0
  177.     tile_attr $9D, 0, 0, 0, 0, 0, 0
  178.     tile_attr $9D, 0, 0, 0, 0, 0, 0
  179.     tile_attr $9D, 0, 0, 0, 0, 0, 0
  180.    
  181.     ; Sign
  182.     tile_attr $9B, 0, 0, 0, 0, 0, 1
  183.     tile_attr $9C, 0, 0, 0, 0, 0, 0
  184.     tile_attr $9B, 0, 0, 0, 1, 0, 1
  185.     tile_attr $9C, 0, 0, 0, 1, 0, 0
  186.    
  187.     ; Water top-left
  188.     tile_attr $94, 0, 7, 0, 0, 0, 0
  189.     tile_attr $92, 1, 7, 0, 0, 0, 0
  190.     tile_attr $93, 0, 7, 0, 0, 0, 0
  191.     tile_attr $98, 0, 6, 0, 0, 0, 0
  192.    
  193.     ; Water top
  194.     tile_attr $93, 0, 7, 0, 0, 0, 0
  195.     tile_attr $98, 1, 6, 0, 0, 0, 0
  196.     tile_attr $93, 0, 7, 0, 0, 0, 0
  197.     tile_attr $98, 0, 6, 0, 0, 0, 0
  198.    
  199.     ; Water top-right
  200.     tile_attr $93, 0, 7, 0, 0, 0, 0
  201.     tile_attr $98, 1, 6, 0, 0, 0, 0
  202.     tile_attr $96, 0, 7, 0, 0, 0, 0
  203.     tile_attr $95, 0, 7, 0, 0, 0, 0
  204.    
  205.     ; Water left
  206.     tile_attr $92, 0, 7, 0, 0, 0, 0
  207.     tile_attr $92, 1, 7, 0, 0, 0, 0
  208.     tile_attr $98, 0, 6, 0, 0, 0, 0
  209.     tile_attr $98, 0, 6, 0, 0, 0, 0
  210.    
  211.     ; Water
  212.     tile_attr $98, 0, 6, 0, 0, 0, 0
  213.     tile_attr $98, 1, 6, 0, 0, 0, 0
  214.     tile_attr $98, 0, 6, 0, 0, 0, 0
  215.     tile_attr $98, 0, 6, 0, 0, 0, 0
  216.    
  217.     ; Horizontal bridge
  218.     tile_attr $99, 1, 3, 0, 0, 0, 0
  219.     tile_attr $99, 0, 3, 0, 0, 0, 0
  220.     tile_attr $99, 0, 3, 0, 0, 0, 0
  221.     tile_attr $99, 0, 3, 0, 0, 0, 0
  222.    
  223.     ; Vertical bridge
  224.     tile_attr $9A, 1, 3, 0, 0, 0, 0
  225.     tile_attr $9A, 0, 3, 0, 0, 0, 0
  226.     tile_attr $9A, 0, 3, 0, 0, 0, 0
  227.     tile_attr $9A, 0, 3, 0, 0, 0, 0
  228.    
  229.     ; Water right
  230.     tile_attr $98, 0, 6, 0, 0, 0, 0
  231.     tile_attr $98, 1, 6, 0, 0, 0, 0
  232.     tile_attr $95, 0, 7, 0, 0, 0, 0
  233.     tile_attr $95, 0, 7, 0, 0, 0, 0
  234.    
  235.     ; Water bottom-left
  236.     tile_attr $92, 0, 7, 0, 0, 1, 0
  237.     tile_attr $94, 1, 7, 0, 0, 1, 0
  238.     tile_attr $98, 0, 6, 0, 0, 0, 0
  239.     tile_attr $93, 0, 7, 0, 0, 1, 0
  240.    
  241.     ; Water bottom
  242.     tile_attr $98, 0, 6, 0, 0, 0, 0
  243.     tile_attr $93, 1, 7, 0, 0, 1, 0
  244.     tile_attr $98, 0, 6, 0, 0, 0, 0
  245.     tile_attr $93, 0, 7, 0, 0, 1, 0
  246.    
  247.     ; Water bottom-right
  248.     tile_attr $98, 0, 6, 0, 0, 0, 0
  249.     tile_attr $93, 1, 7, 0, 0, 1, 0
  250.     tile_attr $95, 0, 7, 0, 0, 0, 0
  251.     tile_attr $96, 0, 7, 0, 0, 1, 0
  252.    
  253.     ; Tree
  254.     tile_attr $9F, 0, 2, 0, 0, 0, 0
  255.     tile_attr $A3, 0, 2, 0, 0, 0, 0
  256.     tile_attr $A0, 0, 2, 0, 0, 0, 0
  257.     tile_attr $A4, 0, 2, 0, 0, 0, 0
  258.    
  259.     ; Tree base
  260.     tile_attr $A1, 0, 2, 0, 0, 0, 0
  261.     tile_attr $A3, 0, 2, 0, 0, 0, 0
  262.     tile_attr $A2, 0, 2, 0, 0, 0, 0
  263.     tile_attr $A4, 0, 2, 0, 0, 0, 0
  264.    
  265.     ; Tree middle
  266.     tile_attr $A1, 0, 2, 0, 0, 0, 0
  267.     tile_attr $A1, 0, 2, 0, 0, 0, 0
  268.     tile_attr $A2, 0, 2, 0, 0, 0, 0
  269.     tile_attr $A2, 0, 2, 0, 0, 0, 0
  270.    
  271.     ; Tree top
  272.     tile_attr $80, 1, 2, 0, 0, 0, 0
  273.     tile_attr $9F, 0, 2, 0, 0, 0, 1
  274.     tile_attr $82, 0, 2, 0, 0, 0, 0
  275.     tile_attr $A0, 0, 2, 0, 0, 0, 1
  276.    
  277.     ; Tall grass
  278.     tile_attr $A5, 1, 2, 0, 0, 0, 0
  279.     tile_attr $A5, 0, 2, 0, 0, 0, 0
  280.     tile_attr $A5, 0, 2, 0, 0, 0, 0
  281.     tile_attr $A5, 0, 2, 0, 0, 0, 0
  282.    
  283.     ; Rock top-left
  284.     tile_attr $96, 0, 7, 0, 1, 0, 0
  285.     tile_attr $95, 0, 7, 0, 1, 0, 0
  286.     tile_attr $93, 0, 7, 0, 0, 1, 0
  287.     tile_attr $97, 0, 7, 0, 0, 0, 0
  288.    
  289.     ; Rock top
  290.     tile_attr $93, 0, 7, 0, 0, 1, 0
  291.     tile_attr $97, 0, 7, 0, 0, 0, 0
  292.     tile_attr $93, 0, 7, 0, 0, 1, 0
  293.     tile_attr $97, 0, 7, 0, 0, 0, 0
  294.    
  295.     ; Rock top-right
  296.     tile_attr $93, 0, 7, 0, 0, 1, 0
  297.     tile_attr $97, 0, 7, 0, 0, 0, 0
  298.     tile_attr $94, 0, 7, 0, 1, 0, 0
  299.     tile_attr $92, 0, 7, 0, 1, 0, 0
  300.    
  301.     ; Rock left
  302.     tile_attr $95, 0, 7, 0, 1, 0, 0
  303.     tile_attr $95, 0, 7, 0, 1, 0, 0
  304.     tile_attr $97, 0, 7, 0, 0, 0, 0
  305.     tile_attr $97, 0, 7, 0, 0, 0, 0
  306.    
  307.     ; Rock
  308.     tile_attr $97, 0, 7, 0, 0, 0, 0
  309.     tile_attr $97, 0, 7, 0, 0, 0, 0
  310.     tile_attr $97, 0, 7, 0, 0, 0, 0
  311.     tile_attr $97, 0, 7, 0, 0, 0, 0
  312.    
  313.     ; Rock right
  314.     tile_attr $97, 0, 7, 0, 0, 0, 0
  315.     tile_attr $97, 0, 7, 0, 0, 0, 0
  316.     tile_attr $92, 0, 7, 0, 1, 0, 0
  317.     tile_attr $92, 0, 7, 0, 1, 0, 0
  318.    
  319.     ; Rock bottom-left
  320.     tile_attr $95, 0, 7, 0, 1, 0, 0
  321.     tile_attr $96, 0, 7, 0, 1, 1, 0
  322.     tile_attr $97, 0, 7, 0, 0, 0, 0
  323.     tile_attr $93, 0, 7, 0, 0, 0, 0
  324.    
  325.     ; Rock bottom (lol)
  326.     tile_attr $97, 0, 7, 0, 0, 0, 0
  327.     tile_attr $93, 0, 7, 0, 0, 0, 0
  328.     tile_attr $97, 0, 7, 0, 0, 0, 0
  329.     tile_attr $93, 0, 7, 0, 0, 0, 0
  330.    
  331.     ; Rock bottom-right
  332.     tile_attr $97, 0, 7, 0, 0, 0, 0
  333.     tile_attr $93, 0, 7, 0, 0, 0, 0
  334.     tile_attr $92, 0, 7, 0, 1, 0, 0
  335.     tile_attr $94, 0, 7, 0, 1, 1, 0
  336.    
  337.     ; These blocks aren't used
  338. REPT 64 - 44
  339.     tile_attr $A7, 0, 0, 0, 0, 0, 0
  340.     tile_attr $A7, 0, 0, 0, 0, 0, 0
  341.     tile_attr $A7, 0, 0, 0, 0, 0, 0
  342.     tile_attr $A7, 0, 0, 0, 0, 0, 0
  343. ENDR
  344.    
  345.     dw GrassPalette
  346.     dw HousePalette
  347.     dw DoorWindowPalette
  348.     dw RoofPalette
  349.     dw WaterPalette
  350.     dw RockPalette
  351.    
  352.     dw TestNPCPalette
  353.     dw 0
  354.     dw 0
  355.     dw 0
  356.     dw 0
  357.     dw 0
  358.     dw 0
  359.  
  360.  
  361. SECTION "Test map", ROMX
  362.    
  363. TestMap::
  364.     db 0 ; Exterior map
  365.    
  366.     db 0 ; Music ID
  367.    
  368.     db 0 ; Tileset
  369.     dw 0 ; Script (none)
  370.     db 30, 18 ; Width, height
  371.     dw 0 ; Loading script (none)
  372.    
  373. TestMapInteractions::
  374.     db 2
  375.    
  376.     db BTN_INTERACT
  377.     dw $0090 ; Y pos
  378.     dw $0130 ; X pos
  379.     db 16 ; Y hitbox
  380.     db 16 ; X hitbox
  381.     dw TestMapSignText ; Text ptr
  382.    
  383.     db BTN_LOADZONE
  384.     dw $005F
  385.     dw $0062
  386.     db 1
  387.     db 12
  388.     db 1 ; Dest map
  389.     db 0 ; Dest warp point
  390.    
  391. TestMapNPCs::
  392.     db 1 ; Number of NPCs
  393.    
  394.     dw $0020 ; Y pos
  395.     dw $0020 ; X pos
  396.     db 16 ; Y hitbox
  397.     db 16 ; X hitbox
  398.     db 0 ; Interaction ID
  399.     db $01 << 2 | DIR_DOWN ; Sprite ID & direction
  400.     db 1 << 4 | 1, 1 << 4 | 1 ; Palette IDs
  401.     db $F4 ; Movement permissions
  402.     db $01 ; Movement speed
  403.    
  404.     db $01 ; Number of NPC scripts
  405.     dw TestMapNPCScripts
  406.    
  407.     db $01 ; Number of NPC tile sets
  408.     dw TestNPCTiles
  409.    
  410. TestMapWarpToPoints::
  411.     db 2 ; Number of warp-to points
  412.    
  413.     dw $0098 ; Y pos
  414.     dw $0050 ; X pos
  415.     db DIR_DOWN ; Direction
  416.     db NO_WALKING ; Flags
  417.     db 0 ; Cameraman ID
  418.     dw 0 ; Loading script (none)
  419.     ds 7
  420.    
  421.     dw $FFF8
  422.     dw $0140
  423.     db DIR_DOWN
  424.     db NO_WALKING
  425.     db 0
  426.     dw 0
  427.     ds 7
  428.    
  429. TestMapBlocks::
  430. INCBIN "maps/test.blk"
  431.  
  432. TestMapNPCScripts::
  433.     dw TestMapNPC0Script
  434.    
  435. TestMapNPC0Script::
  436.     print_name .name
  437.     print_line .line0
  438.     print_line .line1
  439.     wait_user
  440.     print_line .line2
  441.     print_line .line3
  442.     print_line .line4
  443.     wait_user
  444.     clear_box
  445.     print_line .line5
  446.     wait_user
  447.     print_line .line6
  448.     print_line .line7
  449.     print_line .line8
  450.     wait_user
  451.     clear_box
  452.     print_line .line9
  453.     print_line .line10
  454.     print_line .line11
  455.     wait_user
  456.     print_line .line12
  457.     wait_user
  458.     clear_box
  459.     print_line .line13
  460.     wait_user
  461.     done
  462.    
  463. .name
  464.     dstr "TEST #0"
  465.    
  466. .line0
  467.     dstr "Heya! Did you know"
  468. .line1
  469.     dstr "you are a NPC?"
  470. .line2
  471.     db "At least, "
  472.     dstr "what"
  473. .line3
  474.     dstr "that guy there is"
  475. .line4
  476.     dstr "seeing is."
  477. .line5
  478.     dstr "What guy?"
  479. .line6
  480.     dstr "That one watching"
  481. .line7
  482.     dstr "us through that"
  483. .line8
  484.     db "screen, there!",0
  485. .line9
  486.     db "Also, "
  487.     dstr "aside from"
  488. .line10
  489.     db "you, "
  490.     dstr "I am the"
  491. .line11
  492.     dstr "first NPC ever"
  493. .line12
  494.     dstr "created."
  495. .line13
  496.     db "Neat, "
  497.     dstr "huh?"
  498.  
  499. TestNPCTiles::
  500.     dw $0000, $0000, $0202, $0404, $0000, $0303, $0407, $080F
  501.     dw $101F, $101F, $101F, $101F, $080F, $0407, $0303, $0000
  502.     dw $0000, $0000, $8080, $4040, $0000, $C0C0, $20E0, $10F0
  503.     dw $08F8, $08F8, $08F8, $08F8, $10F0, $20E0, $C0C0, $0000
  504.    
  505.     dw $0000, $0000, $0202, $0404, $0000, $0303, $0407, $0A0F
  506.     dw $121F, $121F, $101F, $101F, $090F, $0407, $0303, $0000
  507.     dw $0000, $0000, $8080, $4040, $0000, $C0C0, $20E0, $90F0
  508.     dw $88F8, $88F8, $08F8, $48F8, $90F0, $20E0, $C0C0, $0000
  509.    
  510.     dw $0000, $0000, $0404, $0202, $0000, $0303, $0407, $080F
  511.     dw $141F, $141F, $141F, $101F, $0A0F, $0407, $0303, $0000
  512.     dw $0000, $0000, $0000, $0000, $0000, $C0C0, $20E0, $10F0
  513.     dw $08F8, $08F8, $08F8, $08F8, $10F0, $20E0, $C0C0, $0000
  514.    
  515. TestNPCWalkingTiles::
  516.     dw $0202, $0404, $0000, $0303, $0407, $080F, $101F, $101F
  517.     dw $101F, $101F, $080F, $0407, $0303, $0000, $0000, $0000
  518.     dw $8080, $4040, $0000, $C0C0, $20E0, $10F0, $08F8, $08F8
  519.     dw $08F8, $08F8, $10F0, $20E0, $C0C0, $0000, $0000, $0000
  520.    
  521.     dw $0202, $0404, $0000, $0303, $0407, $0A0F, $121F, $101F
  522.     dw $131F, $121F, $090F, $0407, $0303, $0000, $0000, $0000
  523.     dw $8080, $4040, $0000, $C0C0, $20E0, $90F0, $88F8, $08F8
  524.     dw $C8F8, $48F8, $90F0, $20E0, $C0C0, $0000, $0000, $0000
  525.    
  526.     dw $0404, $0202, $0000, $0303, $0407, $080F, $141F, $141F
  527.     dw $101F, $181F, $0407, $0407, $0303, $0000, $0000, $0000
  528.     dw $0000, $0000, $0000, $C0C0, $20E0, $10F0, $08F8, $08F8
  529.     dw $08F8, $08F8, $10F0, $20E0, $C0C0, $0000, $0000, $0000
  530.    
  531.    
  532. TestMapSignText::
  533.     disp_box
  534.     print_line TestMapSignLine0
  535.     print_line TestMapSignLine1
  536.     wait_user
  537.     print_line TestMapSignLine2
  538.     print_line TestMapSignLine3
  539.     empty_line
  540.     wait_user
  541.     clear_box
  542.     print_line TestMapSignLine4
  543.     print_line TestMapSignLine5
  544.     print_line TestMapSignLine6
  545.     wait_user
  546.     clear_box
  547.     delay 60
  548.     print_line TestMapSignLine7
  549.     print_line TestMapSignLine8
  550.     wait_user
  551.     done
  552.    
  553. TestMapSignLine0::
  554.     db "Howdy, "
  555.     dstr "fellow"
  556. TestMapSignLine1::
  557.     dstr "traveler!"
  558. TestMapSignLine2::
  559.     dstr "Welcome to the"
  560. TestMapSignLine3::
  561.     dstr "Test Map!"
  562. TestMapSignLine4::
  563.     dstr "Enjoy your stay"
  564. TestMapSignLine5::
  565.     dstr "in this strange"
  566. TestMapSignLine6::
  567.     dstr "place."
  568. TestMapSignLine7::
  569.     db "Also, "
  570.     dstr "how the hell"
  571. TestMapSignLine8::
  572.     dstr "did you get here??"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top