EXAMPLE SOURCE CODES


     This is a small collection of mostly game example source codes. These source codes are made available to help PlayBasic programmers kick start their game programming journey. Looking for more source code / tutorials & media, then remember to visit the PlayBasic Resource board on our forums.

Found #6 items in Scrolling category by Kevin Picone

 Wrap Scrolling

By: Kevin Picone Added: January 30th, 2007

Category: All,Demo,Scrolling,Camera


This example shows how the scene and camera controls in PlayBasic can be used to create (the illusion of) an infinite scrolling worlds, that wrap on the X axis. It works by processing all gfx into the common scene buffer first. Then we work out what sections of the world we can see, set the camera & screen view port area and draw that segment. If the segment was thinner than the screen with, we draw the neighboring another segment and so on. While the demo is only set up to handle wrapping on the X axis, the same method will work on the Y axis, plus any combinations thereof. But that's an experiment for the reader

The demo also includes some basic flying objects. Objects are special case, by that i mean, if an object is intersecting a boundary edge of the world space, we need to draw a refection of this objects gfx to the other side of the world. This will ensure the illusion is seamless.


Download: Login to Download




 Scramble / Terrain

By: Kevin Picone Added: November 13th, 2006

Category: All,Games,Scrolling


The idea with this snippet was to create an infinite scrolling (cough) landscape (cough) and have a ship fly along and blast and bomb it. So that's about all it does. But it looks pretty enough. Have Fun !

Requires: PB1.56 or higher


Download: Login to Download




 Advanced Platform Collision

By: Kevin Picone Added: May 24th, 2006

Category: All,Collision,PLatformer,Scrolling

This is a more advanced platform game collision example. The example makes use the PB's built in world collision support. The example supports for things like sloped floors, falling, jumping and wall collision. Could be tweaked into a game engine. But that's for the 'user' Have fun !




Download: Login to Download




 2D Platfomer In 3D World

By: Kevin Picone Added: January 17th, 2006

Category: All,Games,2.5D,3D,Platformer,Scrolling


This demo is based upon the original 2D platformer example from the PlayBasic example pack, the only difference is that this version projects the 2D scene into 3D space. This lets the player view the 2D game in a 3D space.


Download: Login to Download




 Missile Attack

By: Kevin Picone Added: November 10th, 2004

Category: All,Games,Scrolling


This is one of the very first PlayBasic game examples, it's a Missile Command remake but will a scrolling environment.



Download: Login to Download




 Xenon Multi Player Tech Demo

By: Kevin Picone Added: October 11th, 2004

Category: All,Camera,Games,Scrolling


This is a loose remake of Xenon 2000 scrolling environments, which is a game the bitmap brothers made for magazine series. While the artwork is mostly from that example, all of the code is PlayBasic. The focus of the demo wasn't to make a vertical shoot'em up, but to demonstrate how multi player co-op could achieved.




Download: Login to Download




Viewing Page [1] of [1]



Want More Source Codes?:



Release Type: The source code & tutorials found on this site are released as license ware for PlayBasic Users. No Person or Company may redistribute any file (tutorial / source code or media files) from this site, without explicit written permission.

 

 
     
 
       

(c) Copyright 2002 / 2024 Kevin Picone , UnderwareDesign.com  - Privacy Policy   Site: V0.99a [Alpha]