Building up a basic demo with PlayCanvas

PlayCanvas is a popular 3D game engine for the web that can render projects with WebGL 2 and WebGPU. It is open sourced on GitHub under the MIT license and has a browser-based editor and good documentation. The editor is free to use for public projects, and there are also paid plans that add private projects, more storage, and team management.

PlayCanvas website.

Games and demos

PlayCanvas has a few well-known demos published that showcase its possibilities.

  • Tanx is a multiplayer tank game where you can drive your tank around, shooting at other players as you go.
  • Swooop is a flying game where you pilot your plane around a magical island, collecting jewels and fuel as you go.
  • Visualizations like the Star-Lord and BMW i8 also take advantage of the engine and showcase what's possible.

A list of PlayCanvas demos: Tanx, Swooop, Star Lord, BMW i8.

Note: Check out the list of featured projects to find more examples, or browse the engine examples to see individual features in action.

PlayCanvas engine

Built for modern browsers, the PlayCanvas engine is a fully-featured 3D game engine with resource loading, an entity and component system, advanced graphics features, a physics engine (built with ammo.js), audio, and facilities to handle input from various devices (including gamepads).

The engine itself can be used as a standard library by importing it from a CDN or installing it with npm, so you can start coding right away. PlayCanvas also offers React and Web Components wrappers around the engine, if you'd rather build scenes declaratively.

Check out Building up a basic demo with PlayCanvas engine to see some features in action.

PlayCanvas editor

Instead of coding everything from scratch, you can use the online PlayCanvas editor. This allows you to drag and drop components onto a scene and edit it together with other people in real time. This can be a more pleasant working environment if you are more of a designer than a coder.

See the Building up a basic demo with PlayCanvas editor for details.