News for hackers. Stuff that matters.
Re:State of JavaScript 2020 by preommr on Friday January 15, 2021 @08:38PM (#25799059)
> including in AAA videogame UI

elaborate, please, because this sounds so bizarre.

Are they bundling an entire web view and then interfacing it with their game engine? Not only is the tech conceptually weird, I can't think of too many AAA games that have very complex UIs other than maybe the CK series.

Re:State of JavaScript 2020 by turtlebits on Saturday January 16, 2021 @12:17AM (#25800254)
A lot of games have storefronts for DLC. I've seen these used as webviews, especially payment forms.
Re:State of JavaScript 2020 by Pfhreak on Saturday January 16, 2021 @10:22AM (#25802741)
Yes, it was two Svelte apps. One for the menus and one for the in game ui/hud elements. Things like health bars, reticles, ability timers, etc.

The interface between the game engine was designed to be as decoupled as possible. The UI could run in a browser with a mocked game underneath it, which allowed the UI devs to iterate very quickly. This also has the advantage of allowing UI to be built before the game had a feature implemented.

Re:State of JavaScript 2020 by Macha on Saturday January 16, 2021 @09:04AM (#25802198)
It doesn't surprise me. 5 years ago the standard solution was Scaleform, which is pretty much the same thing but with Flash.
Re:State of JavaScript 2020 by vbezhenar on Saturday January 16, 2021 @09:06AM (#25802211)
It might be for main menu. I think that WC3 reforged used webview for its menu.
Re:State of JavaScript 2020 by Pfhreak on Saturday January 16, 2021 @10:23AM (#25802748)
Main menu but also in game UI. Ability timers, weapon reticles, health bars, etc.