Skip to content

Commit 9a97158

Browse files
committed
Update README.md
1 parent 7a721d6 commit 9a97158

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,22 @@ fake_explosion.explode_particles = true
4949
get_tree().get_nodes_in_group("fake_explosion_particles")
5050
```
5151

52+
You can change the colors of the particles, but you have to change them inside the script. They are set in `particles_colors_with_weights`.
53+
54+
The colors of the particles are chosen randomly depending on *weights*. If you want a color to have more probabilities to be chosen, give it a greater *weight*.
55+
56+
These are the defaults:
57+
58+
```
59+
var particles_colors_with_weights = [
60+
[4, Color("#ffffff")],
61+
[2, Color("#000000")],
62+
[8, Color("#ff004d")],
63+
[8, Color("#ffa300")],
64+
[10, Color("#ffec27")]
65+
]
66+
```
67+
5268
## Parameters
5369

5470
![Godot-3-2D-Fake-Explosion-Particles-Parameters](examples/parameters.png)
@@ -150,3 +166,21 @@ If set to `true`, the particles will explode.
150166
| Name | Type | Description | Default |
151167
| --- | --- | --- | --- |
152168
| `group_name` | `String` | Set the name of the group. | `fake_explosion_particles` |
169+
170+
## Changelog
171+
172+
See [CHANGELOG](CHANGELOG.md).
173+
174+
## Authors
175+
176+
* Me 😛 [hiulit](https://github.com/hiulit).
177+
178+
## Credits
179+
180+
Thanks to:
181+
182+
* [CowThing](https://github.com/CowThing) - For the `_rand_array` function.
183+
184+
## License
185+
186+
[MIT License](LICENSE).

0 commit comments

Comments
 (0)