/src/de/nulldesign/nd2d/utils/ParticleSystemPreset.as
ActionScript | 67 lines | 24 code | 14 blank | 29 comment | 0 complexity | 1194e8e783c0c043e83b328a4bd9d62c MD5 | raw file
1/*
2 * ND2D - A Flash Molehill GPU accelerated 2D engine
3 *
4 * Author: Lars Gerckens
5 * Copyright (c) nulldesign 2011
6 * Repository URL: http://github.com/nulldesign/nd2d
7 * Getting started: https://github.com/nulldesign/nd2d/wiki
8 *
9 *
10 * Licence Agreement
11 *
12 * Permission is hereby granted, free of charge, to any person obtaining a copy
13 * of this software and associated documentation files (the "Software"), to deal
14 * in the Software without restriction, including without limitation the rights
15 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16 * copies of the Software, and to permit persons to whom the Software is
17 * furnished to do so, subject to the following conditions:
18 *
19 * The above copyright notice and this permission notice shall be included in
20 * all copies or substantial portions of the Software.
21 *
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
28 * THE SOFTWARE.
29 */
30
31package de.nulldesign.nd2d.utils {
32
33 import flash.geom.Point;
34
35 public class ParticleSystemPreset {
36
37 public var minStartPosition:Point = new Point(-5.0, 0.0);
38 public var maxStartPosition:Point = new Point(5.0, 0.0);
39
40 public var minSpeed:Number = 100.0;
41 public var maxSpeed:Number = 300.0;
42
43 public var minEmitAngle:Number = 0.0;
44 public var maxEmitAngle:Number = 360.0;
45
46 public var startColor:Number = 0xD60606;
47 public var startColorVariance:Number = 0xD60606;
48
49 public var startAlpha:Number = 1.0;
50
51 public var endColor:Number = 0xF9D101;
52 public var endColorVariance:Number = 0xF9D101;
53
54 public var endAlpha:Number = 0.0;
55
56 public var spawnDelay:Number = 10.0;
57
58 public var minLife:Number = 2000.0;
59 public var maxLife:Number = 3000.0;
60
61 public var minStartSize:Number = 1.0;
62 public var maxStartSize:Number = 1.0;
63
64 public var minEndSize:Number = 1.0;
65 public var maxEndSize:Number = 2.0;
66 }
67}