Particle Effects-1

来源:互联网 发布:excel重复数据个数 编辑:程序博客网 时间:2024/06/06 06:30

TheNSStringFromClassmethod is very helpful in this example for printing out the name of the class without having to enter dozens of matching strings. It’s one of the coolruntime features of the Objective-C language that you’re able to get a class’s name as a string .


The Objective-C Runtime Programming Guide is agood starting point if you like to dive into this advanced topic or if you just want to learn howObjective-C works on a lower level:

 http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Introduction/Introduction.html


For game-play code, the NSStringFromClassand related methods hardly play any role, butthey’re very helpful debugging and logging tools. You can find a complete list and description ofthese methods in Apple’s Foundation Function Reference:

http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html


If your example particle effects, like this CCParticleFireworks, display huge, square particles, youforgot to add the fire.png image to your Xcode project. 




0 0
原创粉丝点击