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

Dev html export not working #2191

Closed
Skeptim opened this issue May 11, 2023 · 2 comments · Fixed by #2209
Closed

Dev html export not working #2191

Skeptim opened this issue May 11, 2023 · 2 comments · Fixed by #2209
Labels
bug platform: html5 For issues affecting browser version of TIC80

Comments

@Skeptim
Copy link

Skeptim commented May 11, 2023

Building the current dev version, the html export doesn't work well.
When I launch the game it works but if I click somewhere else and then I click back on the game it does not work any more.
Also, when the game works there are lines on top and bottom (and not when we click somewhere else).

You can test here: https://skeptim.itch.io/test?secret=qTgF4JuT8Y6AjQ5Jjnd4Htm5PE

html_export_itchio

Note: Others on discord had similar issues. I tried to reproduce theirs to open this github issue but what I get isn't exactly the same.

@Anrock Anrock added platform: html5 For issues affecting browser version of TIC80 bug labels May 12, 2023
@nesbox nesbox added this to To do in dev version 1.1 via automation May 14, 2023
@AlecTroemel
Copy link
Sponsor Contributor

Interestingly, after clicking outside the game window you can get focus back on the game by hitting tab a couple times.

Without knowing how the web build really works, it seems like the canvas is missing an onClick event?

@AlecTroemel
Copy link
Sponsor Contributor

Looking at older builds, we could be missing a onmousedown="window.focus()" on the canvas element

dev version 1.1 automation moved this from To do to Done May 28, 2023
nesbox added a commit that referenced this issue May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug platform: html5 For issues affecting browser version of TIC80
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants