Box2DCreateJS = Box2d + CreateJS

Box2DCreateJS: Unleashing the potential of Box2D and CreateJS in a unified library

A user-friendly JavaScript library that brings together the power of Box2D 2D Physics Engine with the CreateJS suite of tools and libraries

Ivan Franchin
ILLUMINATION Gaming

--

I am proud to present to you a JavaScript library that I authored several years ago. After being in hibernation for quite some time, I have recently made the decision to unveil it to the world.

Allow me to introduce to you, Box2DCreateJS!

In a few words, Box2DCreateJS is a user-friendly JavaScript library that brings together the power of Box2D 2D Physics Engine with the CreateJS suite of tools and libraries.

In the following sections, I will provide a concise introduction to Box2D and CreateJS. Next, I will highlight the benefits of combining these libraries into a single one. Finally, I will showcase three games that have been implemented using Box2DCreateJS, offering you an opportunity to have fun.

Introducing Box2D and CreateJS

Box2D is a popular open-source physics engine library used for simulating physics in 2D environments. It provides a set of rigid body dynamics and collision detection algorithms that enable realistic physics simulations for games and other interactive applications. Angry Birds, for instance, was developed using Box2D.

CreateJS is a suite of open-source JavaScript libraries that provides developers with tools for creating interactive web content, specifically for 2D graphics and animations. It includes several individual libraries, including EaselJS, TweenJS, SoundJS, and PreloadJS, which can be used independently or together to create interactive HTML5 content.

Box2DCreateJS = Box2D + CreateJS

Combining Box2D and CreateJS in a single game development library offers numerous benefits, such as:

  1. Realistic physics simulations with rich graphics and animations: By integrating Box2D with CreateJS, we can create games with realistic physics-based interactions, such as physics-based movements, collisions, and simulations of real-world physics behaviors, together with visually appealing and rich graphics, smooth animations, and event handling.
  2. Cross-platform compatibility: Both Box2D and CreateJS are JavaScript-based libraries that can run in modern web browsers, making them highly cross-platform compatible. This means that the games developed using the combined library can be played on a wide range of devices, including desktop computers and mobile devices.
  3. Productivity and ease of use: CreateJS provides an easy-to-use and intuitive API for creating graphics and animations in JavaScript, while Box2D offers a well-documented and widely-used physics engine API. By combining the two libraries, we can leverage the strengths of both to simplify game development tasks, increase productivity, and reduce the learning curve for game development.

Box2DCreateJS Games

Currently, on the Box2DCreateJS website, you can find three amazing games:

Feel free to play the games and let me know your thoughts! I warmly welcome any feedback you may have.

That is all!

In case you want to develop your own game using Box2DCreateJS, I’ve written the following tutorials:

Support and Engagement

If you enjoyed this article and would like to show your support, please consider taking the following actions:

  • 👏 Engage by clapping, highlighting, and replying to my story. I’ll be happy to answer any of your questions;
  • 🌐 Share my story on Social Media;
  • 🔔 Follow me on: Medium | LinkedIn | Twitter | GitHub;
  • ✉️ Subscribe to my newsletter, so you don’t miss out on my latest posts.

--

--

Ivan Franchin
ILLUMINATION Gaming

Lead Software Developer with BS and MS in Computer Science. Writing about Java, Spring, software development in general, and emerging technologies.