How to efficiently show many Images? (iPhone programming)

后端 未结 4 1278
感动是毒
感动是毒 2020-12-16 03:18

In my application I needed something like a particle system so I did the following:

While the application initializes I load a UIImage

laserImage = [         


        
4条回答
  •  旧时难觅i
    2020-12-16 03:36

    I'd recommend starting over using OpenGL ES, there is an excellent framework called cocos2d for iPhone that can make this type of programming very easy and fast. From a quick look at your code, you're lasers can be remodeled as CCSprite which is an easy way to move images around a scene among many other things.

提交回复
热议问题