
游戏
会魔法的猫
这个作者很懒,什么都没留下…
展开
-
SLG, 菱形格子的算法.(递归版
class GeoPoint{public: int x; int y; public: bool operator == (const GeoPoint& p){ return p.x == this->x && p.y == this->y; } GeoPoint(int x, int y):x(x), y(y){ }原创 2014-06-08 02:47:20 · 2807 阅读 · 0 评论 -
SLG,菱形格子的算法 (非递归版本 .效率赞!
//// main.c// Paopao//// Created by Vincent on 14-6-8.// Copyright (c) 2014年 61games. All rights reserved.//#include #include #include #include #include #define geop(x, y) (x << 16 |原创 2014-06-08 04:43:53 · 2129 阅读 · 0 评论 -
fsnet 0.0.1 !!!
https://github.com/frodosens/fsnetfsnet 是一个 使用C层做网络驱动.Ruby做具体逻辑处理.可支持分布式部署的一个开源网络游戏服务器.因为为了搭好基础环境.就使用了libevent做IO层..后面看看会不会自己重新写IOruby使用的是最新的2.1.2如果单节点.一个比较简单的版本比较 可以有5W/s原创 2014-06-12 12:14:18 · 942 阅读 · 0 评论