This ReactJS Tetris game has literally blown my mind. What's the best way to build games for the web? Are there any frameworks?
Just as with a non-web game, the answer to this will depend highly upon the type and complexity of the game you want to build as well as what hardware you want to support. There are many frameworks out there for building web browser games. You can even use the Unity game engine to build HTML games. There are many mobile app games built using web technologies.
Googling javascript game engine will provide several examples such as https://html5gameengine.com/
Vedran Blazenka
I build web apps with JavaScript, React, ES2015+, Node and other JS libraries!
Hi,
you have a lot of options to pick.
You can pick something simple as canvas or pixi.js, but you will need to code a lot of logic for yourself.
I would recommend Phaser. Phaser is free and open source game framework based on Canvas and WebGL for creating browser and mobile games. The cool thing about Phaser is that you have a lot of things done for yourself, like preloaders, physics, animation, particles, tilemaps etc...
Bonus is a big community around Phaser.
If you want to code your own physics and stuff I would recommend pixi.js for 2D stuff, and Three.js for 3D stuff.
Cheers!