fire_and_smoke.particlefx 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. emitters {
  2. id: "fire"
  3. mode: PLAY_MODE_LOOP
  4. duration: 1.0
  5. space: EMISSION_SPACE_WORLD
  6. position {
  7. x: 0.0
  8. y: 0.0
  9. z: 0.1
  10. }
  11. rotation {
  12. x: 0.0
  13. y: 0.0
  14. z: 0.0
  15. w: 1.0
  16. }
  17. tile_source: "/assets/sprites.atlas"
  18. animation: "flame"
  19. material: "/builtins/materials/particlefx.material"
  20. blend_mode: BLEND_MODE_ALPHA
  21. particle_orientation: PARTICLE_ORIENTATION_DEFAULT
  22. inherit_velocity: 0.0
  23. max_particle_count: 128
  24. type: EMITTER_TYPE_CIRCLE
  25. start_delay: 0.0
  26. properties {
  27. key: EMITTER_KEY_SPAWN_RATE
  28. points {
  29. x: 0.0
  30. y: 35.0
  31. t_x: 1.0
  32. t_y: 0.0
  33. }
  34. spread: 10.0
  35. }
  36. properties {
  37. key: EMITTER_KEY_SIZE_X
  38. points {
  39. x: 0.0
  40. y: 100.0
  41. t_x: 1.0
  42. t_y: 0.0
  43. }
  44. spread: 20.0
  45. }
  46. properties {
  47. key: EMITTER_KEY_SIZE_Y
  48. points {
  49. x: 0.0
  50. y: 12.0
  51. t_x: 1.0
  52. t_y: 0.0
  53. }
  54. spread: 0.0
  55. }
  56. properties {
  57. key: EMITTER_KEY_SIZE_Z
  58. points {
  59. x: 0.0
  60. y: 0.0
  61. t_x: 1.0
  62. t_y: 0.0
  63. }
  64. spread: 0.0
  65. }
  66. properties {
  67. key: EMITTER_KEY_PARTICLE_LIFE_TIME
  68. points {
  69. x: 0.0
  70. y: 2.5
  71. t_x: 1.0
  72. t_y: 0.0
  73. }
  74. spread: 0.0
  75. }
  76. properties {
  77. key: EMITTER_KEY_PARTICLE_SPEED
  78. points {
  79. x: 0.0
  80. y: 30.0
  81. t_x: 1.0
  82. t_y: 0.0
  83. }
  84. spread: 20.0
  85. }
  86. properties {
  87. key: EMITTER_KEY_PARTICLE_SIZE
  88. points {
  89. x: 0.0
  90. y: 60.0
  91. t_x: 1.0
  92. t_y: 0.0
  93. }
  94. spread: 20.0
  95. }
  96. properties {
  97. key: EMITTER_KEY_PARTICLE_RED
  98. points {
  99. x: 0.0
  100. y: 1.0
  101. t_x: 1.0
  102. t_y: 0.0
  103. }
  104. spread: 0.0
  105. }
  106. properties {
  107. key: EMITTER_KEY_PARTICLE_GREEN
  108. points {
  109. x: 0.0
  110. y: 1.0
  111. t_x: 1.0
  112. t_y: 0.0
  113. }
  114. spread: 0.0
  115. }
  116. properties {
  117. key: EMITTER_KEY_PARTICLE_BLUE
  118. points {
  119. x: 0.0
  120. y: 1.0
  121. t_x: 1.0
  122. t_y: 0.0
  123. }
  124. spread: 0.0
  125. }
  126. properties {
  127. key: EMITTER_KEY_PARTICLE_ALPHA
  128. points {
  129. x: 0.0
  130. y: 0.8
  131. t_x: 1.0
  132. t_y: 0.0
  133. }
  134. spread: 0.2
  135. }
  136. properties {
  137. key: EMITTER_KEY_PARTICLE_ROTATION
  138. points {
  139. x: 0.0
  140. y: 180.0
  141. t_x: 1.0
  142. t_y: 0.0
  143. }
  144. spread: 0.0
  145. }
  146. particle_properties {
  147. key: PARTICLE_KEY_SCALE
  148. points {
  149. x: 0.0
  150. y: 0.89335895
  151. t_x: 1.0
  152. t_y: 0.0
  153. }
  154. points {
  155. x: 0.15953489
  156. y: 0.9837815
  157. t_x: 0.9999661
  158. t_y: -0.008235919
  159. }
  160. points {
  161. x: 1.0
  162. y: 0.38265744
  163. t_x: 0.65618813
  164. t_y: -0.7545973
  165. }
  166. }
  167. particle_properties {
  168. key: PARTICLE_KEY_RED
  169. points {
  170. x: 0.0
  171. y: 0.6145592
  172. t_x: 0.30469579
  173. t_y: 0.95244974
  174. }
  175. points {
  176. x: 1.0
  177. y: 0.1056932
  178. t_x: 0.62951744
  179. t_y: -0.77698636
  180. }
  181. }
  182. particle_properties {
  183. key: PARTICLE_KEY_GREEN
  184. points {
  185. x: 0.0
  186. y: 0.90063024
  187. t_x: 0.98071337
  188. t_y: 0.19545136
  189. }
  190. points {
  191. x: 1.0
  192. y: 0.0052434118
  193. t_x: 0.8684664
  194. t_y: -0.49574804
  195. }
  196. }
  197. particle_properties {
  198. key: PARTICLE_KEY_BLUE
  199. points {
  200. x: 0.0
  201. y: 1.0
  202. t_x: 1.0
  203. t_y: 0.0
  204. }
  205. }
  206. particle_properties {
  207. key: PARTICLE_KEY_ALPHA
  208. points {
  209. x: 0.0
  210. y: 0.0
  211. t_x: 0.07194582
  212. t_y: 0.99740857
  213. }
  214. points {
  215. x: 0.11320755
  216. y: 0.99277455
  217. t_x: 0.99418455
  218. t_y: 0.10768964
  219. }
  220. points {
  221. x: 0.6624174
  222. y: 0.5364643
  223. t_x: 0.5694311
  224. t_y: -0.82203907
  225. }
  226. points {
  227. x: 1.0
  228. y: 8.2818E-4
  229. t_x: 0.91777724
  230. t_y: -0.39709562
  231. }
  232. }
  233. particle_properties {
  234. key: PARTICLE_KEY_ROTATION
  235. points {
  236. x: 0.0
  237. y: 0.0
  238. t_x: 1.0
  239. t_y: 0.0
  240. }
  241. }
  242. modifiers {
  243. type: MODIFIER_TYPE_ACCELERATION
  244. use_direction: 0
  245. position {
  246. x: 0.0
  247. y: 0.0
  248. z: 0.0
  249. }
  250. rotation {
  251. x: 0.0
  252. y: 0.0
  253. z: 0.0
  254. w: 1.0
  255. }
  256. properties {
  257. key: MODIFIER_KEY_MAGNITUDE
  258. points {
  259. x: 0.0
  260. y: 50.0
  261. t_x: 1.0
  262. t_y: 0.0
  263. }
  264. spread: 20.0
  265. }
  266. }
  267. modifiers {
  268. type: MODIFIER_TYPE_RADIAL
  269. use_direction: 0
  270. position {
  271. x: 0.0
  272. y: 150.0
  273. z: 0.0
  274. }
  275. rotation {
  276. x: 0.0
  277. y: 0.0
  278. z: 0.0
  279. w: 1.0
  280. }
  281. properties {
  282. key: MODIFIER_KEY_MAGNITUDE
  283. points {
  284. x: 0.0
  285. y: -50.0
  286. t_x: 1.0
  287. t_y: 0.0
  288. }
  289. spread: 20.0
  290. }
  291. properties {
  292. key: MODIFIER_KEY_MAX_DISTANCE
  293. points {
  294. x: 0.0
  295. y: 1000.0
  296. t_x: 1.0
  297. t_y: 0.0
  298. }
  299. spread: 0.0
  300. }
  301. }
  302. size_mode: SIZE_MODE_MANUAL
  303. start_delay_spread: 0.0
  304. duration_spread: 0.0
  305. stretch_with_velocity: false
  306. start_offset: 0.0
  307. pivot {
  308. x: 0.0
  309. y: 0.0
  310. z: 0.0
  311. }
  312. }
  313. emitters {
  314. id: "smoke"
  315. mode: PLAY_MODE_LOOP
  316. duration: 1.0
  317. space: EMISSION_SPACE_WORLD
  318. position {
  319. x: 0.0
  320. y: 60.0
  321. z: 0.0
  322. }
  323. rotation {
  324. x: 0.0
  325. y: 0.0
  326. z: 0.0
  327. w: 1.0
  328. }
  329. tile_source: "/assets/sprites.atlas"
  330. animation: "smoke"
  331. material: "/builtins/materials/particlefx.material"
  332. blend_mode: BLEND_MODE_ALPHA
  333. particle_orientation: PARTICLE_ORIENTATION_DEFAULT
  334. inherit_velocity: 0.0
  335. max_particle_count: 32
  336. type: EMITTER_TYPE_CIRCLE
  337. start_delay: 0.5
  338. properties {
  339. key: EMITTER_KEY_SPAWN_RATE
  340. points {
  341. x: 0.0
  342. y: 4.0
  343. t_x: 1.0
  344. t_y: 0.0
  345. }
  346. spread: 2.0
  347. }
  348. properties {
  349. key: EMITTER_KEY_SIZE_X
  350. points {
  351. x: 0.0
  352. y: 30.0
  353. t_x: 1.0
  354. t_y: 0.0
  355. }
  356. spread: 10.0
  357. }
  358. properties {
  359. key: EMITTER_KEY_SIZE_Y
  360. points {
  361. x: 0.0
  362. y: 12.0
  363. t_x: 1.0
  364. t_y: 0.0
  365. }
  366. spread: 0.0
  367. }
  368. properties {
  369. key: EMITTER_KEY_SIZE_Z
  370. points {
  371. x: 0.0
  372. y: 0.0
  373. t_x: 1.0
  374. t_y: 0.0
  375. }
  376. spread: 0.0
  377. }
  378. properties {
  379. key: EMITTER_KEY_PARTICLE_LIFE_TIME
  380. points {
  381. x: 0.0
  382. y: 5.0
  383. t_x: 1.0
  384. t_y: 0.0
  385. }
  386. spread: 0.0
  387. }
  388. properties {
  389. key: EMITTER_KEY_PARTICLE_SPEED
  390. points {
  391. x: 0.0
  392. y: 10.0
  393. t_x: 1.0
  394. t_y: 0.0
  395. }
  396. spread: 10.0
  397. }
  398. properties {
  399. key: EMITTER_KEY_PARTICLE_SIZE
  400. points {
  401. x: 0.0
  402. y: 40.0
  403. t_x: 1.0
  404. t_y: 0.0
  405. }
  406. spread: 20.0
  407. }
  408. properties {
  409. key: EMITTER_KEY_PARTICLE_RED
  410. points {
  411. x: 0.0
  412. y: 1.0
  413. t_x: 1.0
  414. t_y: 0.0
  415. }
  416. spread: 0.0
  417. }
  418. properties {
  419. key: EMITTER_KEY_PARTICLE_GREEN
  420. points {
  421. x: 0.0
  422. y: 1.0
  423. t_x: 1.0
  424. t_y: 0.0
  425. }
  426. spread: 0.0
  427. }
  428. properties {
  429. key: EMITTER_KEY_PARTICLE_BLUE
  430. points {
  431. x: 0.0
  432. y: 1.0
  433. t_x: 1.0
  434. t_y: 0.0
  435. }
  436. spread: 0.0
  437. }
  438. properties {
  439. key: EMITTER_KEY_PARTICLE_ALPHA
  440. points {
  441. x: 0.0
  442. y: 0.5
  443. t_x: 1.0
  444. t_y: 0.0
  445. }
  446. spread: 0.3
  447. }
  448. properties {
  449. key: EMITTER_KEY_PARTICLE_ROTATION
  450. points {
  451. x: 0.0
  452. y: 0.0
  453. t_x: 1.0
  454. t_y: 0.0
  455. }
  456. spread: 90.0
  457. }
  458. particle_properties {
  459. key: PARTICLE_KEY_SCALE
  460. points {
  461. x: 0.0
  462. y: 0.77377826
  463. t_x: 0.21358238
  464. t_y: 0.9769251
  465. }
  466. points {
  467. x: 1.0
  468. y: 0.6946007
  469. t_x: 1.0
  470. t_y: 0.0
  471. }
  472. }
  473. particle_properties {
  474. key: PARTICLE_KEY_RED
  475. points {
  476. x: 0.0
  477. y: 1.0
  478. t_x: 1.0
  479. t_y: 0.0
  480. }
  481. }
  482. particle_properties {
  483. key: PARTICLE_KEY_GREEN
  484. points {
  485. x: 0.0
  486. y: 1.0
  487. t_x: 1.0
  488. t_y: 0.0
  489. }
  490. }
  491. particle_properties {
  492. key: PARTICLE_KEY_BLUE
  493. points {
  494. x: 0.0
  495. y: 1.0
  496. t_x: 1.0
  497. t_y: 0.0
  498. }
  499. }
  500. particle_properties {
  501. key: PARTICLE_KEY_ALPHA
  502. points {
  503. x: 0.0
  504. y: 0.0
  505. t_x: 0.07194582
  506. t_y: 0.99740857
  507. }
  508. points {
  509. x: 0.11320755
  510. y: 0.99277455
  511. t_x: 0.99418455
  512. t_y: 0.10768964
  513. }
  514. points {
  515. x: 0.7112546
  516. y: 0.555656
  517. t_x: 0.5694311
  518. t_y: -0.82203907
  519. }
  520. points {
  521. x: 1.0
  522. y: 0.01853652
  523. t_x: 0.9899838
  524. t_y: -0.14118116
  525. }
  526. }
  527. particle_properties {
  528. key: PARTICLE_KEY_ROTATION
  529. points {
  530. x: 0.0
  531. y: 0.0
  532. t_x: 1.0
  533. t_y: 0.0
  534. }
  535. points {
  536. x: 1.0
  537. y: 10.7541
  538. t_x: 1.0
  539. t_y: 0.0
  540. }
  541. }
  542. particle_properties {
  543. key: PARTICLE_KEY_STRETCH_FACTOR_X
  544. points {
  545. x: 0.0
  546. y: 0.0
  547. t_x: 1.0
  548. t_y: 0.0
  549. }
  550. }
  551. particle_properties {
  552. key: PARTICLE_KEY_STRETCH_FACTOR_Y
  553. points {
  554. x: 0.0
  555. y: 0.0
  556. t_x: 1.0
  557. t_y: 0.0
  558. }
  559. }
  560. particle_properties {
  561. key: PARTICLE_KEY_ANGULAR_VELOCITY
  562. points {
  563. x: 0.0
  564. y: 0.0
  565. t_x: 1.0
  566. t_y: 0.0
  567. }
  568. }
  569. modifiers {
  570. type: MODIFIER_TYPE_ACCELERATION
  571. use_direction: 0
  572. position {
  573. x: 0.0
  574. y: 0.0
  575. z: 0.0
  576. }
  577. rotation {
  578. x: 0.0
  579. y: 0.0
  580. z: 0.0
  581. w: 1.0
  582. }
  583. properties {
  584. key: MODIFIER_KEY_MAGNITUDE
  585. points {
  586. x: 0.0
  587. y: 20.0
  588. t_x: 1.0
  589. t_y: 0.0
  590. }
  591. spread: 10.0
  592. }
  593. }
  594. modifiers {
  595. type: MODIFIER_TYPE_RADIAL
  596. use_direction: 0
  597. position {
  598. x: 0.0
  599. y: 150.0
  600. z: 0.0
  601. }
  602. rotation {
  603. x: 0.0
  604. y: 0.0
  605. z: 0.0
  606. w: 1.0
  607. }
  608. properties {
  609. key: MODIFIER_KEY_MAGNITUDE
  610. points {
  611. x: 0.0
  612. y: -40.0
  613. t_x: 1.0
  614. t_y: 0.0
  615. }
  616. spread: 20.0
  617. }
  618. properties {
  619. key: MODIFIER_KEY_MAX_DISTANCE
  620. points {
  621. x: 0.0
  622. y: 1000.0
  623. t_x: 1.0
  624. t_y: 0.0
  625. }
  626. spread: 0.0
  627. }
  628. }
  629. size_mode: SIZE_MODE_MANUAL
  630. start_delay_spread: 0.3
  631. duration_spread: 0.0
  632. stretch_with_velocity: false
  633. start_offset: 0.0
  634. pivot {
  635. x: 0.0
  636. y: 0.0
  637. z: 0.0
  638. }
  639. }