photonstorm/phaser — pull request #503 by georgiee (2014-03-01 12:58:05+00:00)
Title: Pinball Example & Physics Debug Drawer

Hi Rich,
here the example I worked on to test phaser's physics behaviour including the physics drawer.
This commit is not intended to be merged, but it's the easiest way to send you the files in the right file structure.

Open the files with this url:
examples/_site/view_lite.html?d=wip/pinball&f=merged.js

I created a support file title merged.js so that I can use your example viewer with a single file
merged.js contains those files:
demo.js (actual demo)
pinball.js (pinball example)
physics_debug.js (physics debug drawer)

Here a web preview:
http://georgiee.github.io/phaserpinball/

And my test repo with the source coffee files (including my source comments). Sorry for the coffee.
https://github.com/georgiee/phaserpinball

I think the pinball example is fine in the current coffee compiled version. But if the physics debug drawer would be a nice addition for phaser I would be happy to rewrite it in vanilla js.

The original assets were ripped off an existing pinball game. So I had to really heavily distort the assets for the commit. But it's still recognizable as a flipper ;)

Regards
George