Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sentisso opened this issue Mar 4, 2023 · 3 comments
Open

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

sentisso opened this issue Mar 4, 2023 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@sentisso
Copy link
Contributor

sentisso commented Mar 4, 2023

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 sentisso added the question Further information is requested label Mar 4, 2023
@sentisso sentisso changed the title launch a firework at [x,y] without a trace? launch a firework explosion at [x,y] without any trace? Mar 4, 2023
@sentisso
Copy link
Contributor Author

sentisso commented Mar 4, 2023

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
Copy link
Contributor Author

sentisso commented Mar 4, 2023

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

@crashmax-dev
Copy link
Owner

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants