Giter Club home page Giter Club logo

easelbox's Introduction

EaselBox

EaselBox is a Javascript wrapper for the EaselJS canvas rendering library and the Box2dWeb physics engine. It makes it easy to create objects that have Box2d’s physics, as well as Easel’s powerful rendering capabilities.

EaselBox adds convenience methods to create those objects, as well as giving you direct access to the underlying EaselJS and Box2dWeb entities if you’d like to manipulate them directly.

Examples

jeff-cole-projects.herokuapp.com/easel_box2d

To run examples locally

cd server
npm install
node app.js  
open browser to http://localhost:3000

Usage

In addition to your own JS files, you need to require the following:

easel.js
Box2dWeb-2.1.a.3.min.js (or later)
easelBox.js

To re-build source

cake build

Docs

EaselJS API easeljs.com/docs/

Box2dWeb code.google.com/p/box2dweb/

Box2d API www.box2dflash.org/docs/2.1a/reference/

easelbox's People

Contributors

jcole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

easelbox's Issues

Setting gravity to newly created entity

Hi there,

I hope this isn't a bad question, but I couldn't really understand your application of forces in the gravity tutorial.

With the following code:

                    var obj = _this.world.addEntity({
                        imgSrc: 'enemy.png',
                        radiusPixels: 20,
                        xPixels: Math.floor(Math.random() * canvas.width),
                        yPixels: 0,
                        //angleRadians: 45,
                        angularVelRadians: 10
                    });

How can I set the gravity of the newly created object to something like 0.5?
obj.body.ApplyForce(0,0) // for example, made everything mess up

I don't really understand the concept at the moment, a quick explanation would get me back on track.

Thanks for the great library :)

joints?

Hi

Are you working on adding joints to this wrapper? Any ideas on how to implement them?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.