-
Notifications
You must be signed in to change notification settings - Fork 31
Home
ChiefOfGxBxL edited this page Apr 22, 2017
·
9 revisions
• Map specification (how to represent a map using JSON)
• Units (unit or item)
• Doodads
• Terrain
• Regions
• Unit
• Item
• Destructable
• Doodad
• Ability
• Buff
• Upgrade
• Strings
// Define our map using JSON
var wc3Map = {
units: Array<Unit>,
doodads: Array<Doodad>,
terrain: Object,
strings: Object
};
{
tileset: 'wxyz',
customtileset: true,
tilepalette: ['abcd', 'efgh', 'ijkl'],
clifftilepalette: ['mnop', 'qrst'],
map: {
width: 64,
height: 64,
offset: { // Unsupported - leave blank or set to 0,0
x: 0,
y: 0
}
},
tiles: [
[
// [height, water, flags, tile, texture, cliff tile, layer]
[0, 0, 0, 0, 0, 0, 0],
[1, 0, 0, 0, 0, 0, 0],
[2, 0, 0, 0, 0, 0, 0],
[3, 0, 0, 0, 0, 0, 0],
[4, 0, 0, 0, 0, 0, 0]
]
]
}
{
0: "Joueur 0",
1: "Joueur 1",
...
}
Made with ❤️ for ⚔️ WarCraft III
Need help: Check the Wiki
Found bug: Create an issue