fireworks-js icon indicating copy to clipboard operation
fireworks-js copied to clipboard

launch a firework explosion at [x,y] without any trace?

Open sentisso opened this issue 1 year ago • 3 comments

Issue

Would it be possible to make just an explosion at certain coordinates without the firework trace?

Example: make an immediate explosion anywhere the user clicks

sentisso avatar Mar 04 '23 10:03 sentisso

This could maybe be achieved by initiating own Explosion? But this object is not exported from the fireworks-js package, therefore I wasn't able to import it.

The problem isn't that this is not achievable with the source code of the library, but this is not achievable with the library's API.

sentisso avatar Mar 04 '23 11:03 sentisso

The reason I wasn't able to partly achieve the custom explosion coordinates: #102

sentisso avatar Mar 04 '23 11:03 sentisso

@sentisso Hi! No, but it is possible to implement

fireworks.launch(count)
// or
fireworks.launch({ count, x, y, withTrace })

crashmax-dev avatar Mar 04 '23 21:03 crashmax-dev