Yalantis/StarWars.iOS

Stars animation on intro

SoundBlaster opened this issue · 2 comments

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))
    }

Looks great!!! Thanks, @SoundBlaster. b104fb5

why not have OC ?