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

Add GWT support #49

Merged
merged 16 commits into from
May 26, 2022
Merged

Add GWT support #49

merged 16 commits into from
May 26, 2022

Conversation

JamesTKhan
Copy link
Owner

Update Mundus to support projects using the runtime with GWT.

  • Changed ArrayList to Array in several DTO classes due to Json on GWT not supporting ArrayList.
  • Update AssetManager to support reading assets.txt via native JS split methods
  • Pixmap does not support loading binary data in GWT. This causes the terrain splatmap to not appear. The
    solution to this on GWT is to save a Base64 encoded string of the binary pixmap .png file in the Terrains meta file.
    This has the caveat of making the terrain meta files a little larger (~100kb). Then we use Pixmap.downloadFromUrl to load the image.

MundusRuntimeExample running on browser:

image

@JamesTKhan JamesTKhan merged commit f2ccee2 into master May 26, 2022
@JamesTKhan JamesTKhan deleted the gwt-support branch July 9, 2022 03:40
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

Successfully merging this pull request may close these issues.

2 participants