-
Notifications
You must be signed in to change notification settings - Fork 33
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
love.resize is not called when changing the size of the love.js canvas #59
Comments
This should have been solved but see this #16 (comment) |
I saw that when I was searching earlier, but I'm not sure how that can help. All of the things listed in that comment are already implemented in the index.html file, but the love.resize callback is never called (not even once). Is there a way to trigger love.resize from javascript? |
To call lua (e.g. love.resize) from JS and vice versa, check out the Love.js API player, referenced in #26 |
I've been using that to make fmod work by calling JavaScript from lua, but it's not clear to me by reading the instructions how to call lua functions from JavaScript. |
You can use This is a bit of a hack. We could see about implementing |
I'll try that, thanks! |
I just ported my game to love.js (it was a bit tricky because I'm also using fmod), and I noticed that
love.resize
is not called when the love.js canvas is resized (including when going to fullscreen mode). I havet.window.resizable = true
inconf.lua
and I tried on chromium and firefox on Linux.Is this the expected behaviour? This seems to be a similar issue to #33 (I also get blurry fullscreen because love.resize is not called), but my understanding by reading the comments there is that setting
t.window.resizable = true
should lead tolove.resize
being called when changing the canvas size.The text was updated successfully, but these errors were encountered: