Skip to content

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

@L1lith

Description

@L1lith

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions