基本工具:ps或者其他的可绘制灰度图的软件,tfmv,记事本。
Map文件的基本组成,名为heightmap.png的灰度图,和map.lua的配置文件。
灰度图制作,百度之。
地图大小,(256*n+1)*(256*n+1),n>=1。最大为4097*4097。
Map.lua的语句:
local towns = {
{pos = { 7507.220, 7886.133 }, name = _("北京"), sizeFactor = 0.5},
}
local industries = {
{pos={0,0},angle=math.rad(0.0),fileName= "industry/food_processing_plant.con" },
}
function data() return {
authors = {
{
name = 'ZARB',
role = 'ALL',
steamProfile = ' '
}
},
name = _(''),
description = _(''),
minGameVersion = '10000',
range = {50, 500 },
seed = 'ZARB',
startDate = { year = 1850, month = 01, day = 01 },
tags = {'map'},
towns = towns,
industries = industries
}
End
Map文件的基本组成,名为heightmap.png的灰度图,和map.lua的配置文件。
灰度图制作,百度之。
地图大小,(256*n+1)*(256*n+1),n>=1。最大为4097*4097。
Map.lua的语句:
local towns = {
{pos = { 7507.220, 7886.133 }, name = _("北京"), sizeFactor = 0.5},
}
local industries = {
{pos={0,0},angle=math.rad(0.0),fileName= "industry/food_processing_plant.con" },
}
function data() return {
authors = {
{
name = 'ZARB',
role = 'ALL',
steamProfile = ' '
}
},
name = _(''),
description = _(''),
minGameVersion = '10000',
range = {50, 500 },
seed = 'ZARB',
startDate = { year = 1850, month = 01, day = 01 },
tags = {'map'},
towns = towns,
industries = industries
}
End