Hi, everyone.
Sorry if this has been asked before but I couldn't find a proper solution.
In my demo, I check WindowHeight so an object will bounce when it gets to the bottom of the screen.
The example works great when not maximized in NW.js window.
If I maximize the NW.js before the sprite gets to bottom it will not bounce like if the Width/Height coordinates have changed.
Is this a default behaviour in the letterbox scale mode?
Here's the CAPX file:
https://www.dropbox.com/s/s989r9o6a8bwy ... .capx?dl=0
Is there a way that I can make this work no matter if the window is maximized or not?
Thank you.
EDIT:
Sorry, guys.
I think it's the "ViewportBottom" expression that I was looking for and not the "WindowHeight".
I come from other non-HTML5 programming languages and I have missed something like:
https://www.scirra.com/tutorials/73/sup ... reen-sizes
Best regards,
Regards,
Andre Guerreiro