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

Can WebAssembly (Wasm) be supported to run in environments without DOM, such as in WeChat Mini Programs? #3048

Closed
1 of 11 tasks
zhanjunjie2019 opened this issue Jul 22, 2024 · 1 comment

Comments

@zhanjunjie2019
Copy link

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

What feature would you like to be added?

Currently, I'm attempting to run a game using Wasm in WeChat or Douyin Mini Programs. However, due to the absence of DOM in this environment, it results in the following error message.

image

I found that the issue lies in "ebiten\internal\ui\ui_js.go", where using "js.Global().Get("window")" results in obtaining undefined. Could you provide support that is compatible with such environments?

Why is this needed?

No response

@hajimehoshi
Copy link
Owner

Ebitengine uses a canvas so cannot support an environment where this doesn't exist.

@hajimehoshi hajimehoshi closed this as not planned Won't fix, can't repro, duplicate, stale Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants