上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 33 下一页
  2016年4月20日
摘要: FNT字体和文本字体的作用是:导入字体资源可以使用字体资源便可以使用其资源内的字体来在程序中使用 不同的是FNT字体资源内容比较少,所以个人猜想可以在特定情况下使用: 两种字体资源对比: 赋值过程对比: 阅读全文
posted @ 2016-04-20 19:09 baraka 阅读(796) 评论(0) 推荐(0) 编辑
  2016年4月19日
摘要: 观察位置: 定义宏常量位置: 添加观察者回调函数位置: 回调函数实现位置: 阅读全文
posted @ 2016-04-19 20:06 baraka 阅读(296) 评论(0) 推荐(0) 编辑
  2016年4月13日
摘要: ascii表中 A是65,B是66,16706是A乘256+B 一些双字符的汉字也可以通过此方法转为int数字 阅读全文
posted @ 2016-04-13 11:30 baraka 阅读(252) 评论(0) 推荐(0) 编辑
  2016年3月18日
摘要: 阅读全文
posted @ 2016-03-18 15:51 baraka 阅读(124) 评论(0) 推荐(0) 编辑
摘要: ioc:控制反转 inverse of control控制反转,又被称为依赖注入,一种重要的面向对象的法则来削减计算机程序的耦合问题 阅读全文
posted @ 2016-03-18 15:18 baraka 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-03-18 14:44 baraka 阅读(141) 评论(0) 推荐(0) 编辑
  2016年3月13日
摘要: 执行后效果:   前端使用: 后台SuperRichText解析code   void SuperRichText::renderNode(tinyxml2::XMLNode *node){     while (node!=nullptr) {         if (node->ToText() 阅读全文
posted @ 2016-03-13 00:47 baraka 阅读(1057) 评论(0) 推荐(0) 编辑
  2016年3月12日
摘要: 1. #ifndef SuperRichText_hpp #define SuperRichText_hpp   #include <stdio.h> #include "cocos2d.h" #include "ui/UIRichText.h" #include "tinyxml2/tinyxml 阅读全文
posted @ 2016-03-12 23:11 baraka 阅读(806) 评论(0) 推荐(0) 编辑
摘要: 物理引擎:用来模拟一套物理事件的物理代码。 #ifndef __HELLOWORLD_SCENE_H__ #define __HELLOWORLD_SCENE_H__   #include "cocos2d.h" #include <Box2D/Box2D.h>   #define RATIO 80 阅读全文
posted @ 2016-03-12 21:22 baraka 阅读(309) 评论(0) 推荐(0) 编辑
  2016年3月10日
摘要: #include "HelloWorldScene.h" USING_NS_CC; #define RED_BIT_MASK 0b0100 #define GREEN_BIT_MASK 0b0010 #define BLUE_BIT_MASK 0b0001 #define EDGE_BIT_MASK 阅读全文
posted @ 2016-03-10 19:02 baraka 阅读(196) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 33 下一页