Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implementing box2d plugin #140

Open
bhnh opened this issue Jan 7, 2020 · 5 comments
Open

implementing box2d plugin #140

bhnh opened this issue Jan 7, 2020 · 5 comments

Comments

@bhnh
Copy link

bhnh commented Jan 7, 2020

I have purchased both Phaser Editor and the Phaser Box2d plugin. When I try to run the Box2d examples, I'm told I need the plugin. How do I implement the plugin so I can view the Box2d examples?

@PhaserEditor2D
Copy link
Owner

Hello @bhnh

What version of Phaser are you using?

@bhnh
Copy link
Author

bhnh commented Jan 7, 2020 via email

@PhaserEditor2D
Copy link
Owner

Hi!

We cannot bundle the Box2D plugin inside Phaser Editor, it is a product from Phaser.io. But you can create a Phaser Editor project based on the Box2D example and add the Box2D runtime yourself.

For example:

  1. Create a Box2D example project:

image

  1. Copy the Box2D plugin runtime in the project's lib folder. In my case, I am using the runtime provided in the Phaser 2 examples:

image

  1. Load the Box2D plugin runtime in the index.html file of your project:

image

  1. Run the game.

Again, I used here the Box2D runtime provided by the Phaser examples, but you should follow the instructions provided by the Box2D plugin documentation.

@PhaserEditor2D
Copy link
Owner

I attach here the final project:
Bullet Bodies.zip

@PhaserEditor2D
Copy link
Owner

Is this working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants