JavaScript Graphics and Game Frameworks to Inspire in 2021

Jason Sturges
Geek Culture
Published in
6 min readNov 6, 2021

With each year that passes, I’m continuously amazed how JavaScript capabilities and tooling progress. Here are some graphics and gaming framework focused on web delivery to inspire.

Vis.gl

Vis.gl is a suite of composable, interoperable open source geospatial visualization frameworks centered around deck.gl.

Created by Uber, it’s under open governance by Linux Foundation and Urban Computing Foundation.

The vis.gl frameworks are designed for GPU powered geospatial visualization and analytics on the web. The frameworks are designed to be independently usable while following a common style that makes them work seamlessly together.

Deck.gl

WebGL-powered framework for visual exploratory data analysis of large datasets allowing for complex visualizations to be constructed by composing existing layers.

By emulating 64-bit floating point computations in the GPU, deck.gl renders datasets with unparalleled accuracy and performance.

Autonomous Visualization System

Kepler.gl

Powerful open source geospatial analysis tool for large-scale datasets, using Redux to manage state.

Nebula.gl

High-Performance, 3D-enabled GeoJSON editing deck.gl and React.

PlayCanvas

Commercial with open source web-first game engine to collaboratively build stunning HTML5 games and visualizations featuring an in-browser WebGL editor with live updates across multiple devices.

Three.js

Lightweight, cross-browser, general purpose 3D library. The current builds only include a WebGL renderer but WebGPU (experimental), SVG and CSS3D renderers are also available in the examples.

Babylon.js

Real time 3D engine for displaying 3D graphics in a web browser via HTML5 featuring WebGL and WebGPU engines.

Babylon features live samples with code editor via the playground:

Babylon Playground

Phaser

Open source 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.

Pixi.js

2D HTML5 content creation engine.

Cocos2D-X

Open Source Cross-Platform Game Development Framework for 2D and 3D game creation providing rendering, GUI, audio, network, physics, and user input. Also featured is Cocos Creator, a suite of developer tools for game logic and high-performance game creation.

Impact

HTML5 game engine for desktop and mobile, featuring Weltmeister Level Editor that lets you create your game worlds.

MelonJS

Open source HTML5 game engine empowering developers and designers to focus on content, featuring a collection of composable entities.

Platformer example

GDevelop

Open source builder to create games with one-click publishing to web, iOS, Android, Stream, Facebook, Windows store and more.

Construct

Visual scripting with no code required, or optionally combine blocks with JavaScript for further control.

Crafty JS

Flexible framework for Javascript games.

Code Commander example

Kiwi.js

Mobile & desktop browser based HTML5 game framework using CocoonJS for publishing to the AppStore.

Blacksmith 2D

Lightweight HTML 5 2D game engine.

Arcade physics Mario example

Stencyl

Create games without code and publish to iOS, Android, Windows, Mac, Linux, and web.

RPG Maker

Tools and assets for making games for beginners to developers.

D3

JavaScript library for manipulating documents based on data, bring data to life using HTML, SVG, and CSS.

GoJS

Web framework for rapidly building interactive diagrams.

Fabric.js

Canvas library and parser enabling editing through scene manipulation.

Two.js

Two-dimensional drawing api geared towards modern web browsers. It is renderer agnostic enabling the same api to draw in multiple contexts: svg, canvas, and WebGL.

Land on the Moon examples

P5

Empowering artists, designers, students, and anyone to learn to code and express themselves creatively on the web.

Spirograph Example

Note that no frameworks are needed to create amazing HTML5 experiences by leveraging canvas or shaders directly via JavaScript.

Happy Jumping Shader Toy

For more on shaders:

Finally, note that web delivery is possible through other frameworks such as Unity by setting a build target to produce HTML5 WebGL via JavaScript and WebAssembly.

Unity

2D / 3D VR and AR engine for gaming, film, animation, and beyond.

--

--

Jason Sturges
Geek Culture

Avant-garde experimental artist — creative professional leveraging technology for immersive experiences