自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(2)
  • 资源 (2)
  • 收藏
  • 关注

原创 堆 在游戏中的运用

* 定时器的应用与原理:游戏中,活动的状态、游戏数据的保存与加载、BOSS刷新时间等等,都可能会用到定时器。而堆对于定时器的实现有着至关重要的作用。定时器的工作原理其实不难,就是内部保存多个时间及其回调函数,当系统时间达到我们保存的时间值时,就执行回调函数;从而达到定时工作的效果。同时,判断是否达到指定时间时,只需要判断最早的时间(最早的时间没有达到,更晚的时间肯定不会达到),因此需要对时

2015-07-09 00:04:11 2016

原创 redis client protocol 实现

在官网中http://redis.io/clients有许多已经实现好的redis client;有需要可以参考一下。其实前一篇http://blog.csdn.net/yitouhan/article/details/46612925 redis client protocol 解析,我已经对RESP做主要的解析。下面是解析RESP的所有函数,其中对外函数是RedisProtoc

2015-07-01 13:25:16 1653

寻路算法演示程序(A*,BFS,Dijkstra )

Usage: Simply double click on server.exe and client.exe By default, the server starts on 127.0.0.1(localhost) and uses the port 31416. If you want to specify another port, add options while executing the server.py. This can be done by either executing the program in cmd or executing it via a modified shortcut. For example: server.exe -p 27183 As stated in the description section above, you can start the server on one machine and start the client on another machine, as long as these two machines are connected. If you want to connect to a remote server, add options while executing the client. For example: python client.exe -a 172.18.241.2 -p 27183

2015-06-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除