SQL Server 2008 Windows身份验证改为混合模式身份验证

摘要: SQLServer2008Windows身份验证改为混合模式身份验证由于需要,要把SQL2008单一的Windows身份验证改为混合模式身份验证。在此做一备忘。步骤:1、用Windows身份验证方式进入SQL2008,在【对象资源管理器】右键击【根目录】:选择右键菜单中的【属性】:选择【安全性】,然... 阅读全文
posted @ 2014-12-08 16:00 the seal 阅读(203) 评论(0) 推荐(0) 编辑

游戏框架再思考

摘要: 本人在游戏的时候,是按照类型划分去规划对象设计的。但是最近的一个项目碰到了需要按照实例去划分的情况。拿卡牌游戏来做比喻的话,就是一个是分成了武将卡、装备卡、阵型卡等等,另一种思路是直接分成张飞卡、关羽卡、刘备卡……这样的思路不同照成的做法上的不同超过了我的预料。类型划分思路会把卡看成一个控件,和按钮... 阅读全文
posted @ 2014-08-27 12:56 the seal 阅读(126) 评论(0) 推荐(0) 编辑

cocos2dx 3.0 触摸机制

摘要: 在cocos2dx 3.0版本中,废弃了以往2.x版本的写法,我们先来看一下Layer.h中的一段代码/* Callback function should not be deprecated, it will generate lots of warnings. Since 'setTouchEn... 阅读全文
posted @ 2014-07-15 11:39 the seal 阅读(258) 评论(0) 推荐(0) 编辑

Cocos2d-x 3.0 点击交互的四种处理

摘要: 1、概述 游戏也好,程序也好,只有能与用户交互才有意义。手机上的交互大致可以分为两部分:点击和输入。其中点击更为重要,几乎是游戏中全部的交互。在Cocos2d-x 3.0中,更改了dispatch机制。同时加入了两种新的交互形式:listener 和touchEvent回调。加上先前版本中的点击函数... 阅读全文
posted @ 2014-07-14 09:46 the seal 阅读(462) 评论(0) 推荐(0) 编辑

cocos2d-x三角函数和反三角函数

摘要: //计算角度float CMgrSkill::getAngle( CCPoint & frome, CCPoint & to ){ double len_y = to.y - frome.y; double len_x = to.x - frome.x; if( 0 == len_x && f... 阅读全文
posted @ 2014-06-17 20:03 the seal 阅读(930) 评论(0) 推荐(0) 编辑

23种设计模式名称

摘要: 创建型1. Factory Method(工厂方法)2. Abstract Factory(抽象工厂)3. Builder(建造者)4. Prototype(原型)5. Singleton(单例)结构型6. Adapter Class/Object(适配器)7. Bridge(桥接)8. Compo... 阅读全文
posted @ 2014-06-10 16:42 the seal 阅读(421) 评论(0) 推荐(0) 编辑

ios 点击输入框外回收虚拟键盘

摘要: // Pass the touches to the superview#pragma mark EAGLView - Touch Delegate- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ if (isKey... 阅读全文
posted @ 2014-06-10 16:23 the seal 阅读(209) 评论(0) 推荐(0) 编辑

ios 直接设置的内容输入框不显示

摘要: -(id) initWithFrame: (CGRect) frameRect editBox: (void*) editBox{ self = [super init]; do { if (self == nil) break; editSta... 阅读全文
posted @ 2014-06-10 16:16 the seal 阅读(661) 评论(0) 推荐(0) 编辑

cocos2d-x CCClippingNode 专题

摘要: 1.CCClippingNode在部分android上不起作用需要修改src\org\cocos2dx\lib\Cocos2dxGLSurfaceView.java//frompublic Cocos2dxGLSurfaceView onCreateView() { return new Coco... 阅读全文
posted @ 2014-06-08 20:00 the seal 阅读(421) 评论(0) 推荐(0) 编辑

ios下一个4字节对齐引起崩溃的问题

摘要: staticvoid TEACore(unsignedint in[2], unsignedint out[2], unsignedint key[4], long rounds){unsigned int y = in[0], z = in[1];unsigned int limit = 0, s... 阅读全文
posted @ 2014-06-07 14:02 the seal 阅读(317) 评论(0) 推荐(0) 编辑