姓名 |
张博文 |
时间 |
2016年6月28日 |
学习内容 |
学习c++语言 学习并行编程技巧 学习thread编程方法,了解ai的写法 学习了加载动画的编写方法 学习了多工程多文件编程的方法 在课设中添加了怪物自由移动的ai并添加动画,添加了怪物朝向玩家移动的ai 添加了怪物攻击ai。 替换了玩家角色的动画,替换了怪物的动画 替换了高清地图。 |
所遇问题 |
1) 原先怪物只有一张图片显示,需添加动画,但添加动画后所有怪物都不显示 2) 加入动画后所有怪物共享一个线程,无法同步移动 3) 加入动画后怪物会移动到不应出现的地图黑色区域 |
解决方案 |
1) case(moveto)中加入default情况发送怪物的站立信息 2) 为每一个怪物创建线程 3) 修改算法中的错误成功解决 |