[心得] Stardust亂流

看板Flash作者 (CJ Cat)時間16年前 (2009/08/07 14:29), 編輯推噓5(503)
留言8則, 6人參與, 最新討論串1/1
最近參考了ClockMaker範例的演算法 http://0rz.tw/qJnwZ 想要用Stardust做一個一樣的效果出來 於是就做出了這個 http://0rz.tw/lq4Bx 原始檔可以在這裡找到 http://stardust-particle-engine.googlecode.com/svn/trunk/examples/ 原理其實很簡單 就是用BitmapData.draw()先算好360張點陣圖 每一張分別是物件旋轉0~359度的"照片" 畫面中的每一個粒子其實都是Bitmap物件 由rotation值來決定要顯示那360張照片中的哪一張 [追加一個亂流火焰] http://cjcat.blogspot.com/2009/08/turbulent-blast.html -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.228.80.180 ※ 編輯: cjcat2266 來自: 61.228.80.180 (08/07 17:57)

08/07 18:32, , 1F
蝗蟲過境...
08/07 18:32, 1F

08/07 20:55, , 2F
fps好低... ;_;
08/07 20:55, 2F

08/07 21:27, , 3F
耶?我全部的fps都在60左右耶? (而且我電腦有六年老囉)
08/07 21:27, 3F

08/07 21:48, , 4F
好酷@@
08/07 21:48, 4F

08/08 01:08, , 5F
WOW The fire effect one is really amazing !!
08/08 01:08, 5F

08/08 01:09, , 6F
ps. my fps : 60/60 full ,intel E5200 jeje
08/08 01:09, 6F

08/08 02:44, , 7F
我在win下面看比較快= ="
08/08 02:44, 7F

08/08 11:05, , 8F
我在mac看,大概是fps 50~55/60
08/08 11:05, 8F
文章代碼(AID): #1AUydVHd (Flash)