Book Image

Learning Construct 2

By : Aryadi Subagio
Book Image

Learning Construct 2

By: Aryadi Subagio

Overview of this book

Table of Contents (17 chapters)
Learning Construct 2
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Types of physics engines in Construct 2


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. The box2dweb version is based on the box2d physics engine; a physics engine is commonly used for native games. The box2dweb 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 uses emscripten (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 called asm.js, and the browsers that are optimized for asm.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...