自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Some notes about performSelector method

SEL theSelector =NSSelectorFromString(@"setOrientation:animated:");NSInvocation*anInvocation =[NSInvocation                                                          invocationWithMethodSignature:                                                          [MP

2011-03-30 11:16:00 707

转载 Get type of NSNumber

<br /><br />I recommend using the -[NSNumber objCType] method.<br />It allows you to do:NSNumber* n =[NSNumber numberWithBool:YES];<br />if(strcmp([n objCType],@encode(BOOL))==0){<br />    NSLog(@"this is a bool");<br />}elseif(strcmp([n objCType],@encode(

2011-03-30 11:02:00 617

转载 Enemies and Combat: How to Create a Tile Based Game with Cocos2D Part 3

<br />Enemies and Combat: How to Create a Tile Based Game with Cocos2D Part 3By Geek<br />This is a continuation of one of Ray Wenderlich’s excellent tutorialsfor making games with Cocos2D for iPhone. If you haven’t read them already, visit his website and

2011-03-14 14:18:00 1252

转载 How To Use Box2D For Just Collision Detection with Cocos2D iPhone

<br />How To Use Box2D For Just Collision Detection with Cocos2D iPhone<br />Like this post? Follow me on Twitter!<br />Cats vs. Car!<br />When making a game with Cocos2D, sometimes you may find yourself wanting to use Cocos2D actions to move your objects

2011-03-10 13:17:00 3166

转载 How To Create A Breakout Game with Box2D and Cocos2D Tutorial: Part 2/2

How To Create A Breakout Game with Box2D and Cocos2D Tutorial: Part 2/2Like this post? Follow me on Twitter!Simple Breakout Game ScreenshotThis is the second and final part of a tutorial on how to create a simple breakout game using the Box2D physics libra

2011-03-10 13:15:00 1845

转载 How To Create A Breakout Game with Box2D and Cocos2D Tutorial: Part 1/2

<br />How To Create A Breakout Game with Box2D and Cocos2D Tutorial: Part 1/2<br />Like this post? Follow me on Twitter!<br />Simple Breakout Game Screenshot<br />Box2D is a powerful physics library that comes with the Cocos2D game programming library for

2011-03-10 13:14:00 2124

转载 Intro to Box2D with Cocos2D Tutorial: Bouncing Balls

<br /> Intro to Box2D with Cocos2D Tutorial: Bouncing Balls<br />Like this post? Follow me on Twitter!<br />Bouncing Ball Example<br />This tutorial helps get you started with Box2D with Cocos2D by showing you how to create a simple app that shows a ball t

2011-03-10 13:13:00 1649

转载 How To Create A Mole Whacking Game with Cocos2D: Part 2/2

How To Create A Mole Whacking Game with Cocos2D: Part 2/2Like this post? Follow me on Twitter!Whack that laugh off this mole's face!This article is the second part of a 2 part series on how to create a mole whacknig game with Cocos2D. This series brings to

2011-03-10 13:10:00 1088

转载 How To Create A Mole Whacking Game with Cocos2D: Part 1/2

<br />How To Create A Mole Whacking Game with Cocos2D: Part 1/2<br />Like this post? Follow me on Twitter!<br />Whack this Mole!<br />One of the students in the iOS Programming 101 workshop that Shawn Grimes and I recently offered requested that I write a

2011-03-10 13:08:00 1572

转载 How To Drag and Drop Sprites with Cocos2D

<br />How To Drag and Drop Sprites with Cocos2D<br />Like this post? Follow me on Twitter!<br />Drag and drop these cute pets with Cocos2D!<br />I’ve received several requests to write a tutorial on how to move sprites in Cocos2D by dragging them with touc

2011-03-10 13:07:00 2552

转载 How to Create and Optimize Sprite Sheets in Cocos2D with Texture Packer and Pixel Formats

<br />How to Create and Optimize Sprite Sheets in Cocos2D with Texture Packer and Pixel Formats<br />Like this post? Follow me on Twitter!<br />Optimize texture usage with Texture Packer and Pixel Formats!<br />In Cocos2D, it’s important to combine your sp

2011-03-10 13:06:00 2837

转载 How To Use Animations and Sprite Sheets in Cocos2D

<br />How To Use Animations and Sprite Sheets in Cocos2D<br />Like this post? Follow me on Twitter!<br />Smoky says: Only you can start this bear!<br />I’ve gotten a ton of requests from readers of this blog to make a tutorial on how to use animations and

2011-03-10 11:48:00 6015

转载 How To Create Buttons in Cocos2D: Simple, Radio, and Toggle

<br />How To Create Buttons in Cocos2D: Simple, Radio, and Toggle<br />Like this post? Follow me on Twitter!<br />Buttons Tutorial Screenshot<br />When you are making a game in Cocos2D, likely one of the first things you’ll find yourself needing is buttons

2011-03-10 11:47:00 1101

转载 Collisions and Collectables: How To Make a Tile Based Game with Cocos2D Part 2

<br />Collisions and Collectables: How To Make a Tile Based Game with Cocos2D Part 2<br />Like this post? Follow me on Twitter!<br />Mmm, that was tasty!<br />This is the second part of a 2-part tutorial where we cover how to make a tile based game with Co

2011-03-10 11:45:00 1241

转载 How To Make a Tile Based Game with Cocos2D

<br />How To Make a Tile Based Game with Cocos2D<br />Like this post? Follow me on Twitter!<br />Mmm, tasty melons!<br />In this 2-part tutorial, we’re going to cover how to make a tile based game with Cocos2D and the Tiled map editor. We will do so by cre

2011-03-10 11:43:00 3623

转载 Harder Monsters and More Levels: How To Make A Simple iPhone Game with Cocos2D Part 3

<br />Harder Monsters and More Levels: How To Make A Simple iPhone Game with Cocos2D Part 3<br />Like this post? Follow me on Twitter!<br />Watch out for the green guy!<br />So far, the game we’ve been making in How To Make A Simple iPhone Game with Cocos2

2011-03-10 11:41:00 826

转载 Rotating Turrets: How To Make A Simple iPhone Game with Cocos2D Part 2

<br />Rotating Turrets: How To Make A Simple iPhone Game with Cocos2D Part 2<br />Like this post? Follow me on Twitter!<br />Let's Rotate This Turret!<br />There’s been a surprising amount of interest in the post on How To Make a Simple iPhone Game with Co

2011-03-10 11:39:00 951

转载 How To Make A Simple iPhone Game with Cocos2D Tutorial

<br /><br />How To Make A Simple iPhone Game with Cocos2D Tutorial<br />Like this post? Follow me on Twitter!<br />Ninjas Going Pew-Pew!<br />Cocos2D is a powerful library for the iPhone that can save you a lot of time while building your iPhone game. It h

2011-03-10 11:37:00 1231

转载 Xcode下SVN配置方法

SVN在开源项目中广泛使用,以googlecode,sourceforge为标杆,企业内部大型项目也用SVN管理,为了方便协同开发和代码管理,需要在Xcode上部署SVN,Xcode 3.0 以上已经完美支持SVN。一、配置SVNleopard已经自带SVN client,直接在xcode里可以用,但默认SVN无法识别文件类型,所以临时文件或编译文件默认也会上传到SVN,要把这些文件ignore掉,需要修改svn系统配置。具体如下:vi ~/.subversion/config找到 global-ignor

2011-03-01 18:06:00 922

空空如也

空空如也

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

TA关注的人

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