CSDN 一个手机号不能绑定两个账号问题 希望解决

云之旋律 2018-07-20 04:22:58
CSDN 一个手机号不能绑定两个账号问题 希望解决,以前就注册了两个邮箱号,现在一个绑了手机,另外一个就无法使用了,希望支持一个手机绑定两个账号。
...全文
587 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
CSDN客服-糊胡 2018-07-20
  • 打赏
  • 举报
回复
引用 楼主 u012922417 的回复:
CSDN 一个手机号不能绑定两个账号问题 希望解决,以前就注册了两个邮箱号,现在一个绑了手机,另外一个就无法使用了,希望支持一个手机绑定两个账号。


您好!
非常感谢您的及时反馈。目前不会支持一部手机绑定多个帐号,建议绑定家人手机号。
http://blog.csdn.net/xiaoxiao108/article/details/7938596 最近看到网上介绍cocos2d的资料很多,看了看cocos2d也支持wp7,下载了个 Cocos2d-XNA 安装包,写个小例子玩玩,熟悉下cocos2d 程序很简单,就一个入门级的小游戏,写完后放手机里运行了下效果还可以 开发环境 vs2010,windows phone sdk 7.1 实现方法如下 1.创建好 CCLayer 的子类 2.重写 onEnter 方法添加一些基本按钮 跟一些初始化代码 3.通过schedule方法 控制 坦克 子弹的CCSprite对象 4.根据点击手机屏幕,确定出坦克的方向,根据坦克的方向修改坦克的X,Y轴坐标,来实现坦克的移动 5.通过CCRect的CCRectIntersetsRect函数来进行碰撞检测,实现子弹打击坦克 6.代码完成后 安装zune后 就能把游戏部署到手机里面了 部署前手机要绑定开发者帐号或者学生帐号 具体实现代码 1.在项目里面添加枚举类型 /// /// 表示方向的的枚举类型 /// public enum Direction { L, U, D, R, STOP } 2.添加子弹类的相关常量,属性 /// /// 子弹X轴的速度,单位PX /// public static int XSPEED = 10; /// /// 子弹Y轴的速度,单位PX /// public static int YSPEED = 10; /// /// 子弹的宽度 /// public static int WIDTH = 15; /// /// 子弹的高度 /// public static int HEIGHT = 15; /// /// 子弹的坐标 /// int x, y; /// /// 子弹的方向 /// Direction dir; /// /// 子弹的存活状态 /// private bool live = true; /// /// TankClient窗体实例 /// private TankClient tankClient; /// /// 敌我双方的标记 /// private bool good; CCSprite m_missile; 3.添加draw方法来画出子弹 public void Draw() { if (!live) { tankClient.removeChild(m_missile, true); tankClient.missiles.Remove(this); return; } m_missile.position = new CCPoint(x, y); Move(); } 4.添加子弹打击坦克的方法 public bool HitTank(Tank t) { //用IntersectsWith来检测两个矩形相碰撞 //if (GetRectangle().IntersectsWith((t.GetRectangle())) && t.Live && this.live && this.good != t.Good) if (CCRect.CCRectIntersetsRect(GetRectangle(), t.GetRectangle()) && t.Live && this.live && this.good != t.Good) { t.Live = false; this.live = false; return true; } return false; } 5.添加坦克类相关属性,常量 /// /// 坦克x轴的速度 /// public static int XSPEED = 5; /// /// 坦克y轴的速度 /// public static int YSPEED = 5; /// /// 坦克的宽度 /// public static int WIDTH = 58; /// /// 坦克的高度 /// public static int HEIGHT = 58; /// /// 坦克的坐标 /// private int x, y; /// /// 标记上下左右键是否按下 /// private bool l = false, u = false, r = false, d = false; /// /// 坦克的方向 /// private Direction dir = Direction.STOP; /// /// 坦克炮筒方向 /// private Direction ptDir = Direction.D; /// /// TankClient窗体实例 /// TankClient tankClient; /// /// 标记敌我双方 /// private bool good; /// /// 控制敌人坦克不规则运行时使用 /// private int step = 0; /// /// 标记坦克的存活状态 /// private bool live = true; public CCSprite m_tank; 6.在tank类中实现画坦克方法 public void Draw() { if (!live) { if (!good) { tankClient.removeChild(m_tank, true); tankClient.tanks.Remove(this); } tankClient.removeChild(m_tank, true); return; } if (good) { m_tank.position = new CCPoint(x, y); } else { //g.FillEllipse(Brushes.Blue, x, y, WIDTH, HEIGHT); m_tank.position = new CCPoint(x, y); } //根据炮筒坦克来画出坦克的炮筒 switch (ptDir) { case Direction.D: m_tank.rotation = 0; //旋转精灵控制 炮筒方向 break; case Direction.U: m_tank.rotation = 180; break; case Direction.L: m_tank.rotation = 270; break; case Direction.R: m_tank.rotation = 90; break; } Move(); } 7.tank发子弹的方法 public Missile Fire() { if (!live) return null; int x = this.x; int y = this.y ; Missile missile = new Missile(x, y, good, ptDir, tankClient); tankClient.missiles.Add(missile); return missile; } 8.CCLayer加入坦克 myTank = new Tank(60,420, true, this); for (int i = 0; i < 10; i++) { //添加10量坦克间距 为70 tanks.Add(new Tank(50 + 70 * (i + 1), 20, false, this)); } 9.CCLayer中调用子弹打击坦克的方法 for (int i = 0; i < missiles.Count; i++) { Missile m = missiles[i]; m.HitTank(myTank); m.HitTanks(tanks); m.Draw(); } 10.控制坦克移动射击的部分代码 public override void ccTouchEnded(CCTouch touch, CCEvent event_) { myTank.KeyReleased(Microsoft.Xna.Framework.Input.Keys.Down); } public void hitCallback(CCObject pSender) { myTank.KeyReleased(Microsoft.Xna.Framework.Input.Keys.Enter); } 11.虚拟机中的运行效果 程序中控制坦克方向的代码处理的不是很好,没有通过虚拟摇杆实现。 如果你发现有什么不合理的,需要改进的地方,邮件联系328452421@qq.com(qq常年不在线,邮件联系) 朱晓 。相互交流 谢谢 http://blog.csdn.net/xiaoxiao108/article/details/7938596

544

社区成员

发帖
与我相关
我的任务
社区描述
客服专区
其他 技术论坛(原bbs)
社区管理员
  • 客服专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧