DEV Community

Cover image for What You Need to Know about Web Game Development
Veldrine Evelia Kaharwa
Veldrine Evelia Kaharwa

Posted on

What You Need to Know about Web Game Development

This is a submission for the Web Game Challenge: One Byte Explainer

Explainer

The canvas is a html element that allows drawing graphics and animations in a browser using the CanvasApi for a 2D context or the WebGLApi for a 3D context.
Choosing a game engine for your game generally depends on the type of game you want to build. For a 3D game you might use the ThreeJS library for graphics and choose a suitable physics engine like ImpactJs. For 2D games you might use a 2D game engine like Box2D to build your game.
Almost every game you build must have a game loop to control what happens during gameplay. The game loop is a sequence of processes that run continuously as long as the game is running. The three main processes that occur in the game loop are input, update, and render.

Additional Context

When Building web games, at times the programming language used to implement game logic matters. Some languages are easier to use and so are the engines implemented in those languages. Currently, Web assembly allows browser games to run faster.

By Veldrine Evelia Kaharwa
@Tech-Vexy on Github

Top comments (0)