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

[Feature request] Custom integration for SSR/hot reloading/etc, likely for Astro #1134

Open
L1lith opened this issue Sep 18, 2022 · 1 comment
Labels

Comments

@L1lith
Copy link
Contributor

L1lith commented Sep 18, 2022

It would be really cool to have custom Astro integration.

Is your feature request related to a problem? Please describe.
Yes, currently melonJS has no SSR support. If we added custom SSR support we could pre-render the game to a static image and send that to the client so they can see the level before the JS has finished loading. Also we could do things like convert the TMX file to JSON automatically during build time or development so the dev could have hot reloading (though I'm not sure where this is at with regards to Astro's API). These features would pair really nicely with JSX support like melon-solid (though that lib kinda needs some work atm). We could also do automatic texture packing (so users could just import normal images and everything just works).

Describe the solution you'd like
Some kind of plugin for the Astro Integration API most likely though it could be something else

Describe alternatives you've considered
We could also integrate into Next.js or Gatsby, they're likely more popular (though I'm biased towards Astro a little probably but it does have some nifty features)

@L1lith L1lith added the Feature label Sep 18, 2022
@L1lith L1lith changed the title [Feature request] Custom Astro integration for SSR/hot reloading [Feature request] Custom Astro integration for SSR/hot reloading/etc Sep 18, 2022
@L1lith L1lith changed the title [Feature request] Custom Astro integration for SSR/hot reloading/etc [Feature request] Custom integration for SSR/hot reloading/etc, likely for Astro Sep 27, 2022
@L1lith
Copy link
Contributor Author

L1lith commented Oct 5, 2022

It would also be super dope to inject preload links to load the assets (like images etc) before the JS even loads. That way by the time the game needs these assets they will either be already finished downloading or at least have a decent head start.

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

No branches or pull requests

1 participant