随笔分类 -  游戏开发

日志
摘要:~ 阅读全文

posted @ 2014-11-22 13:44 kangbry

心跳
摘要:~ 阅读全文

posted @ 2014-11-22 13:43 kangbry

任务系统
摘要:~ 阅读全文

posted @ 2014-11-17 16:08 kangbry

a*算法
摘要:#include #include #include using namespace std;#define max_width 10#define max_height 10struct item{ int posx; int posy; item* parent; item() { posx ... 阅读全文

posted @ 2014-11-12 23:09 kangbry

账号系统
摘要:新账号1 玩家登陆 2 根据db注册返回账号生成hashid,并更新db3 db检测到重复hashid 重新生成账号 直到不重复为止4 重新生成token 并返回登陆成功账号登陆1 根据账号获取hashid2 根据hashid查询db是否存在该用户3 根据db返回密码进行校验4 重新返回token ... 阅读全文

posted @ 2014-11-12 23:07 kangbry

洗牌算法
摘要:#include#include#includevoid swap(int &a,int &b){ int c; c = a; a = b; b = c;}void display(int card[],int n){ int i; for(i=0;i<n;i++) printf("%d ",ca... 阅读全文

posted @ 2014-11-10 22:53 kangbry

场景管理aoi
摘要:enter事件1. 离开旧场景2. 进入新场景 3 move事件4 on_enter leave事件1 uid --> old_cell 2 leavel_cell on_leave 广播离开事件move事件1 uid --> old_cell 2 pos --> new_cell 3 a. 存在o... 阅读全文

posted @ 2014-10-24 15:22 kangbry

导航