1 // 2 // tiles.c 3 // 4 // Copyright 2007, 2008 Lancer-X/ASCEAI 5 // 6 // This file is part of Meritous. 7 // 8 // Meritous is free software: you can redistribute it and/or modify 9 // it under the terms of the GNU General Public License as published by 10 // the Free Software Foundation, either version 3 of the License, or 11 // (at your option) any later version. 12 // 13 // Meritous is distributed in the hope that it will be useful, 14 // but WITHOUT ANY WARRANTY; without even the implied warranty of 15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 // GNU General Public License for more details. 17 // 18 // You should have received a copy of the GNU General Public License 19 // along with Meritous. If not, see <http://www.gnu.org/licenses/>. 20 // 21 22 // tile data 23 24 struct TileInfo { 25 int Is_Solid; 26 int Is_Special; 27 int Is_Passage; 28 int Is_Wall; 29 int Type; 30 }; 31 32 struct TileInfo TileData[57] = { 33 {1, 0, 0, 1, 0}, // 0 34 {1, 0, 0, 1, 0}, // 1 35 {1, 0, 0, 1, 0}, // 2 36 {1, 0, 0, 1, 0}, // 3 37 {1, 0, 0, 1, 0}, // 4 38 {1, 0, 0, 1, 0}, // 5 39 {1, 0, 0, 1, 0}, // 6 40 {1, 0, 0, 1, 0}, // 7 41 {1, 0, 0, 1, 0}, // 8 42 {1, 0, 0, 1, 0}, // 9 43 {1, 0, 0, 1, 0}, // 10 44 {1, 0, 0, 1, 0}, // 11 45 {0, 0, 0, 0, 1}, // 12 46 {1, 0, 1, 0, 2}, // 13 47 {1, 0, 1, 0, 2}, // 14 48 {1, 0, 1, 0, 2}, // 15 49 {1, 0, 1, 0, 2}, // 16 50 {1, 0, 0, 0, 3}, // 17 51 {0, 0, 0, 0, 1}, // 18 52 {0, 0, 0, 0, 1}, // 19 53 {0, 0, 0, 0, 1}, // 20 54 {1, 0, 0, 1, 4}, // 21 55 {1, 0, 0, 1, 4}, // 22 56 {1, 0, 0, 1, 4}, // 23 57 {1, 0, 0, 1, 4}, // 24 58 {0, 1, 0, 0, 5}, // 25 59 {0, 1, 0, 0, 6}, // 26 60 {0, 0, 0, 0, 7}, // 27 61 {0, 1, 0, 0, 8}, // 28 62 {0, 1, 0, 0, 8}, // 29 63 {0, 1, 0, 0, 8}, // 30 64 {0, 1, 0, 0, 8}, // 31 65 {0, 1, 0, 0, 8}, // 32 66 {0, 0, 0, 0, 1}, // 33 67 {1, 0, 0, 0, 0}, // 34 68 {1, 0, 0, 0, 0}, // 35 69 {1, 0, 0, 0, 0}, // 36 70 {1, 0, 0, 0, 0}, // 37 71 {1, 0, 0, 1, 4}, // 38 72 {1, 0, 0, 1, 4}, // 39 73 {1, 0, 0, 1, 4}, // 40 74 {1, 0, 0, 1, 4}, // 41 75 {0, 0, 0, 0, 8}, // 42 76 {0, 0, 0, 0, 1}, // 43 77 {0, 0, 0, 0, 1}, // 44 78 {1, 0, 0, 1, 0}, // 45 79 {1, 0, 0, 1, 0}, // 46 80 {1, 0, 0, 1, 0}, // 47 81 {1, 0, 0, 1, 0}, // 48 82 {1, 0, 0, 1, 0}, // 49 83 {1, 0, 0, 1, 0}, // 50 84 {1, 0, 0, 1, 0}, // 51 85 {1, 0, 0, 1, 0}, // 52 86 {0, 1, 0, 0, 8}, // 53 87 {0, 0, 0, 0, 1}, // 54 88 {0, 0, 0, 0, 1}, // 55 89 {0, 0, 0, 0, 1} // 56 90 }; 91 92 unsigned char automap_cols[10] = { 93 140, // 0: Room wall 94 192, // 1: Floor 95 100, // 2: Passage 96 255, // 3: Void 97 120, // 4: Locked passage 98 230, // 5: Checkpoint 99 240, // 6: Closed chest 100 200, // 7: Open chest 101 230, // 8: Magic tile 102 0 // 9: -- 103 104 }; 105