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

Starting game via StartGame method vs. default export has odd results #5

Open
joepetrakovich opened this issue Oct 2, 2024 · 0 comments

Comments

@joepetrakovich
Copy link

joepetrakovich commented Oct 2, 2024

I have no idea what is causing this but when I start my game like in the template using StartGame from a svelte component, the scenes get messed up and it can't find any resources. The scene order gets ignored (it tries to run the Day scene which is last in the scene list). and ultimately the game doesn't load.

If I instead export the new game as a default, the game works fine, but of course it just spits itself out onto the page without attaching to the parent (presumably because the svelte page dom (where the parent div is) hasn't loaded in time.

The only difference is that I built the game and my svelte kit site at different times, so I'm deploying by copying the game project build output into the sveltekit site manually.

Any idea what might cause the breakdown in behavior?

image

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

No branches or pull requests

1 participant