Get started with playcanvas CDN
MIT licensed
Open-source 3D engine/framework in JS by PlayCanvas, creates interactive 3D content with WebGL.
Tags:- 3D
- 2D
- VR
- WebGL
- WebGL2
- game
- engine
- HTML5
- browser
- typings
Stable version
Copied!
How to start using playcanvas CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with playcanvas CDN - cdnhub.io</title>
<style>
body { margin: 0; }
canvas { width: 100%; height: 100%; }
</style>
</head>
<body>
<script src="https://cdn.cdnhub.io/playcanvas/1.69.2/playcanvas.min.js"></script>
<script>
PCScene.create('myScene', function(engine) {
var camera = new PCCamera();
camera.position.z = 10;
var boxGeometry = new PCGeometry.Box(1, 1, 1);
var boxMaterial = new PCStandardMaterial();
var box = new PCEntity(engine, boxGeometry, boxMaterial);
box.position.x = 0;
box.position.y = 0.5;
engine.root.add(camera);
engine.root.add(box);
engine.run();
});
PCScene.start('myScene');
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
All versions
1.24.4
1.24.5
1.24.6
1.24.7
1.25.0
1.25.1
1.25.2
1.25.3
1.26.0
1.26.1
1.27.0
1.27.1
1.27.2
1.27.3
1.27.4
1.28.0
1.28.1
1.28.2
1.28.3
1.28.4
1.28.6
1.29.0
1.30.0
1.31.0
1.32.0
1.32.1
1.32.2
1.32.3
1.32.4
1.33.0
1.33.1
1.34.0
1.35.0
1.35.1
1.35.2
1.35.3
1.36.0
1.36.0-dev
1.36.1
1.36.2
1.37.0
1.37.1
1.38.0
1.38.1
1.38.2
1.38.3
1.38.4
1.39.0
1.39.1
1.39.2
1.39.3
1.39.4
1.40.0
1.40.1
1.40.2
1.40.3
1.40.4
1.40.5
1.41.0
1.41.1
1.41.2
1.42.0
1.43.0
1.43.1
1.44.0
1.44.1
1.44.2
1.45.0
1.45.1
1.45.2
1.45.3
1.46.0
1.46.1
1.46.2
1.46.3
1.46.4
1.46.5
1.47.0
1.47.1
1.47.2
1.48.0
1.48.1
1.49.0
1.49.1
1.49.2
1.49.3
1.49.4
1.50.0
1.50.1
1.50.2
1.51.0
1.51.1
1.51.2
1.51.3
1.51.4
1.51.5
1.51.6
1.51.7
1.52.0
1.52.1
1.52.2
1.52.3
1.52.4
1.52.5
1.52.6
1.53.0
1.53.1
1.53.2
1.53.3
1.53.4
1.54.0
1.54.1
1.55.0
1.55.1
1.55.2
1.55.3
1.55.4
1.56.0
1.57.0
1.57.1
1.58.0
1.58.1
1.58.2
1.59.0
1.60.0
1.61.0
1.61.1
1.61.2
1.61.3
1.62.0
1.62.1
1.62.2
1.63.0
1.63.1
1.63.2
1.63.3
1.63.4
1.63.5
1.63.6
1.64.0
1.64.1
1.64.2
1.64.3
1.64.4
1.65.0
1.65.1
1.65.2
1.65.3
1.65.4
1.65.5
1.66.0
1.66.1
1.66.2
1.66.3
1.67.0
1.67.1
1.67.2
1.67.3
1.68.0
1.68.1
1.68.2
1.69.0
1.69.1
1.69.2
1.70.0
1.70.1
1.70.2
1.70.3
1.71.0
1.71.0-dev
1.71.1
1.71.2
1.71.3
1.71.4
1.71.5
1.71.6
1.72.0
1.72.1
1.73.0
1.73.1
1.73.2
1.73.3
1.73.4
1.73.5
1.74.0
2.0.0
2.0.0-alpha.0
2.0.0-alpha.1
2.0.0-alpha.2
2.1.0
2.2.0
*** 2.2.1