bryanedds / Nu

Repository hosting the open-source Nu Game Engine and related projects.
MIT License
1.05k stars 152 forks source link

Handle (and test!) spawning effects from tokens. #715

Open bryanedds opened 6 months ago

bryanedds commented 6 months ago

Here -

https://github.com/bryanedds/Nu/blob/master/Nu/Nu/World/WorldEffects.fs#L86-L185

...we need to handle spawning an effect entity similar to how we already spawn (particle) emitter entities.

Also, we need to test this properly.

Finally, it would be interesting to see if we can automatically detect when we're in an emit on emit case in an effect and automatically generate the EffectToken so it will behave as it emit on emit works.