All Projects → anko → image-to-box2d-body

anko / image-to-box2d-body

Licence: other
proof-of-concept game build pipeline for converting an image to a Box2D body

Programming Languages

javascript
184084 projects - #8 most used programming language
Makefile
30231 projects
HTML
75241 projects

Projects that are alternatives of or similar to image-to-box2d-body

Windfield
Physics module for LÖVE
Stars: ✭ 254 (+958.33%)
Mutual labels:  physics, box2d
Physicslayout
Android layout that simulates physics using JBox2D
Stars: ✭ 658 (+2641.67%)
Mutual labels:  physics, box2d
Apple Music Animation
Apple music animation demo in Android
Stars: ✭ 153 (+537.5%)
Mutual labels:  physics, box2d
PyAbel
A python package for Abel and inverse Abel transforms
Stars: ✭ 74 (+208.33%)
Mutual labels:  physics
convert
The smallest & fastest library for really easy, totally type-safe unit conversions in TypeScript & JavaScript.
Stars: ✭ 47 (+95.83%)
Mutual labels:  convert
cellpy
extract and tweak data from electrochemical tests of cells
Stars: ✭ 46 (+91.67%)
Mutual labels:  physics
ux-animate
A simple but powerful tweening, spring physics, animation library for Rust
Stars: ✭ 19 (-20.83%)
Mutual labels:  physics
MarbleBlast
A web port of Marble Blast Gold and Marble Blast Platinum.
Stars: ✭ 71 (+195.83%)
Mutual labels:  physics
arpes
Mirror of PyARPES (gitlab/lanzara-group/python-arpes) the open source ARPES analysis framework
Stars: ✭ 21 (-12.5%)
Mutual labels:  physics
mcSIM
Code for running a multicolor structured illumination microscopy (SIM) experiment using a DLP6500 digital micromirror device (DMD) and performing SIM reconstruction.
Stars: ✭ 19 (-20.83%)
Mutual labels:  physics
phaser-cat
A 2D top-down shooting game, built with phaser + box2d plugin
Stars: ✭ 17 (-29.17%)
Mutual labels:  box2d
Berry
Berry is a simple Tiled Map Loader for Corona SDK.
Stars: ✭ 16 (-33.33%)
Mutual labels:  physics
json2codable
A command line tool to generate a Swift Codable struct from a JSON document
Stars: ✭ 19 (-20.83%)
Mutual labels:  convert
qTsConverter
A simple tool to convert qt translation file (ts) to other format (xlsx / csv) and vice versa
Stars: ✭ 26 (+8.33%)
Mutual labels:  convert
autosvg
Autosvg is tracing tool, which can convert image format like (jpg,png,gif) into vector
Stars: ✭ 35 (+45.83%)
Mutual labels:  convert
aushape
A library and a tool for converting audit logs to XML and JSON
Stars: ✭ 37 (+54.17%)
Mutual labels:  convert
workshop
Workshop: Micromagnetics with Ubermag
Stars: ✭ 19 (-20.83%)
Mutual labels:  physics
SpinMonteCarlo.jl
Markov chain Monte Carlo solver for lattice spin systems implemented by Julialang
Stars: ✭ 35 (+45.83%)
Mutual labels:  physics
cashaddress
Python tool for convert bitcoin cash legacy addresses
Stars: ✭ 40 (+66.67%)
Mutual labels:  convert
pem-dataset1
Proton Exchange Membrane (PEM) Fuel Cell Dataset
Stars: ✭ 48 (+100%)
Mutual labels:  physics

How to convert drawn images into Box2D objects

This question nerd-sniped me hard, so I went on a magical journey to figure out how to turn a drawn raster image into Box2D objects.

sword and wand → this pipeline → box2d sword and wand

This proof of concept expects to find an input file input.png in this project root directory. Then run make.

You should find a bunch of intermediate formats in out/ and if you open game.html, you should see a Box2D debug view with your objects loaded.

See the makefile for how the build steps work.

Dependencies:

  • make

  • Node.js and npm

    Run npm install in the project root directory to download Node.js dependencies to the local node_modules directory.

  • Inkscape

  • potrace

  • ImageMagick (convert and mogrify)

License

CC0 license

To the extent possible under law, I waive all copyright and related or neighbouring rights to this work.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].