Coder Social home page Coder Social logo

defold-box2d's Introduction

Box2D for Defold

Box2D lua bindings for the Defold Game Engine.

I tried to keep the lua api the same as the c++ api when possible.

If you like the extension you can support me on patreon. It will help me make more items for defold.

Try the demo: https://d954mas.github.io/defold-box2d/

Table of Contents

Installation

1) Add defold-box2d in your own project as a Defold library dependency. Open your game.project file and in the dependencies field under project add: https://github.com/d954mas/defold-box2d/archive/refs/tags/1.0.0.zip

2) Remove Defold engine box2d. If it's not removed there will be a conflict between this box2d and engine box2d. Open your game.project file and in the App Manifest field under Native Extension add manifest.

  1. Use /box2d/manifest.appmanifest, OR
  2. You can generate a manifest yourself https://britzl.github.io/manifestation/

API

Supports emmylua. box2d_header.lua

Box2D

If you need info about how Box2D works, read its documentation. https://box2d.org/documentation/

Box2d version: 2.4.1

Limitations

1) No binding for b2Vec2. Use defold vector(vmath.vector3)

2) No binding for some b2World functions.

void SetContactFilter(b2ContactFilter* filter);
const b2ContactManager& GetContactManager() const;

3) No binding for some b2Joint functions.

virtual void Draw(b2Draw* draw) const;

defold-box2d's People

Contributors

d954mas avatar rgrams avatar

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.