tron@2186: /* $Id$ */ tron@2186: Darkvater@1784: #ifndef TREE_LAND_H Darkvater@1784: #define TREE_LAND_H Darkvater@1784: tron@2989: static const SpriteID _tree_sprites_1[] = { tron@2989: SPR_FLAT_1_QUART_SNOWY_TILE, tron@2989: SPR_FLAT_2_QUART_SNOWY_TILE, tron@2989: SPR_FLAT_3_QUART_SNOWY_TILE, tron@2989: SPR_FLAT_SNOWY_TILE truelight@0: }; truelight@0: Darkvater@1784: static const byte _tree_base_by_landscape[4] = {0, 12, 20, 32}; Darkvater@1784: static const byte _tree_count_by_landscape[4] = {12, 8, 12, 9}; Darkvater@1784: tron@2654: typedef struct TreePos { tron@2654: uint8 x; tron@2654: uint8 y; tron@2654: } TreePos; tron@2654: tron@2654: static const TreePos _tree_layout_xy[][4] = { tron@2654: { { 9, 3 }, { 1, 8 }, { 0, 0 }, { 8, 9 } }, tron@2654: { { 4, 4 }, { 9, 1 }, { 6, 9 }, { 0, 9 } }, tron@2654: { { 9, 1 }, { 0, 9 }, { 6, 6 }, { 3, 0 } }, tron@2654: { { 3, 9 }, { 8, 2 }, { 9, 9 }, { 1, 5 } } truelight@0: }; truelight@0: truelight@0: static const PalSpriteID _tree_layout_sprite[164+(79-48+1)][4] = { truelight@0: { 0x652, 0x659, 0x660, 0x667}, /* 0 */ truelight@0: { 0x652, 0x667, 0x66e, 0x675}, /* 1 */ truelight@0: { 0x652, 0x66e, 0x659, 0x675}, /* 2 */ truelight@0: { 0x652, 0x652, 0x660, 0x66e}, /* 3 */ truelight@0: { 0x660, 0x667, 0x659, 0x652}, /* 4 */ truelight@0: { 0x660, 0x675, 0x660, 0x660}, /* 5 */ truelight@0: { 0x660, 0x652, 0x652, 0x66e}, /* 6 */ truelight@0: { 0x660, 0x675, 0x667, 0x659}, /* 7 */ truelight@0: { 0x675, 0x660, 0x675, 0x675}, /* 8 */ truelight@0: { 0x675, 0x659, 0x652, 0x652}, /* 9 */ truelight@0: { 0x675, 0x66e, 0x652, 0x652}, /* 10 */ truelight@0: { 0x675, 0x667, 0x659, 0x667}, /* 11 */ truelight@0: { 0x628, 0x652, 0x660, 0x62f}, /* 12 */ truelight@0: { 0x628, 0x636, 0x675, 0x644}, /* 13 */ truelight@0: { 0x628, 0x652, 0x63d, 0x66e}, /* 14 */ truelight@0: { 0x628, 0x667, 0x644, 0x652}, /* 15 */ truelight@0: { 0x644, 0x659, 0x660, 0x628}, /* 16 */ truelight@0: { 0x644, 0x64b, 0x659, 0x636}, /* 17 */ truelight@0: { 0x644, 0x675, 0x652, 0x63d}, /* 18 */ truelight@0: { 0x644, 0x63d, 0x66e, 0x652}, /* 19 */ truelight@0: { 0x636, 0x636, 0x628, 0x636}, /* 20 */ truelight@0: { 0x636, 0x63d, 0x636, 0x636}, /* 21 */ truelight@0: { 0x636, 0x64b, 0x636, 0x636}, /* 22 */ truelight@0: { 0x636, 0x636, 0x636, 0x636}, /* 23 */ truelight@0: { 0x64b, 0x628, 0x62f, 0x636}, /* 24 */ truelight@0: { 0x64b, 0x63d, 0x644, 0x636}, /* 25 */ truelight@0: { 0x64b, 0x636, 0x63d, 0x628}, /* 26 */ truelight@0: { 0x64b, 0x64b, 0x636, 0x63d}, /* 27 */ truelight@0: { 0x62f, 0x644, 0x644, 0x636}, /* 28 */ truelight@0: { 0x62f, 0x62f, 0x636, 0x628}, /* 29 */ truelight@0: { 0x62f, 0x64b, 0x636, 0x636}, /* 30 */ truelight@0: { 0x62f, 0x636, 0x62f, 0x636}, /* 31 */ truelight@0: { 0x67c, 0x675, 0x683, 0x67c}, /* 32 */ truelight@0: { 0x67c, 0x69f, 0x67c, 0x659}, /* 33 */ truelight@0: { 0x67c, 0x67c, 0x67c, 0x6a6}, /* 34 */ truelight@0: { 0x67c, 0x691, 0x66e, 0x68a}, /* 35 */ truelight@0: { 0x68a, 0x68a, 0x698, 0x68a}, /* 36 */ truelight@0: { 0x68a, 0x698, 0x683, 0x68a}, /* 37 */ truelight@0: { 0x68a, 0x67c, 0x691, 0x68a}, /* 38 */ truelight@0: { 0x68a, 0x683, 0x6a6, 0x69f}, /* 39 */ truelight@0: { 0x698, 0x68a, 0x698, 0x652}, /* 40 */ truelight@0: { 0x698, 0x698, 0x660, 0x667}, /* 41 */ truelight@0: { 0x698, 0x67c, 0x6a6, 0x698}, /* 42 */ truelight@0: { 0x698, 0x698, 0x698, 0x691}, /* 43 */ truelight@0: { 0x6a6, 0x6a6, 0x67c, 0x660}, /* 44 */ truelight@0: { 0x6a6, 0x69f, 0x6a6, 0x652}, /* 45 */ truelight@0: { 0x6a6, 0x67c, 0x6a6, 0x691}, /* 46 */ truelight@0: { 0x6a6, 0x691, 0x69f, 0x6a6}, /* 47 */ truelight@0: { 0x6ad, 0x6ad, 0x6ad, 0x6ad}, /* 48 */ truelight@0: { 0x6ad, 0x6ad, 0x6c2, 0x6d0}, /* 49 */ truelight@0: { 0x6ad, 0x6d7, 0x6ad, 0x6ad}, /* 50 */ truelight@0: { 0x6ad, 0x6d0, 0x6c9, 0x6ad}, /* 51 */ truelight@0: { 0x6d0, 0x6d0, 0x6d0, 0x6ad}, /* 52 */ truelight@0: { 0x6d0, 0x6ad, 0x6d7, 0x6c9}, /* 53 */ truelight@0: { 0x6d0, 0x6d7, 0x6d0, 0x6c2}, /* 54 */ truelight@0: { 0x6d0, 0x6d0, 0x6d0, 0x6ad}, /* 55 */ truelight@0: { 0x6d7, 0x6d7, 0x6d7, 0x6d7}, /* 56 */ truelight@0: { 0x6d7, 0x6d7, 0x6ad, 0x6ad}, /* 57 */ truelight@0: { 0x6d7, 0x6d0, 0x6d7, 0x6ad}, /* 58 */ truelight@0: { 0x6d7, 0x6d7, 0x6d0, 0x6ad}, /* 59 */ truelight@0: { 0x6c2, 0x6d0, 0x6c9, 0x6c2}, /* 60 */ truelight@0: { 0x6c2, 0x6c9, 0x6c2, 0x6ad}, /* 61 */ truelight@0: { 0x6c2, 0x6c2, 0x6c2, 0x6ad}, /* 62 */ truelight@0: { 0x6c2, 0x6c2, 0x6c2, 0x6c9}, /* 63 */ truelight@0: { 0x6c9, 0x6d0, 0x6b4, 0x6c2}, /* 64 */ truelight@0: { 0x6c9, 0x6bb, 0x6de, 0x6d7}, /* 65 */ truelight@0: { 0x6c9, 0x6c2, 0x6bb, 0x6b4}, /* 66 */ truelight@0: { 0x6c9, 0x6bb, 0x6c2, 0x6de}, /* 67 */ truelight@0: { 0x6b4, 0x6b4, 0x6de, 0x6c9}, /* 68 */ truelight@0: { 0x6b4, 0x6bb, 0x6bb, 0x6ad}, /* 69 */ truelight@0: { 0x6b4, 0x6de, 0x6bb, 0x6b4}, /* 70 */ truelight@0: { 0x6b4, 0x6ad, 0x6c2, 0x6de}, /* 71 */ truelight@0: { 0x6bb, 0x6d0, 0x6de, 0x6c2}, /* 72 */ truelight@0: { 0x6bb, 0x6b4, 0x6bb, 0x6d7}, /* 73 */ truelight@0: { 0x6bb, 0x6de, 0x6bb, 0x6b4}, /* 74 */ truelight@0: { 0x6bb, 0x6c9, 0x6c2, 0x6de}, /* 75 */ truelight@0: { 0x6de, 0x6d7, 0x6de, 0x6c2}, /* 76 */ truelight@0: { 0x6de, 0x6bb, 0x6de, 0x6d0}, /* 77 */ truelight@0: { 0x6de, 0x6de, 0x6bb, 0x6b4}, /* 78 */ truelight@0: { 0x6de, 0x6c9, 0x6c2, 0x6de}, /* 79 */ truelight@0: { 0x72b, 0x732, 0x72b, 0x739}, /* 80 */ truelight@0: { 0x72b, 0x747, 0x755, 0x72b}, /* 81 */ truelight@0: { 0x72b, 0x72b, 0x76a, 0x786}, /* 82 */ truelight@0: { 0x72b, 0x74e, 0x72b, 0x72b}, /* 83 */ truelight@0: { 0x732, 0x732, 0x72b, 0x739}, /* 84 */ truelight@0: { 0x732, 0x747, 0x732, 0x732}, /* 85 */ truelight@0: { 0x732, 0x732, 0x755, 0x794}, /* 86 */ truelight@0: { 0x732, 0x74e, 0x732, 0x78d}, /* 87 */ truelight@0: { 0x747, 0x732, 0x747, 0x740}, /* 88 */ truelight@0: { 0x747, 0x747, 0x732, 0x76a}, /* 89 */ truelight@0: { 0x747, 0x72b, 0x755, 0x747}, /* 90 */ truelight@0: { 0x747, 0x786, 0x732, 0x747}, /* 91 */ truelight@0: { 0x74e, 0x74e, 0x72b, 0x794}, /* 92 */ truelight@0: { 0x74e, 0x755, 0x732, 0x74e}, /* 93 */ truelight@0: { 0x74e, 0x72b, 0x786, 0x747}, /* 94 */ truelight@0: { 0x74e, 0x74e, 0x732, 0x794}, /* 95 */ truelight@0: { 0x76a, 0x76a, 0x74e, 0x74e}, /* 96 */ truelight@0: { 0x76a, 0x794, 0x732, 0x76a}, /* 97 */ truelight@0: { 0x76a, 0x732, 0x786, 0x76a}, /* 98 */ truelight@0: { 0x76a, 0x786, 0x732, 0x78d}, /* 99 */ truelight@0: { 0x78d, 0x78d, 0x74e, 0x794}, /* 100 */ truelight@0: { 0x78d, 0x732, 0x739, 0x747}, /* 101 */ truelight@0: { 0x78d, 0x732, 0x786, 0x76a}, /* 102 */ truelight@0: { 0x78d, 0x786, 0x78d, 0x794}, /* 103 */ truelight@0: { 0x786, 0x786, 0x740, 0x732}, /* 104 */ truelight@0: { 0x786, 0x786, 0x72b, 0x732}, /* 105 */ truelight@0: { 0x786, 0x732, 0x786, 0x786}, /* 106 */ truelight@0: { 0x786, 0x786, 0x78d, 0x794}, /* 107 */ truelight@0: { 0x778, 0x778, 0x77f, 0x778}, /* 108 */ truelight@0: { 0x778, 0x77f, 0x778, 0x77f}, /* 109 */ truelight@0: { 0x778, 0x77f, 0x77f, 0x778}, /* 110 */ truelight@0: { 0x778, 0x778, 0x778, 0x77f}, /* 111 */ truelight@0: { 0x75c, 0x71d, 0x75c, 0x724}, /* 112 */ truelight@0: { 0x75c, 0x72b, 0x75c, 0x763}, /* 113 */ truelight@0: { 0x75c, 0x75c, 0x771, 0x71d}, /* 114 */ truelight@0: { 0x75c, 0x771, 0x75c, 0x75c}, /* 115 */ truelight@0: { 0x771, 0x771, 0x75c, 0x71d}, /* 116 */ truelight@0: { 0x771, 0x747, 0x75c, 0x771}, /* 117 */ truelight@0: { 0x771, 0x75c, 0x771, 0x724}, /* 118 */ truelight@0: { 0x771, 0x771, 0x75c, 0x763}, /* 119 */ truelight@0: { 0x71d, 0x71d, 0x771, 0x724}, /* 120 */ truelight@0: { 0x71d, 0x74e, 0x763, 0x71d}, /* 121 */ truelight@0: { 0x71d, 0x724, 0x794, 0x71d}, /* 122 */ truelight@0: { 0x71d, 0x71d, 0x75c, 0x78d}, /* 123 */ truelight@0: { 0x794, 0x724, 0x75c, 0x794}, /* 124 */ truelight@0: { 0x794, 0x794, 0x75c, 0x71d}, /* 125 */ truelight@0: { 0x794, 0x724, 0x794, 0x71d}, /* 126 */ truelight@0: { 0x794, 0x794, 0x771, 0x78d}, /* 127 */ celestar@2187: { 0x79b | PALETTE_TO_RED, 0x79b | PALETTE_TO_PALE_GREEN, 0x79b | PALETTE_TO_MAUVE, 0x79b | PALETTE_TO_PURPLE}, /* 128 */ celestar@2187: { 0x79b, 0x79b | PALETTE_TO_GREY, 0x79b | PALETTE_TO_GREEN, 0x79b | PALETTE_TO_WHITE}, /* 129 */ celestar@2187: { 0x79b | PALETTE_TO_GREEN, 0x79b | PALETTE_TO_ORANGE, 0x79b | PALETTE_TO_PINK, 0x79b}, /* 130 */ celestar@2187: { 0x79b | PALETTE_TO_YELLOW, 0x79b | PALETTE_TO_RED, 0x79b | PALETTE_TO_CREAM, 0x79b | PALETTE_TO_RED}, /* 131 */ celestar@2187: { 0x7a2, 0x7a2 | PALETTE_TO_RED, 0x7a2 | PALETTE_TO_PINK, 0x7a2 | PALETTE_TO_PURPLE}, /* 132 */ celestar@2187: { 0x7a2 | PALETTE_TO_MAUVE, 0x7a2 | PALETTE_TO_GREEN, 0x7a2 | PALETTE_TO_PINK, 0x7a2 | PALETTE_TO_GREY}, /* 133 */ celestar@2187: { 0x7a2 | PALETTE_TO_RED, 0x7a2 | PALETTE_TO_PALE_GREEN, 0x7a2 | PALETTE_TO_YELLOW, 0x7a2 | PALETTE_TO_WHITE}, /* 134 */ celestar@2187: { 0x7a2 | PALETTE_TO_ORANGE, 0x7a2 | PALETTE_TO_MAUVE, 0x7a2 | PALETTE_TO_CREAM, 0x7a2 | PALETTE_TO_BROWN}, /* 135 */ celestar@2187: { 0x7a9 | PALETTE_TO_RED, 0x7a9, 0x7a9 | PALETTE_TO_ORANGE, 0x7a9 | PALETTE_TO_GREY}, /* 136 */ celestar@2187: { 0x7a9 | PALETTE_TO_ORANGE, 0x7a9 | PALETTE_TO_GREEN, 0x7a9 | PALETTE_TO_PALE_GREEN, 0x7a9 | PALETTE_TO_MAUVE}, /* 137 */ celestar@2187: { 0x7a9 | PALETTE_TO_PINK, 0x7a9 | PALETTE_TO_RED, 0x7a9 | PALETTE_TO_GREEN, 0x7a9 | PALETTE_TO_BROWN}, /* 138 */ celestar@2187: { 0x7a9 | PALETTE_TO_GREEN, 0x7a9, 0x7a9 | PALETTE_TO_RED, 0x7a9 | PALETTE_TO_CREAM}, /* 139 */ truelight@0: { 0x7b0, 0x7b0, 0x7b0, 0x7b0}, /* 140 */ truelight@0: { 0x7b0, 0x7b0, 0x7b0, 0x7b0}, /* 141 */ truelight@0: { 0x7b0, 0x7b0, 0x7b0, 0x7b0}, /* 142 */ truelight@0: { 0x7b0, 0x7b0, 0x7b0, 0x7b0}, /* 143 */ celestar@2187: { 0x7b7 | PALETTE_TO_PINK, 0x7b7 | PALETTE_TO_RED, 0x7b7 | PALETTE_TO_ORANGE, 0x7b7 | PALETTE_TO_MAUVE}, /* 144 */ celestar@2187: { 0x7b7 | PALETTE_TO_RED, 0x7b7, 0x7b7 | PALETTE_TO_GREY, 0x7b7 | PALETTE_TO_CREAM}, /* 145 */ celestar@2187: { 0x7b7 | PALETTE_TO_GREEN, 0x7b7 | PALETTE_TO_BROWN, 0x7b7 | PALETTE_TO_PINK, 0x7b7 | PALETTE_TO_RED}, /* 146 */ celestar@2187: { 0x7b7, 0x7b7 | PALETTE_TO_PALE_GREEN, 0x7b7 | PALETTE_TO_ORANGE, 0x7b7 | PALETTE_TO_RED}, /* 147 */ celestar@2187: { 0x7be | PALETTE_TO_RED, 0x7be | PALETTE_TO_PINK, 0x7be | PALETTE_TO_GREEN, 0x7be}, /* 148 */ celestar@2187: { 0x7be | PALETTE_TO_GREEN, 0x7be | PALETTE_TO_BROWN, 0x7be | PALETTE_TO_PURPLE, 0x7be | PALETTE_TO_GREY}, /* 149 */ celestar@2187: { 0x7be | PALETTE_TO_MAUVE, 0x7be | PALETTE_TO_CREAM, 0x7be | PALETTE_TO_ORANGE, 0x7be | PALETTE_TO_RED}, /* 150 */ celestar@2187: { 0x7be, 0x7be | PALETTE_TO_RED, 0x7be | PALETTE_TO_PALE_GREEN, 0x7be | PALETTE_TO_PINK}, /* 151 */ celestar@2187: { 0x7c5 | PALETTE_TO_YELLOW, 0x7c5 | PALETTE_TO_RED, 0x7c5 | PALETTE_TO_WHITE, 0x7c5 | PALETTE_TO_CREAM}, /* 152 */ celestar@2187: { 0x7c5 | PALETTE_TO_RED, 0x7c5 | PALETTE_TO_PALE_GREEN, 0x7c5 | PALETTE_TO_BROWN, 0x7c5 | PALETTE_TO_YELLOW}, /* 153 */ celestar@2187: { 0x7c5, 0x7c5 | PALETTE_TO_PURPLE, 0x7c5 | PALETTE_TO_GREEN, 0x7c5 | PALETTE_TO_YELLOW}, /* 154 */ celestar@2187: { 0x7c5 | PALETTE_TO_PINK, 0x7c5 | PALETTE_TO_CREAM, 0x7c5, 0x7c5 | PALETTE_TO_GREY}, /* 155 */ celestar@2187: { 0x7cc | PALETTE_TO_YELLOW, 0x7cc | PALETTE_TO_GREY, 0x7cc | PALETTE_TO_PURPLE, 0x7cc | PALETTE_TO_BROWN}, /* 156 */ celestar@2187: { 0x7cc | PALETTE_TO_GREEN, 0x7cc, 0x7cc | PALETTE_TO_CREAM, 0x7cc | PALETTE_TO_WHITE}, /* 157 */ celestar@2187: { 0x7cc | PALETTE_TO_RED, 0x7cc | PALETTE_TO_PALE_GREEN, 0x7cc | PALETTE_TO_MAUVE, 0x7cc | PALETTE_TO_RED}, /* 158 */ celestar@2187: { 0x7cc | PALETTE_TO_PINK, 0x7cc | PALETTE_TO_ORANGE, 0x7cc | PALETTE_TO_GREEN, 0x7cc | PALETTE_TO_YELLOW}, /* 159 */ celestar@2187: { 0x7d3 | PALETTE_TO_RED, 0x7d3 | PALETTE_TO_PINK, 0x7d3 | PALETTE_TO_BROWN, 0x7d3 | PALETTE_TO_WHITE}, /* 160 */ celestar@2187: { 0x7d3 | PALETTE_TO_GREEN, 0x7d3 | PALETTE_TO_ORANGE, 0x7d3 | PALETTE_TO_GREY, 0x7d3 | PALETTE_TO_MAUVE}, /* 161 */ celestar@2187: { 0x7d3 | PALETTE_TO_YELLOW, 0x7d3 | PALETTE_TO_PALE_GREEN, 0x7d3, 0x7d3 | PALETTE_TO_CREAM}, /* 162 */ celestar@2187: { 0x7d3 | PALETTE_TO_GREY, 0x7d3 | PALETTE_TO_RED, 0x7d3 | PALETTE_TO_WHITE, 0x7d3}, /* 163 */ truelight@0: /* the extra things follow */ truelight@0: { 0x6e5, 0x6e5, 0x6e5, 0x6e5}, /* 0 */ truelight@0: { 0x6e5, 0x6e5, 0x6fa, 0x708}, /* 1 */ truelight@0: { 0x6e5, 0x70f, 0x6e5, 0x6e5}, /* 2 */ truelight@0: { 0x6e5, 0x708, 0x701, 0x6e5}, /* 3 */ truelight@0: { 0x708, 0x708, 0x708, 0x6e5}, /* 4 */ truelight@0: { 0x708, 0x6e5, 0x70f, 0x701}, /* 5 */ truelight@0: { 0x708, 0x70f, 0x708, 0x6fa}, /* 6 */ truelight@0: { 0x708, 0x708, 0x708, 0x6e5}, /* 7 */ truelight@0: { 0x70f, 0x70f, 0x70f, 0x70f}, /* 8 */ truelight@0: { 0x70f, 0x70f, 0x6e5, 0x6e5}, /* 9 */ truelight@0: { 0x70f, 0x708, 0x70f, 0x6e5}, /* 10 */ truelight@0: { 0x70f, 0x70f, 0x708, 0x6e5}, /* 11 */ truelight@0: { 0x6fa, 0x708, 0x701, 0x6fa}, /* 12 */ truelight@0: { 0x6fa, 0x701, 0x6fa, 0x6e5}, /* 13 */ truelight@0: { 0x6fa, 0x6fa, 0x6fa, 0x6e5}, /* 14 */ truelight@0: { 0x6fa, 0x6fa, 0x6fa, 0x701}, /* 15 */ truelight@0: { 0x701, 0x708, 0x6ec, 0x6fa}, /* 16 */ truelight@0: { 0x701, 0x6f3, 0x716, 0x70f}, /* 17 */ truelight@0: { 0x701, 0x6fa, 0x6f3, 0x6ec}, /* 18 */ truelight@0: { 0x701, 0x6f3, 0x6fa, 0x716}, /* 19 */ truelight@0: { 0x6ec, 0x6ec, 0x716, 0x701}, /* 20 */ truelight@0: { 0x6ec, 0x6f3, 0x6f3, 0x6e5}, /* 21 */ truelight@0: { 0x6ec, 0x716, 0x6f3, 0x6ec}, /* 22 */ truelight@0: { 0x6ec, 0x6e5, 0x6fa, 0x716}, /* 23 */ truelight@0: { 0x6f3, 0x708, 0x716, 0x6fa}, /* 24 */ truelight@0: { 0x6f3, 0x6ec, 0x6f3, 0x70f}, /* 25 */ truelight@0: { 0x6f3, 0x716, 0x6f3, 0x6ec}, /* 26 */ truelight@0: { 0x6f3, 0x701, 0x6fa, 0x716}, /* 27 */ truelight@0: { 0x716, 0x70f, 0x716, 0x6fa}, /* 28 */ truelight@0: { 0x716, 0x6f3, 0x716, 0x708}, /* 29 */ truelight@0: { 0x716, 0x716, 0x6f3, 0x6ec}, /* 30 */ truelight@0: { 0x716, 0x701, 0x6fa, 0x716}, /* 31 */ truelight@0: }; Darkvater@1784: Darkvater@1784: #endif /* TREE_LAND_H */