libpsys

view examples/simple/simple.psys @ 18:66956b1e5e3f

added missing psys_create_attr/psys_free_attr and some checking in load_attr
author John Tsiombikas <nuclear@mutantstargoat.com>
date Thu, 13 Sep 2012 04:10:38 +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