自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 40 个很有用的 Mac OS X Shell 脚本和终端命令

 这里有一堆的 Mac OS X 下的终端命令,我将这些命令进行了简单的分类,这里很多命令在其他系统(Windows、Linux)一样有效,特别是 Linux/Unix。希望这些命令对你有帮助。系统重启 Mac OS X:1shutdown - r now 关闭 Mac OS X:1shutdown now...

2012-08-22 16:34:49 144

原创 卸载xcode

打开Terminal,输入以下代码并回车sudo /Developer/Library/uninstall-devtools --mode=all 

2012-07-25 21:53:39 120

原创 xcode4.3.2中添加Window-Based Application模版

在新的ios sdk中苹果去掉了该模版,并会默认选择storyboard和自动引用计数,但是当我们这些初学者去学习时却发现现在的教程和书籍都是建立在Window-Based Application模版上的,着实郁闷。在《iOS编程第二版》中作者为我们建造了Window-Based Application模版,让我们看看如何去添加该模版:1.下载模版  www.bignerdranch.c...

2012-07-24 23:27:22 87

原创 Cocos2d Part 9 (Particles)

在cocos2d源代码中将fire.png,fire.pvr,particles.png拷贝到工程中。HelloWorldLayer.h@interface HelloWorldLayer : CCLayer <GKAchievementViewControllerDelegate, GKLeaderboardViewControllerDelegate>{ ...

2012-07-22 18:05:32 104

原创 Cocos2d Part 8 (Surfing Scenes)

 HelloWorldLayer.m代码 +(CCScene *) scene{ CCScene *scene = [CCScene node]; HelloWorldLayer *layer = [HelloWorldLayer node]; CCSprite *background=[CCSprite spriteWithFile:@"Default.png...

2012-07-22 16:59:47 86

原创 Cocos2d Part 7 (Labels)

 -(void)menuItem1Select:(id)item{ NSLog(@"menuitem1,Select");}-(void)menuItem2Select:(id)item{ NSLog(@"menuitem2,Select");}-(id) init{ if( (self=[super init]) ) { ...

2012-07-22 16:11:33 83

原创 Cocos2d Part 6 (Menus)

 +(CCScene *) scene{ CCScene *scene = [CCScene node]; HelloWorldLayer *layer = [HelloWorldLayer node]; CCSprite *background=[CCSprite spriteWithFile:@"Default.png"]; background.ancho...

2012-07-21 22:16:46 74

原创 Cocos2d Part 5 (Ease Actions ,Effects)

 @synthesize bird;+(CCScene *) scene{ CCScene *scene = [CCScene node]; HelloWorldLayer *layer = [HelloWorldLayer node]; CCSprite *background=[CCSprite spriteWithFile:@"Default.png"]; ...

2012-07-21 19:08:26 79

原创 Cocos2d Part 4 (Collision Detection)

 HelloWorldLayer.h代码 @interface HelloWorldLayer : CCLayer <GKAchievementViewControllerDelegate, GKLeaderboardViewControllerDelegate>{ CCSprite *brid;}@property (nonatomic,reta...

2012-07-21 18:12:14 85

原创 Cocos2d Part 3 (Actions)

 +(CCScene *) scene{ CCScene *scene = [CCScene node]; HelloWorldLayer *layer = [HelloWorldLayer node]; [scene addChild: layer]; return scene;}-(void) finishCall{ NSLog(@"finish_...

2012-07-21 17:03:57 74

原创 Cocos2d Part 2 (Scenes, Layers)

  +(CCScene *) scene{ // 'scene' is an autorelease object. CCScene *scene = [CCScene node]; // 'layer' is an autorelease object. HelloWorldLayer *layer = [HelloWorldLayer node]; ...

2012-07-21 15:32:55 113

原创 xcode快捷键

Xcode 快捷键大全 收藏 现在说明一下,command相当于ms键盘的window键,option相当于ctrl,键值一样,系统偏好设置里面可以更改。 xcode 相关: 关于xcode  可设 偏好设置 command+, 清空缓存 可设 隐藏xcode command+h 隐藏其它 command+option+h 显示全部 可设 退出xcode command+q 文件相关: 新建项目 ...

2012-06-19 22:42:58 67

原创 cocos2d 2.0 横竖屏修改

在AppDelegate.m文件修改下面方法- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{ //竖屏 return ( UIInterfaceOrientationIsPortrait( interfaceOrientation )...

2012-06-18 23:03:48 76

原创 安装cocos2d 2.0的错误提示及解决

1.使用标准化的./install-templates.sh –u –f安装,杯具来了:Installing Xcode 4 cocos2d iOS template
----------------------------------------------------removing old libraries: /Users/eseedo/Library/Developer/Xcode/Te...

2012-06-17 15:06:52 160

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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