3 ms·
Am I weird that I enjoy HTML/CSS for GUI and Layout? With CSS grid of course. Hell I love Godot, but the fact that you can't do something as simple as give a co
by MaybeItsMia 4y ago
Am I weird that I enjoy HTML/CSS for GUI and Layout? With CSS grid of course. Hell I love Godot, but the fact that you can't do something as simple as give a component a max width is so annoying.
- youessayyyaway 4y agoBrowsers are fantastic cross-platform UI frameworks. Writing a local page is a great way to start prototyping. The problem is that they are very slow and resource-hungry. All those dynamic styling and DOM niceties come with a significant cost. WASM can help, but the webdev ecosystem encourages developers to use fat JS libraries for most tasks. Your browser prototype will probably start to chug once it grows to the point that it needs to juggle >1000s of objects. Native apps have the potential to be much more efficient and responsive. They also tend to work better and more consistently on older/cheaper hardware. I think that every website developer should use a $200 Chromebook for development at least a few weeks out of the year. Most of the world is not using a new M2 macbook, and it's easy to lose sight of that when you spend your time working on new features.
- krapp 4y agoYeah, Godot has no concept of a flow layout because for games it doesn't matter, all layouts are fixed anyway. That's definitely something the box model of HTML and CSS do better.
- speps 4y agoA lot games nowadays use some form of HTML/CSS, have a look at Coherent Labs and their products [1] [1] https://coherent-labs.com/products/coherent-gameface/ https://coherent-labs.com/products/coherent-gameface/
- krapp 4y agoObviously games written with HTML and CSS do, but I was specifically referring to non-browser platforms.
- cridenour 4y agoMy usual solution for that problem is parent the control to a HboxContainer with a set width, buts it by no means ideal. Is there a working proposal to add max width? 4.0 would be a good time to add it.