var fw1=new fw(),sys=new Array(),udf=new Array(),race=new Array(),cRace="red"
fw_ini()
function fw_ini(){
sys.minePos=""
sys.vesPos=""
race["red"]=createClass("mine:50;ves:0;man:4;supply:8;keyBuild:,;hq:")
race["blue"]=createClass("mine:50;ves:0;man:4;supply:8;keyBuild:,;hq:")
udf["mine"]=createClass("type:block;size:1,1;movepos:-1,-16;selpos:-4,16,48,30")
udf["ves"]=createClass("type:block;size:3,2;movepos:2,3;selpos:-6,0,124,60")
udf["0_hq"]=createClass("type:build;wh:127,101;size:3,3;movepos:0,-14;selpos:-8,22,140,80;hppos:5,86,130;hp:1500;btime:3;madelist:0_scv")
udf["0_supply"]=createClass("type:build;wh:87,70;size:2,2;movepos:-2,-9;selpos:-5,18,95,56;hppos:2,62,94;hp:750;btime:2;mine:100;ves:0")
udf["0_refinery"]=createClass("type:build;wh:125,95;size:3,2;movepos:-2,-32;selpos:-8,22,140,80;hppos:5,86,130;hp:750;btime:2;mine:100;ves:0")
udf["0_barrack"]=createClass("type:build;wh:125,110;size:3,3;movepos:-2,-18;selpos:-8,34,140,80;hppos:5,86,130;hp:1000;btime:3;mine:150;ves:0;madelist:0_marine,0_firebat,0_medic")
udf["0_academy"]=createClass("type:build;wh:95,95;size:2,2;movepos:-10,-32;selpos:-2,38,100,60;hppos:2,66,100;hp:600;btime:3;mine:150;ves:0")
udf["0_gun_tower"]=createClass("type:build;wh:95,58;size:2,2;movepos:-8,2;selpos:-8,22,140,80")
udf["0_missile"]=createClass("type:build;wh:41,50;size:1,1;movepos:0,-20;selpos:-8,22,140,80")
udf["0_scv"]=createClass("type:unit;kind:ground;mvstyle:shift;speed:4;wh:48;selpos:5,12,36,24;hppos:1,33,35;hp:60;mine:50;ves:0")
udf["0_marine"]=createClass("type:unit;kind:ground;mvstyle:walk;speed:3;wh:32;selpos:5,15,20,16;hppos:1,20,24;hp:40;mine:50;ves:0;range:4")
udf["0_firebat"]=createClass("type:unit;kind:ground;mvstyle:walk;speed:3;wh:32;selpos:3,15,26,18;hppos:1,24,26;hp:50;mine:50;ves:25;range:1")
udf["0_medic"]=createClass("type:unit;kind:ground;mvstyle:walk;speed:3;wh:32;selpos:3,15,26,18;hppos:1,24,26;hp:60;mine:25;ves:25")
udf["0_tank"]=createClass("type:unit;kind:ground;speed:1;wh:72;selpos:10,16,50,40")
udf["0_valture"]=createClass("type:unit;kind:ground;speed:1;wh:64;selpos:12,20,36,27")
udf["0_wraith"]=createClass("type:unit;kind:air;speed:1;wh:48;selpos:12,16,27,20")
}
function createClass(k){
var ao=new Array(),ak=k.split(";")
for(var i in ak){
ak[i]=ak[i].split(":")
if(!isNaN(ak[i][1]))
ak[i][1]=parseInt(ak[i][1])
ao[ak[i][0]]=ak[i][1]
}
return ao
声明:本文内容及配图由入驻作者撰写或者入驻合作网站授权转载。文章观点仅代表作者本人,不代表电子发烧友网立场。文章及其配图仅供工程师学习之用,如有内容侵权或者其他违规问题,请联系本站处理。 举报投诉
全部1条评论
快来发表一下你的评论吧 !