libpsys

diff examples/simple/simple.psys @ 13:1b0db53d5b5b

started writting config file for the particle system attributes
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 06 Sep 2012 02:32:58 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/simple/simple.psys	Thu Sep 06 02:32:58 2012 +0300
     1.3 @@ -0,0 +1,36 @@
     1.4 +# Particle system definition file format example
     1.5 +#
     1.6 +# lines of key = value pairs.
     1.7 +# animated attributes can be defined as key(time) = value.
     1.8 +# time defaults to 0 if missing. time values can have an optional s suffix,
     1.9 +# signifying seconds, otherwise they are assumed to be in milliseconds.
    1.10 +#
    1.11 +# string values enclosed in double quotes
    1.12 +# vector values enclosed in square brackets [x y z]
    1.13 +# randomized values have a pair of values/vectors separated by a tilde:
    1.14 +# center ~ range. If the range is missing, it's assumed to be 0.
    1.15 +
    1.16 +# texture: string
    1.17 +texture = "pimg.png"
    1.18 +# spawn_range: track3
    1.19 +spawn_range = [0.3 0.3 0.3]
    1.20 +# rate: track
    1.21 +# life: randomized track
    1.22 +life = 2
    1.23 +# size: randomized track
    1.24 +# dir: randomized track3
    1.25 +dir = [0 0 0] ~ [4 4 4]
    1.26 +# grav: track3
    1.27 +grav = [0 -4 0]
    1.28 +# drag: val
    1.29 +drag = 2
    1.30 +
    1.31 +# particle attributes
    1.32 +# pcolor: track3
    1.33 +pcolor(0) = [1 0.6 0.4]
    1.34 +pcolor(1000) = [0.6 0.3 1]
    1.35 +# palpha: track
    1.36 +palpha(0) = 1
    1.37 +palpha(700) = 1
    1.38 +palpha(1000) = 0
    1.39 +# psize: track