<i id='RNozG'><tr id='RNozG'><dt id='RNozG'><q id='RNozG'><span id='RNozG'><b id='RNozG'><form id='RNozG'><ins id='RNozG'></ins><ul id='RNozG'></ul><sub id='RNozG'></sub></form><legend id='RNozG'></legend><bdo id='RNozG'><pre id='RNozG'><center id='RNozG'></center></pre></bdo></b><th id='RNozG'></th></span></q></dt></tr></i><div id='RNozG'><tfoot id='RNozG'></tfoot><dl id='RNozG'><fieldset id='RNozG'></fieldset></dl></div>

    • <bdo id='RNozG'></bdo><ul id='RNozG'></ul>

    <small id='RNozG'></small><noframes id='RNozG'>

      1. <tfoot id='RNozG'></tfoot>

        <legend id='RNozG'><style id='RNozG'><dir id='RNozG'><q id='RNozG'></q></dir></style></legend>
      2. 没有cocos2D的xcode iphone粒子

        时间:2024-08-12
        • <bdo id='TQRHS'></bdo><ul id='TQRHS'></ul>
          1. <small id='TQRHS'></small><noframes id='TQRHS'>

            • <i id='TQRHS'><tr id='TQRHS'><dt id='TQRHS'><q id='TQRHS'><span id='TQRHS'><b id='TQRHS'><form id='TQRHS'><ins id='TQRHS'></ins><ul id='TQRHS'></ul><sub id='TQRHS'></sub></form><legend id='TQRHS'></legend><bdo id='TQRHS'><pre id='TQRHS'><center id='TQRHS'></center></pre></bdo></b><th id='TQRHS'></th></span></q></dt></tr></i><div id='TQRHS'><tfoot id='TQRHS'></tfoot><dl id='TQRHS'><fieldset id='TQRHS'></fieldset></dl></div>

                <tfoot id='TQRHS'></tfoot>
                  <tbody id='TQRHS'></tbody>
                <legend id='TQRHS'><style id='TQRHS'><dir id='TQRHS'><q id='TQRHS'></q></dir></style></legend>
                  本文介绍了没有cocos2D的xcode iphone粒子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否可以在不使用 cocos 2D 的情况下拥有粒子.我知道粒子设计师,但我们必须将它与 cocos 2D 一起使用.没有cocos 2D如何制作粒子??

                  is it possible to have particles without using cocos 2D. I know particle designer but we have to use it with cocos 2D. How can I make particles without cocos 2D ??

                  推荐答案

                  您可以通过生成图像并将其添加到数组中来实现,这使得为图像设置动画或对图像执行任何操作非常容易.

                  You can do it by spawning an image and adding it to an array, which makes it extremly easy to animate the image or do whatever with it.

                      - (void)createImage {
                  
                      UIImageView *Image = [[UIImageView alloc] initWithFrame:CGRectMake(arc4random() % 320, 480, 40, 40)];
                      [Image setBackgroundColor:[UIColor blackColor]];
                      [self.view addSubview:Image];
                      [myArray addObject:Image];
                  
                  }
                  

                  这会在任何地方创建一个黑色图像并将其添加到数组中.

                  That creates a black image wherever and adds it to an array.

                  然后,您可以制作一个计时器并每秒生成一次图像!

                  Then, you can make a timer and spawn the image every second!

                  spawn = [NSTimer scheduledTimerWithTimeInterval:1.0/3 target:self selector:@selector(Spawn) userInfo:nil repeats:YES];
                  
                  
                  - (void)Spawn {
                  
                      [self createImage];
                  
                  }
                  

                  这篇关于没有cocos2D的xcode iphone粒子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在 Cocos2d 中获取贝塞尔曲线问题的导数 下一篇:用 ccTouchesMoved 方法移动 CCCamera?(cocos2d,iphone)

                  相关文章

                      <legend id='ARr8b'><style id='ARr8b'><dir id='ARr8b'><q id='ARr8b'></q></dir></style></legend>
                    1. <i id='ARr8b'><tr id='ARr8b'><dt id='ARr8b'><q id='ARr8b'><span id='ARr8b'><b id='ARr8b'><form id='ARr8b'><ins id='ARr8b'></ins><ul id='ARr8b'></ul><sub id='ARr8b'></sub></form><legend id='ARr8b'></legend><bdo id='ARr8b'><pre id='ARr8b'><center id='ARr8b'></center></pre></bdo></b><th id='ARr8b'></th></span></q></dt></tr></i><div id='ARr8b'><tfoot id='ARr8b'></tfoot><dl id='ARr8b'><fieldset id='ARr8b'></fieldset></dl></div>
                      • <bdo id='ARr8b'></bdo><ul id='ARr8b'></ul>
                    2. <small id='ARr8b'></small><noframes id='ARr8b'>

                    3. <tfoot id='ARr8b'></tfoot>