Documentation is the theme of recent news, as I work intensively on updating our manual 🙂
-
Update to user interface page is in progress, using an updated version of examples/component_gallery. It is not yet finished, but I feel it is already better.
-
Documentation about AAB (Android App Bundle) added, documentation about Android signing updated.
-
Some outdated pages have been just removed, as they were outdated and described stuff of low importance (like
TCastleOnScreenMenu
, that is nowadays easier to do as justTCastleVerticalGroup
with a number of buttons). Also the order of pages have been reworked, to put most important things at the top.
Thank you for all the hard work, Michalis et al !
back to the docs
chapter 4 at Designing a 2D world | Manual | Castle Game Engine
As a newb i got it all wrong, so i consider that paragraph ambiguos.
while it is typically a relatively minor concern for games (they usually run full-screen, unless the yhave a floating resizable “portal” windows, like OpenTTS), it was an issue for me, as i was designing a smi-desktop app, working in a usual window, free to any resizing.
So, what would happen if the user freelly resizes the app’s window?
and i did it
and so i let it as zero, because i wanted CGE to respect my aspect ratio. I do not want CGE to ignore the aspect ratio, no!!!
I was not wanting my app “squeezed” by changing its hosting windows aspect ratio!
The bad side effcect was whe nuser was changing the window’s height not width - the elements quickly fallen out of view.
Test shows, though, that is was not the case. CGE would not “squeeze” my worls if i set BOTH .Width and .Height
Okay, common sense says there can be three strategies when fixing both Width and Height:
Frankly, a newb can not be sure which of the strategies CGE implement, and the current wording suggests the last one! It seems to be documented inside https://castle-engine.io/apidoc-unstable/html/CastleCameras.TCastleOrthographic.html#Height - perhaps some text can be copied from there, so mere reading Designing a 2D world | Manual | Castle Game Engine would give immediately correct if shallow idea. And then newb to be suggested to look into .Width for more detailed description.
As you yourself point out, this is documented at
TCastleOrthographic.Width
: https://castle-engine.io/apidoc-unstable/html/CastleCameras.TCastleOrthographic.html#Width . The orthographic width and height are minimum values. So we will not distort / squeeze things, we will not disregard the actual aspect ratio of the viewport. Unless you setTCastleOrthographic.Stretch
to true.The manual page Designing a 2D world | Manual | Castle Game Engine is scheduled for rework anyway, there’s a clear warning there – this is not yet finished, it is supposed to show in more tutorial-like fashion the most useful workflow for designing 2D viewport.