-
Notifications
You must be signed in to change notification settings - Fork 61
Emscripten support #52
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
base: master
Are you sure you want to change the base?
Conversation
- Fix stuttering in background: use emscripten_sleep() only to yield
I mean, cool and all, but the mouse pointer has coordinate mapping issues for me on your web test link. It makes it quite unusable so far... |
@8bitbubsy well, that's not the only problem(as per the notes). The mapping issue must be both from the scaling factor and canvas event translation. I know I'm still taking baby steps. Just wanted to get your attention and see if the Emscripten support is something you'd be interested. I don't mind maintaining a separate fork. Close the PR if you think it's not worth it. Leave it open if it looks promising. Well, I've never used the original FT myself, but I quite don't understand why ft2-clone is so reliant on mouse when the original is from the 90's. Just a thought, not trying to troll or anything. |
As long as it's a nice and simple patch that doesn't change the behavior of the FT2 clone on other platforms, I'll merge it eventually if you manage to iron out the bugs. :) The FT2 clone is reliant on the mouse just like original FT2, simply because it tries to be a copy of FT2. If you want less mouse-driven trackers, there are probably some alternatives out there. |
I wonder if this is the same bug that causes the mouse to stop working when changing the scale factor under Linux (NixOS, sway) |
Recommend me a good track to include in the demo. The one I picked kinda sucks. No disrespect for the author, though. It will require some code change, mostly I suspect the fix could be something as simple as ignoring the scaling factor depending on the platform. The whole scaling factor thing is not really necessary for web. The factor is probably being applied twice. I don't know about Sway. |
Spent couple hours to troubleshoot. Turns out, it wasn't the scaling factor. See dxdxdt@4b635a7. DO NOT merge. I still don't like how https://snart.me/demos/emscripten/ft2-clone/ Made a launcher so that you can load any mod off the url like so: https://snart.me/demos/emscripten/ft2-clone/ft2-clone.html?ft2c_load_url=https%3A%2F%2Fapi.modarchive.org%2Fdownloads.php%3Fmoduleid%3D37685%23blue_val.s3m&ft2c_load_filename=blue_val.s3m Remember to flush the cache! (open the dev tool before opening the link/clicking on the button(because Ctrl + Shift + R is captured by the module), check Disable cache in the Network tab, refresh) |
Sharing my experimental Emscripten target support. Try it out:
https://snart.me/demos/emscripten/ft2-clone/
vær så god!