Construct 2 has three kinds of physics engines it uses to run physics operations:
box2dweb: By default, Construct 2 uses the
box2dweb
version of the physics engine. Thebox2dweb
version is based on thebox2d
physics engine; a physics engine is commonly used for native games. Thebox2dweb
version is the JavaScript version of it that's intended to be used for web games.box2dweb asm.js: This is the faster version of
box2dweb
. It usesemscripten
(a technology from Mozilla) that takes C and C++ code and produces JavaScript, creating high-performance JavaScript code as a result. This is what's calledasm.js
, and the browsers that are optimized forasm.js
can translate this code to enable fast performance that you'd get from native C and C++ codes. However, all this happens in your browser.CocoonJS native: This is the physics engine optimized for CocoonJS wrapping. If you don't know about it, CocoonJS is a service that helps you wrap or package HTML5 games...