Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Doesn't OpenMW use some form of XML-looking markup for generating UI elements? Shoot, doesn't every other GUI program do this too?
One time, I said I'll just do everything with straight up C and OpenGL. Don't remember how that went. I got sidetracked and stopped working on it. -
atheist99824dUnlikely. If you can only render the hud in it, what's the point you've still got to implement/use some way to render the rest of the screen which probably requires click support and so there's probably a button api already built in, so why bother taking on a browser as a dependency because some incompetent script kiddy can't learn a real language? If you try rendering the entire screen in it let me introduce you to this thing called "performance" while your game looks like a slide show.
-
BordedDev264d@atheist click handling was the last of my concerns when I thought about it, dealing with different screen requirements was more what I was thinking about, e.g. DPI, dealing with safe zones and those flavours of fun. Browsers have had plenty of performance for years, probably exceeding Unreal Engine's blueprints when that was originally released. Heck Node has comparable speed to Java if you look at stuff like this (but doesn't scale as well): https://benchmarksgame-team.pages.debian.net/...
-
bevy is a game engine and they have pseudo css currently and planning to do actual css I think (in terms of rendering spec)
but very alpha
i've in the past made games in JavaScript and just put html over them as GUI but it was a bit of work so without a library to do it I wouldn't recommend it. have to figure out coordinates and stuff gluing things together like that, because I had some in-game highlighting for example -
people who write anything else but javascript should be deported to a special re-education camp. And then quartered and hang, sliced in little dice and then the dices should get raped by a bunch of monkey on crack.
-
There was this c++ lib I used way more than 10 years ago named rocket which essentially let you use a subset of html and css to build UIs.
You can do it easily nowadays with chromium embedded framework and off screen buffers.
Most game engines already use CEF in some capacity.
How long before game UI/HUDs will be implemented using HTML/electron/some other shiny web tech to make cross-platform easier? As cursed as it is, it really it's one of the few “complete” packages when it comes to dealing with UI that I'm aware of
question