libpsys

view examples/simple/simple.psys @ 15:5678915dc2c7

probably done with the psys loader
author John Tsiombikas <nuclear@mutantstargoat.com>
date Mon, 10 Sep 2012 21:57:49 +0300
parents
children
line source
1 # Particle system definition file format example
2 #
3 # lines of key = value pairs.
4 # animated attributes can be defined as key(time) = value.
5 # time defaults to 0 if missing. time values can have an optional s suffix,
6 # signifying seconds, otherwise they are assumed to be in milliseconds.
7 #
8 # string values enclosed in double quotes
9 # vector values enclosed in square brackets [x y z]
10 # randomized values have a pair of values/vectors separated by a tilde:
11 # center ~ range. If the range is missing, it's assumed to be 0.
13 # texture: string
14 texture = "pimg.png"
15 # spawn_range: track3
16 spawn_range = [0.3 0.3 0.3]
17 # rate: track
18 # life: randomized track
19 life = 2
20 # size: randomized track
21 # dir: randomized track3
22 dir = [0 0 0] ~ [4 4 4]
23 # grav: track3
24 grav = [0 -4 0]
25 # drag: val
26 drag = 2
28 # particle attributes
29 # pcolor: track3
30 pcolor(0) = [1 0.6 0.4]
31 pcolor(1000) = [0.6 0.3 1]
32 # palpha: track
33 palpha(0) = 1
34 palpha(700) = 1
35 palpha(1000) = 0
36 # psize: track