Yalantis / StarWars.iOS

This component implements transition animation to crumble view-controller into tiny pieces.
https://yalantis.com
MIT License
3.78k stars 362 forks source link

Stars animation on intro #1

Closed SoundBlaster closed 8 years ago

SoundBlaster commented 9 years ago

Some improvement for stars animation on Intro screen, like flying through stars array:

    func randomizeEmitterPosition() {
        let sizeWidth = 1.0*self.bounds.size.height
        let radius =  0 + CGFloat(arc4random()) % sizeWidth;
        emitter.emitterSize = CGSizeMake(radius, radius)
        particle.birthRate = 10 + sqrt(Float(radius))
    }
Art3mS1d commented 9 years ago

Looks great!!! Thanks, @SoundBlaster. https://github.com/Yalantis/StarWars.iOS/commit/b104fb54cd21a41c8589ac6e59f718078e1f69ef

xiaoqi723 commented 9 years ago

why not have OC ?