• Home
  • Contact
  • Careers
  • Socialize With Us:
  • Send us Mail
  • Follow us on Twitter
  • Join our Facebook Group
  • /
  • Linkedin
  • /
  • Vimeo Videos
  • /
  • Youtube
  • Subscribe to our RSS Feed
  • Search Site

  • About UsAwards & Bio
  • PortfolioOur Latest Work
  • TrainingTips & Tutorials
  • BlogGreat Articles

You are here: Home / Training / Source Code / PushButtonEngine: Complete Box2D + XML Loading Demo

PushButtonEngine: Complete Box2D + XML Loading Demo

Category: Source Code     |     Tags: PushButtonEngine

I created a new demo. Download it, add your own (free) PBE swc file from Pushbuttonengine.com, and test the demo!

Here is a simple but complete Box2D physics example. A FLA file contains the skins for the 2 objects. XML loads the entities and puts the on the screen. Click with the mouse to create a new Box2D object. Cool!

As an FYI, I built it from the PBE source code (as files) on GIT as of a week before this post. Not sure that matters. Add your own source or swc for PBE to my file (attached).

FLEXIBILITY

* You can change the xml and the main document class easily to adjust the position and number of objects. Go for it!
* You can also comment out the debugger code in the xml (see a comment in that file) to remove the debug-outlines (boxes shown around the box2d objects). The debugger is helpful for learning, but not desirable in your final game.

Next Steps

  • Follow comments and add your own comments on the PushButtonEngine Forums.
  • Question – Click the mouse button. The star shows for 1 frame VERY large, then changes to the desired size. How can I eliminate the odd sizing on that first frame (ideally) or hide (acceptable workaround) the object for that one first frame?
  • Question – The center of the screen is 0,0. How in XML can I make the 0,0 be the upper-left of the stage (like Flash/Flex generally has it). Please test your suggestion in the attached zip and then post your answer here. Thanks so much!

Member Resources

'Free Member'-Only Content

You must be a 'Free Member' to see this content. With your access you will enjoy members-only content like this, HD video tutorials, and access to complete source code.

Ready To Join?
  • Sign up for 'Free Member' level now. Its free!
  • Sign up for 'Paid Member' level to enjoy much, much more! (Invite Only)
Already A Free Member?
  • Log in and enjoy!

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Free Member Login

You are not currently logged in.






» Register
» Lost your Password?

Support Our Sponsors

Category

  • Industry News
  • Standards & Best Practices
  • Full Tutorials
  • RMC News
  • Events

Tag

3D AIR API AS3 AS3.5 Business Experimental Flash Flex Games HTML5 Mobile PushButtonEngine Robotlegs Smash WordPress WordPress Plugin

Brazilean Developers

  • Abendita.com
  • dclick.com.br
  • dm9.com.br
  • Fellyph Cintra
  • IgorCosta.org
  • MonadaSolucoes.com.br
  • PossibleWorldwide.com.br
  • Unit9.com

Developers

  • Adobe Blogs
  • Ben Forta
  • Colin Moock
  • Enrique Duvos
  • Flash Mobile Blog
  • Jess Freeman
  • Kevin Hoyt
  • Lee Brimelow
  • Paul Trani
  • Quasimondo
  • Renaun Erickson
  • Ryan Stewart

Free Assets

  • Free Sounds
  • HasGrafics

HTML5 Games

  • Closure JS Library
  • Eloquent JS Manual
  • Game Framework – CraftyJS
  • Game Framework – EaselJS

Italian Developers

  • alchimedia.com
  • corlan.org/
  • creativesource.it
  • dimix.it
  • fabiobiondi.com
  • gnstudio.com
  • Interpreting-tech.com/bemobile/
  • leonardorisuleo.info
  • lucamascaro.info
  • mart3.org
  • mxml.it
  • nxn.it
  • pirosoft.it
  • Preload.it
  • sonnati.wordpress.com/
  • webgriffe.com

Products

  • Adobe.com
  • Amazon Kindle E-Reader
  • ElectroServer
  • F*CSS
  • Flash Development Toolkit (FDT)
  • O'Reilly PureMVC Book
  • Samsung Galaxy Tablet
  • Unity3D

RMC

  • RMC Consulting

Spanish Developers

  • Flash Adictos
  • HTML Cinqo
  • Tutoriales Flash

Tutorial

  • Active Tuts
  • AS3-to-Unity3D Training Videos
  • Doing 2D in Unity3D
  • Learning C#
  • Unity3D Tutorials

Unity3D Games

  • AS3-to-Unity3D Training Videos
  • Doing 2D in Unity3D
  • Learning C#
  • Matt Eley's Blog
  • Unity3D
  • Unity3D Tools
  • Unity3D Tutorials

I Am Great!

   

Latest Portfolio

  • Happy Birthday Mobile AppMarch 14, 2012, 5:55 pm
  • Official Robotlegs MVCS DiagramFebruary 24, 2012, 1:36 am
  • Health Education Application For WebJanuary 28, 2012, 2:46 am
  • Adobe DevNet’s Flash Gaming Feature ArticleJanuary 27, 2012, 11:49 pm

Latest News

  • Considering Flash-To-Mobile DevelopmentMay 1, 2012, 8:26 am
  • Node.js for Flash & Flex IntroductionApril 1, 2012, 7:50 pm
  • Will HTML5 Ever Catch Up to Flash on Features?March 30, 2012, 5:28 pm
  • Alternativa3D Engine for Adobe Flash Goes Open SourceMarch 29, 2012, 1:56 pm

Latest Tweets (@srivello)

  • How AppsFire Rates Mobile Apps - http://t.co/gklNjn6t
  • MacOSX "Stationery Pad" - Great feature - http://t.co/FZEJibYZ
  • Harvard - 6 Myths of Software Development - http://t.co/D3OTenrm
  • AS3 Developer Considers HTML5 - Overview - http://t.co/3xOyVLVD

© Copyright 2006 - 2012 - Rivello Multimedia Consulting - Flash / Flex / HTML5 Game And App Development With Tutorials