box2d-beef

所属分类:collect
开发工具:Beef
文件大小:0KB
下载次数:0
上传日期:2021-03-19 17:25:08
上 传 者sh-1993
说明:  box2d+liquidfun牛肉编程语言包装器,
(box2d+liquidfun wrapper for the Beef Programming Language,)

文件列表:
.clang-format (2679, 2021-03-19)
BeefProj.toml (1239, 2021-03-19)
BeefSpace.toml (125, 2021-03-19)
LICENSE (1069, 2021-03-19)
box2d-beef.code-workspace (43, 2021-03-19)
build_android.cmd (1039, 2021-03-19)
build_linux.sh (174, 2021-03-19)
build_macos.sh (173, 2021-03-19)
build_windows_vs2019.cmd (1216, 2021-03-19)
csrc/ (0, 2021-03-19)
csrc/b2bodyapi.cc (4892, 2021-03-19)
csrc/b2collision.cc (2181, 2021-03-19)
csrc/b2contact.cc (1789, 2021-03-19)
csrc/b2distanceproxy.cc (851, 2021-03-19)
csrc/b2fixtureapi.cc (2083, 2021-03-19)
csrc/b2jointapi.cc (16013, 2021-03-19)
csrc/b2particlesystemapi.cc (5960, 2021-03-19)
csrc/b2ropeapi.cc (835, 2021-03-19)
csrc/b2shapeapi.cc (2910, 2021-03-19)
csrc/b2timeofimpact.cc (182, 2021-03-19)
csrc/b2utility.cc (526, 2021-03-19)
csrc/b2worldapi.cc (12993, 2021-03-19)
csrc/box2dapi.h (5145, 2021-03-19)
example/ (0, 2021-03-19)
example/BeefProj.toml (126, 2021-03-19)
example/src/ (0, 2021-03-19)
example/src/Program.bf (7821, 2021-03-19)
screenshot.png (27706, 2021-03-19)
scripts/ (0, 2021-03-19)
scripts/box2d.lua (393, 2021-03-19)
scripts/genie.lua (458, 2021-03-19)
src/ (0, 2021-03-19)
src/Base.bf (7029, 2021-03-19)
src/Body.bf (8065, 2021-03-19)
src/Collision.bf (6403, 2021-03-19)
src/Constants.bf (3511, 2021-03-19)
src/Contact.bf (2268, 2021-03-19)
... ...

# [box2d-beef](https://github.com/jazzbre/box2d-beef) box2d wrapper for the Beef Programming Language [box2d](https://github.com/jazzbre/box2d) - Actually a box2d fork with liquidfun merged into it! ## Prerequisites - To initialize submodules run *git submodule update --init --recursive* ## Windows - Visual Studio 2019 Community/Professional (it can be built with other versions though, check build_windows_vs2019.cmd for more information) - To build prerequisites run *build_windows_vs2019.cmd* ## MacOS - To build prerequisites run *./build_macos.sh* ## Linux - To build prerequisites run *./build_linux.sh* ## Usage Open workspace and set Example as Startup project and Run! MacOS/Linux can be built and run with provided VSCode project (expects Beef git clone in the same root folder as this project). The library is pure C wrapper, so no classes, just structs and "pointers" , intended for people who wish to wrap it their own way. Example: ``` b2Vec2 gravity = .(0.0f, -10.0f); var world = World.Create(ref gravity); b2FixtureDef fd = .(); fd.shape = shape; fd.density = 20.0f; fd.friction = 0.1f; for (int i = 0; i < 10; ++i) { b2BodyDef bd = .(); bd.type = .b2_dynamicBody; bd.position = .(-6.0f + 1.0f * i, 11.25f); var body = World.CreateBody(world, &bd); Body.CreateFixture(body, &fd); } ``` ![](screenshot.png) ## Future work iOS and Android build scripts.

近期下载者

相关文件


收藏者