MoDouClient
sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libzip-dev libtinyxml2-dev libguichan-dev
tmx 地图文件解析库:
https://github.com/modouRPG/xtmxparser
cd src
autoscan
aclocal
autoheader
autoconf
automake --add-missing
./configure
make
- 初始化依赖的库,实现登录窗口。
- 2015-09-04 support tmx map file.
- 地图的主要信息保存在XMap类里。一个XMap表示一张较大的地图。
- XMap中包含一个XMapLayer的列表。表示这张地图的各层。
- 每个XMapLayer中包含一个Tiles的列表,为这层包含的32x32的图片方阵。
- 初始化地图的时候,将XMap中的所有XMapLayer加载进来。
- 更具用户的视野,将需要的部分显示到界面上。
- 地图上的角色,在按照前后顺序排好队之后绘制就可以。
In main.h file. Use globals namespace. Defined in main.cpp
- header width height tilewidth tileheight
- layer info