Scene constructor documentation is confusing/inconsistent #1363
Labels
bug
This issue describes undesirable, incorrect, or unexpected behavior
Hacktoberfest
Issues marked for the community Hacktoberfest event https://hacktoberfest.digitalocean.com/
Steps to Reproduce
https://codesandbox.io/s/excaliburjs-reproduction-01-pezj9
Expected Result
The typings for new ex.Scene indicate that it requires an Engine object to be passed in, yet it actually does not. Why is this? I see that the argument is labeled in the Typescript idiom which indicates an unused variable (leading underscore).
Actual Result
Engine is not actually required
Environment
Current Workaround
Use ex.Scene with or without passing an Engine argument
Suggested fix
Either update the documentation to disambiguate proper usage, or correct the typing on ex.Scene
The text was updated successfully, but these errors were encountered: