I can not figure out the question of whether the technology allows you to write an analog 2D game "Age of empires 2" for the browser? (Construction of buildings in any suitable place, mining, ordering troops, settling the troops, battles, etc.) What technologies have the opportunity to create such a game? As far as I understand technologies html5 + javascript + css will not allow it. All that I found was very primitive.
As far as I understand, Flash games are suitable for implementing such a game?
Also, Unity has the ability to export the game to work in the browser, but has not yet been able to understand what the limitations for such a game will be.
In general, I would like to understand what is the best way to write such a game, so that it has the opportunity to play in the browser. Thank!