上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: 1.07 坐标体系一、UI坐标系(屏幕坐标系) 及 openGL坐标系 图示二、UI 坐标系 和 GL 坐标系 量化关系三、转化函数四、单点触摸开启及环境搭建bool T05Coordinate::init( ){ CCLayer::init( ); setTouchEnabled( true ); //打开触摸 setTouchMode( kCCTouchesOneByOne ); //单... 阅读全文
posted @ 2016-06-15 08:21 -刀狂剑痴- 阅读(221) 评论(0) 推荐(0) 编辑
摘要: CCLayerColor 及 CCLayerGradient一、CCLayerColorcode CCLayerColor::initWithColor( ccc4( 255, 0, 0, 100 ) ); //CCLayerColor::initWithColor( ccc4( 255, 0, 0, 100 ), 100, 100 ); //ignoreAnchorPointForPosi... 阅读全文
posted @ 2016-06-15 08:18 -刀狂剑痴- 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 1.04 锚点一、锚点影响了什么 1、锚点影响 放置位置 2、锚点影响 缩放 --- 缩放是围绕锚点旋转的 3、锚点影响 旋转 --- 通常情况下,旋转是围绕锚点进行二、忽略锚点 1、忽略锚点 --- 将锚点置成 0,0 2、通常情况下,Scene 是忽略锚点的三、源代码1、头文件#ifndef _T01LayerAnchorPoint_H_ #define _T01... 阅读全文
posted @ 2016-06-15 08:16 -刀狂剑痴- 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1.05 精灵一、精灵图创建的三种理论 5 种实现1、create直接创建 CCSprite::create2、createWithTexture创建 CCSprite::createWithTexture( texture ) //需要 CCTexture2D* 创建 CCTexture2D CCTexture2D* texture = new CCTex... 阅读全文
posted @ 2016-06-15 08:16 -刀狂剑痴- 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1.03 游戏架构二、Create 函数所遵循的规则 1、new 2、判断不为空 3、不为空托管三、工厂方法四、CCScene和CCLayer合文件的根源 可以用父类代替继承过来的子类(子类什么事也没干的)来自为知笔记(Wiz) 阅读全文
posted @ 2016-06-15 07:01 -刀狂剑痴- 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1.02 main.cpp研究 // create the application instance AppDelegate app; CCEGLView* eglView = CCEGLView::sharedOpenGLView(); eglView->setViewName("Fei"); eglView->setFrameSize(480, 320); ... 阅读全文
posted @ 2016-06-15 07:01 -刀狂剑痴- 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1.01 开发环境搭建一、安装步骤 1、安装Python 2、解压 cocos2d二、命令coco2d-x-2.2.6 创建命令G:\cocos2d-x-2.2.6\tools\project-creator>create_project.py -project TianZhan -package com.TianZhan.Game -language cppcocos2d-x-3.9... 阅读全文
posted @ 2016-06-15 06:41 -刀狂剑痴- 阅读(132) 评论(0) 推荐(0) 编辑
摘要: MFC的控制台程序含义(存之根本)属性(存之方式)1、MFC控制台和Win32控制台差异 1.1 包含 afx 系列的头文件 1.2 CWinApp theApp -- MFC的应用程序类 封装了应用程序的启动过程 1.3 AfxWinInit 将应用程序的信息初始化分类(存之类型)简略使用步骤(存之骨架)详细使用步骤语法(存之血肉)额外引入函数(社... 阅读全文
posted @ 2016-06-15 06:39 -刀狂剑痴- 阅读(227) 评论(0) 推荐(0) 编辑
摘要: MFC应用程序编程MFC的发展VC5.0 -->VC6.0 -->VS2008 Sp1 --> VS2010含义(存之根本)MFC:微软基础类库 采用类的方式,将Win32 API等进行封装,形成的库属性(存之方式)MFC相关的头文件 afx.h (application framework, X,x比较神秘,比喻强大的意思) afxwin.h (类似于windows.h... 阅读全文
posted @ 2016-06-15 06:39 -刀狂剑痴- 阅读(134) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;templateclass Array{public: Array(int s); virtual ~Array(); virtual const T& Entry(int index)const; virtual void Enter(int index, const T& value);protected: ... 阅读全文
posted @ 2016-06-14 07:51 -刀狂剑痴- 阅读(184) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页