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!

  • one
    canvas / webgl + js quite allow - Vladimir Gamalyan
  • one
    Here's an example feudalwars.net - Vladimir Gamalyan
  • @VladimirGamalian Thanks for the comments! - Alexey
  • look - the framework may be useful - stackoverflow.com/questions/74679/… - spectre_it
  • Cyril awake? - KamikyIT

3 answers 3

Look in the direction of specialized libraries, to develop games on the web, such as Phaser , the site has a lot of examples of the implementation of different game mechanics, as well as a detailed description, though only in English.

    Flash is definitely not worth using. Browsers refuse it, Adode stops updating. By 2020, it will be completely disabled https://www.opennet.ru/opennews/art.shtml?num=46916

    The future is HTML5, WebGL, Canvas!

    • 3
      I will say more, the guys from Adobe, when it got hot, quickly realized what was happening and Adobe Flash evolved into Adobe Animate . Everything is the same in functionality, but now it works under HTML5 Canvas and WebGL. - Alex Krass

    A ready-made solution in the field of multiplayer games on one of the most popular game engines, Unity3D, can help you. It has a very popular asset that allows you to create multiplayer games - Photon .

    In the past, we released the game on it.