2D游戏地图地表生成技术.pdf
2D游戏地图地表生成技术
杨涛,秦可,吴飞,庄越挺
(浙江大学人工智能研究所,浙江,杭州310027,0571
wufei@cS.zju.edu.cn,yzhuang@cS.zju.edu.cn
摘要:在做2D游戏地图编辑时,如何让不同地表间能自然过渡,如何使地图地表间的过渡拼接能自
动完成,一直是大型地图系统编辑时比较棘手的问题。通过对现存地表及其边缘生成算法进行分析。针
对它们面对的问题提出了一种新的2D地表智能生成算法。该算法采用先拼接后处理地砖间过渡的方
法,通过给不同类的地砖分配不同的优先级,并按优先级从低到高的顺序来统一处理过渡,很好地解决
了图片量大及多种地砖衔接时自然过渡的游戏地表拼接问题。
关键字:斜角视觉游戏,地表过渡,地砖
2DGamesTerrainGeneration
Tao,QinKe,WuFei,ZhuangYueting
Yang
butitute
(The 310027。China)
ofArtifwialIntelligence,乃巧缸馏University,Hangzhou
the tomaketheterraintransitionbetweenvariouster-
Abstract:Duringeditingprocess,how
gamemap
raintiles howtoautomatic terrain’Sis a tO
edgealways
naturally,and seamlesslygenerate toughproblemgame
to ofthecurrent novel
the terraintransitiontechnologies,ametlxxlis
designers.Accordinganalysis game pro-
to theterraintransitionin2D were onthe withoutter.
posedhandling games.Firstly,tilesplaced gamemap
rain all terrain
transitionbetweendifferenttiles,thenafterthe isfinishedthe transition
gamemap problem
werehandled different tothevariousterrain terraintran—
together.Withassigningpriority tiles,andhandling
sitionfrom tileto is to terrains诵t11tileset
ones,iteasy complexgame huge
low研嘶tyhigh面洲ty generate
andmuhiterraintransitionbetweenvarioustiles.