摘要
游戏地图的算法在整个游戏设计中占有重要地位。通过对游戏地图算法的研究,本文对游戏地图贴图算法中的效率问题进行了分析,提出了改进算法,并在VisualC++的环境下实现。通过改进地图图块的存储方法,将地图图块的句柄和地图图块的索引值等数据以二叉排序树结构的方式存储,使动态树可以随游戏的进度动态地往地图上添加图块,结构灵活,速度快。
The game map algorithm plays an important part in game designing. Through analyzing the efficiency problem of the game map algorithm,we put forward an improvement algorithm code map, and implement it in the Visual C++ environment. The improvement is the storage method of the map stock, which stores the handles and indexes of the map, using the binary sort tree structure. The improved algorithm can dynamically add image blocks to the map with the progress of the game, and its structure is flexible and features a high speed.
出处
《计算机工程与科学》
CSCD
2008年第2期49-50,109,共3页
Computer Engineering & Science
基金
暨南大学引进人才基金资助项目(04JZKY004)