
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@akashic-extension/akashic-box2d
Advanced tools
akashic-box2d は、2D物理演算ライブラリであるBox2DWebをAkashicで利用するためのモジュールです。
本モジュールでは、AkashicでBox2DWebを使う際に便利となるよう、次の機能を提供します。
本モジュールは AkashicとBox2DWebとの紐づけ と 一部の便利機能 のみを提供しています。 そのため、その他多くの機能はBox2DWebを直接利用することになります。
akashic-cliをインストールした後、
akashic install @akashic-extension/akashic-box2d
でインストールできます。コンテンツからは、
var b2 = require("@akashic-extension/akashic-box2d");
で利用してください。 詳細な利用方法については、以下を参照してください。
Akashic Engineの詳細な利用方法については、 公式ページ を参照してください。
akashic-box2d はTypeScriptで書かれたライブラリであるため、ビルドにはNode.jsが必要です。
npm run build によりgulpを使ってビルドできます。
npm install
npm run build
npm test
Box2DWebでは Math.random() が使われている箇所があります。(該当メソッド: Box2D.Common.Math.b2Math.Random() , Box2D.Common.Math.b2Math.RandomRange() )
該当メソッドは利用せず、かわりに g.game.random を利用してください。
本リポジトリは MIT License の元で公開されています。 詳しくは LICENSE をご覧ください。
ただし、画像ファイルおよび音声ファイルは CC BY 2.1 JP の元で公開されています。
また、本リポジトリの patch/index.js のライセンスはファイル中記述されています。そちらをご覧ください。
FAQs
Box2D physics engine for Akashic
We found that @akashic-extension/akashic-box2d demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.