Dazzle_Mac
Dazzle 

所属分类:MacOS编程
开发工具:Objective-C
文件大小:4461KB
下载次数:7
上传日期:2013-10-29 13:52:31
上 传 者chenchenyuqiang1
说明:  这是MAC OS一个火焰跳动的动画效果,效果尚可,有兴趣的可以下载看看。
(This is a flame beating MAC OS animation effect can still, interested can download to see.)

文件列表:
Dazzle (0, 2012-05-28)
Dazzle\.DS_Store (6148, 2012-05-28)
__MACOSX (0, 2012-05-28)
__MACOSX\Dazzle (0, 2012-05-28)
__MACOSX\Dazzle\._.DS_Store (82, 2012-05-28)
Dazzle\Dazzle (0, 2012-02-21)
Dazzle\Dazzle\DazAppDelegate.h (533, 2012-02-21)
__MACOSX\Dazzle\Dazzle (0, 2012-05-28)
__MACOSX\Dazzle\Dazzle\._DazAppDelegate.h (229, 2012-02-21)
Dazzle\Dazzle\DazAppDelegate.m (2412, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazAppDelegate.m (229, 2012-02-21)
Dazzle\Dazzle\DazFire.png (3366, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazFire.png (229, 2012-02-21)
Dazzle\Dazzle\DazFireController.h (673, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazFireController.h (229, 2012-02-21)
Dazzle\Dazzle\DazFireController.m (5019, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazFireController.m (229, 2012-02-21)
Dazzle\Dazzle\DazFireworksController.h (483, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazFireworksController.h (229, 2012-02-21)
Dazzle\Dazzle\DazFireworksController.m (3354, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazFireworksController.m (229, 2012-02-21)
Dazzle\Dazzle\DazFlake.png (2218, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazFlake.png (229, 2012-02-21)
Dazzle\Dazzle\DazFlakeIcon.png (2110, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazFlakeIcon.png (229, 2012-02-21)
Dazzle\Dazzle\DazFlakeIcon@2x.png (3721, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazFlakeIcon@2x.png (229, 2012-02-21)
Dazzle\Dazzle\DazFlameIcon.png (1892, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazFlameIcon.png (229, 2012-02-21)
Dazzle\Dazzle\DazFlameIcon@2x.png (2981, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazFlameIcon@2x.png (229, 2012-02-21)
Dazzle\Dazzle\DazHeart.png (1804, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazHeart.png (229, 2012-02-21)
Dazzle\Dazzle\DazHeartIcon.png (1711, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazHeartIcon.png (229, 2012-02-21)
Dazzle\Dazzle\DazHeartIcon@2x.png (2486, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazHeartIcon@2x.png (229, 2012-02-21)
Dazzle\Dazzle\DazInfoController.h (470, 2012-02-21)
__MACOSX\Dazzle\Dazzle\._DazInfoController.h (229, 2012-02-21)
Dazzle\Dazzle\DazInfoController.m (2453, 2012-02-21)
... ...

Dazzle ====== Created by Leonhard Lichtschlag (leonhard@lichtschlag.net) on 9/Feb/12. Copyright (c) 2012 Leonhard Lichtschlag. All rights reserved. --- Dazzle is a demo of some effects one can do with Core Animation in iOS 5 with the CAEmitterCell and CAEmitterLayer classes: * The "info" tab shows a linear emitter with a shadow applied to all cells to create an emboss effect. * In the "hearts" tab the emitters are triggered by an animation to create the "burst" animation. * In the "fire" tab, additive overlaying of cell creates a somewhat realistic impression of fire. The source code here has been adapted from the corresponding Apple sample code for Mac. * In the fourth tab, I show how emitted cells can in turn again emit cells: the triangles sent away from the touch send two kinds of cells sideways and back to the touch location. The emitted cells start with their visual values set to those of their parents. * Emitters can also be invisible, but there seems to be a bug in CAEmitterLayer: setting the birthrate lower than 1.0 creates huge spawn rates even though it should be less. To still create the fireworks with it, the explosion can therefore only happen at most 1 sec after the rocket launches. Performance-wise, setting the flame height to maximum will really stress the iPhone4's graphics to its max, resulting at about ~30 fps. Likewise a constant triggering of new touches in the last tab will average at about 22 fps.

近期下载者

相关文件


收藏者