Jump to content

p2Pixi - a simple 2D game object model bridging p2.js and Pixi.js


Tom W Hall
 Share

Recommended Posts

https://github.com/TomWHall/p2Pixi

 

I started this recently as an attempt to bring together two very cool libraries - p2 for 2D physics and Pixi for rendering - in a way where I (and hopefully others now) could quickly put something cool together.

 

Here is my first live demo:

 

http://booleanoperations.co.nz/experiments/p2/buggy/

 

The PixiAdapter class draws heavily on the rendering logic from the p2 demos, but those demos use randomized flat fill colours for the shapes. I've added a means of customizing the p2 bodies which make up each of my GameObjects with their own Pixi styles, including a simple implementation of bitmap-textured shapes, by way of the mask property on sprites.

 

I'm hoping to build some simple PhoneGap games with this.

 

Tom

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...