SlimApp

好泛滥

如何修正MWC飞行器的飞行

如何修正MWC飞行器的飞行   适用于主控版本:1.7 and more   1.在acro模式(即headholding模式)下修正 每次电源启动时,陀螺仪传感器都会被重新校准,但你也可以手动校验陀螺仪: 油门最低+航向最左+俯仰后倾(Full throttle down + ful...

2013-01-11 13:48:41

阅读数:1069

评论数:0

XXX-Info.plist中某些属性本地化

工程名:APNSDemo. info.plist名字就是APNSDemo-Info.plist. 想要给APNSDemo-Info.plist中一些属性做本地化.在xcode3.X版本中,需要把APNSDemo-Info.plist改名为Info.plist.但是在xcode4中不用修...

2013-01-07 18:46:14

阅读数:643

评论数:0

Box2d Tutorial

Box2d Tutorial In the last chapter we covered creating a TMX Tiled map and how to create rectangular Box2d fixtures. In this chapter we will bri...

2013-01-04 10:46:21

阅读数:595

评论数:0

Best Practice of cross-platform games

Best Practice of cross-platform games __super keyword¶ this keyworld is offered only by Microsoft VC. So you had to call the very name of parent ...

2013-01-03 11:32:14

阅读数:456

评论数:0

How to use pthread

How to use pthread Now, you can use pthread in cocos2d-x, but there are some limitations. 1. Don't call functions that invoke retain(), release() o...

2013-01-03 11:06:40

阅读数:420

评论数:0

Cocos2D-X学习笔记(三)

CCDirector的作用: 1、加载、切换场景 2、暂停、继续游戏 3、全局设置 4、访问Views 5、将屏幕坐标系转换为OpenGL中的坐标系 cocos2d-x中的界面元素是这样组织的: (1)CCScene对象作为一个独立的游戏场景,它是看不见的元素。 (2)CC...

2013-01-02 22:05:25

阅读数:690

评论数:0

About device orientation

About device orientation This article describes how to set device orientation on iOS and android. As you know, there are two ways to set device or...

2013-01-02 21:46:48

阅读数:1024

评论数:0

Chapter 7 - Some Icing on the Cake

http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Chapter_7_-_Some_Icing_on_the_Cake   Chapter 7 - Some Icing on the Cake The simple game is comple...

2013-01-02 13:19:41

阅读数:467

评论数:0

第五章——如何检测碰撞

我们的英雄现在可以发射子弹了,但仅仅只是装饰而已,如何才能杀掉怪物呢? http://cn.cocos2d-x.org/resource/show?nid=68 我们的英雄现在可以发射子弹了,但仅仅只是装饰而已,如何才能杀掉怪物呢? 在这一章,我们将介绍碰撞检测来实现这一效果。 ...

2013-01-02 12:14:25

阅读数:362

评论数:0

第四章——如何发射子弹

http://cn.cocos2d-x.org/resource/show?nid=66   现在,我们想让英雄能发射子弹来消灭敌人,添加以下的代码,来设置图层支持触摸。 1// cpp with cocos2d-x 2this->setIsTouchEnabled(true);...

2013-01-02 11:43:57

阅读数:446

评论数:0

第六章——如何播放音乐和音效

http://cn.cocos2d-x.org/resource/show?nid=72\   在这一章里,我们将为游戏加入背景音乐,并在英雄发射子弹时播放音效。 由于这里需要添加的代码很少,所以我们在这里多谈点音效引擎。Cocos2d-x已封装了SimpleAudioEngine用来跨...

2013-01-02 11:29:20

阅读数:502

评论数:0

TMX Tilemaps & Box2D Fixtures

TMX Tilemaps & Box2D Fixtures There are many ways to make levels for a platformer. In this chapter we'll discuss how to create levels using ti...

2013-01-01 19:39:45

阅读数:1064

评论数:0

Animation & Spritesheets

Animation & Spritesheets A sprite is a single graphic image. It can be moved around the screen, stretched, rotated, skewed, faded and tinted. ...

2013-01-01 15:27:01

阅读数:729

评论数:0

C++ vs Objective C

Are you a game developer transitioning from Cocos2d iPhone to Cocos2d-X? From Objective C to C++? C++ used to be my language. It was all I wrote com...

2013-01-01 13:24:09

阅读数:998

评论数:0

Objective C与C++的可读性比较

Readability Here's another fundamental difference. Objective C is inherently more readable than C++ because method parameters are built into the nam...

2013-01-01 13:13:06

阅读数:471

评论数:0

Cocos2d-X Basics

Now that you’ve had a C++ refresher, it’s time to get a grasp on the basics of Cocos2d-X. In this chapter, we will be learning how to create a scene...

2013-01-01 02:51:48

阅读数:611

评论数:0

【C++11】nullptr关键字

从1972年C语言刚刚诞生以来,常数0就扮演着整数(int)0和空指针( null pointer )两种角色。为了避免理解上的二义性,C语言通常使用NULL宏来表示空指针,NULL宏通常被定义为(void *)0或0, 而C++仅仅采用0来表示空指针,这样存在一个问题:比如对于重载函数 fun(...

2013-01-01 02:01:24

阅读数:409

评论数:0

How C++11 Helps You Boost Your Developer Productivity

Programming languages come into vogue and then fade away. Meanwhile, C++ keeps going strong. Siddhartha Rao, author of Sams Teach Yourself C++ in On...

2013-01-01 01:51:37

阅读数:414

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭