UnderwareDESIGN

PlayBASIC => Resources => Source Codes => Topic started by: kevin on November 18, 2007, 08:41:33 PM

Title: Perspective Platfomer Example (PBFX)
Post by: kevin on November 18, 2007, 08:41:33 PM
   Perspective Platformer Demo (Using Perspective Sprites)

    This is the standard platform demo from way back converted to use PBFX 1.71c's perspective sprite rendering.    Which is a feature of PBFX 1.7x editions of PlayBasic.  Perspective rendering has various rotation modes.   In this one (perspective 2D), it will render the sprite scene down the z axis.  So the camera can zoom in/out and spin on the Z axis but not on the X/Y axis.  There's other rotation modes (i.e. full 3D) but this one is a lot simpler for 2D game scenes (no axis flipping! )  and therefore a lot more plug and play friendly!



Download

 [plink]Perspective Platfomer Example (http://www.underwaredesign.com/files/pub/PlayBasic/Examples/UW/2D_Perspective_Platformer_Example.zip)[/plink]  (Source Code)



Video

   This is a little 30second video capture (3.4 meg - DivX5.1) of the perspective platformer demo running in PBFX 1.71.   The demo includes 7 backdrop layers,  particles, pixel perfect collision, alpha overlays etc   All drawn from a top down perspective.

   



 [plink]Download Platformer Video (http://www.underwaredesign.com/files/demos/PB171_Perspective2DPlatformer.zip)[/plink]