in any case i also could not find it in the reference or guide, in general (a note for @john26, @ar2rsawseen) it's hard to find information about events in the reference. some of them is explained here but not all: http://docs.giderosmobile.com/events.htm but i think everything should be in the reference page (and it should be searchable in the longterm)
@kezegh, you are right this event needs to be added to the docs. I was also thinking of adding a new section listing all the graphics objects (Sprites) and one on the sound system.
@chimmihc, probably you are already aware but in the simplest case there is no need for you to do anything when the user resizes the window. The app will simply resize within the window according to the scale mode you use. Letterbox scaling is probably the best as stretch can product highly distorted results if showing a portrait game in a landscape window for example (eg if the user maximises the window to fill a typical landscape screen).
You can test this within the Gideros Desktop Player by setting autoscale from the hardware menu. Then, just drag the sides of the window (or maximise) to see the effect.
However, note that if you export using Windows Desktop or Mac Desktop and you have set "window size" (in the project properties dialog, see attached) to non-zero values, then the window will be fixed size and the user cannot resize it.
If you export with "window size" to (0,0), the window will initially be the logical dimensions size and the user can resize.
So for simple resizing you don't need to do much, but if you want to change the layout of your app you obviously need to respond to events.
Comments
Likes: oleg
Fragmenter - animated loop machine and IKONOMIKON - the memory game
http://docs.giderosmobile.com/events.htm
but i think everything should be in the reference page (and it should be searchable in the longterm)
Fragmenter - animated loop machine and IKONOMIKON - the memory game
http://docs.giderosmobile.com/automatic_screen_scaling.html
Likes: keszegh
@chimmihc, probably you are already aware but in the simplest case there is no need for you to do anything when the user resizes the window. The app will simply resize within the window according to the scale mode you use. Letterbox scaling is probably the best as stretch can product highly distorted results if showing a portrait game in a landscape window for example (eg if the user maximises the window to fill a typical landscape screen).
You can test this within the Gideros Desktop Player by setting autoscale from the hardware menu. Then, just drag the sides of the window (or maximise) to see the effect.
However, note that if you export using Windows Desktop or Mac Desktop and you have set "window size" (in the project properties dialog, see attached) to non-zero values, then the window will be fixed size and the user cannot resize it.
If you export with "window size" to (0,0), the window will initially be the logical dimensions size and the user can resize.
So for simple resizing you don't need to do much, but if you want to change the layout of your app you obviously need to respond to events.
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
how to get the window size?
How do I know about resizing without restarting the game?
Likes: MoKaLux
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
does not work eitherthe old method works:
Likes: MoKaLux
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!
Likes: oleg, keszegh, MoKaLux
Likes: MoKaLux
https://play.google.com/store/apps/developer?id=razorback456
мій блог по гідерос https://simartinfo.blogspot.com
Слава Україні!