Home Page Downloads Order Community Support
 

 

 
 

 

 

 

 
 

Example Source Codes


     This is just 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. If you're looking for more source code / tutorials & media then remember to visit the PlayBasic Resource board on our forums.



Found #105 items in this category


Title Tree Parallax
Category All,Effects,Fonts
Author Kevin Picone
Date 19,Jun,2011
Description      This little demo builds old school parallax effect with a bunch of trees, the effect is not the interesting part really. It's that rather than use images/sprites the tree images are converted into a font (CRF), so the rows of trees are drawn as strings..
Download




Title 4 Way Map Movement (Moving through tunnels)
Category All,Maps,Collision
Author Kevin Picone
Date 28,May,2011
Description      This example lets the user navigate an object through a map. The object is only allowed to move in 4 directions and the object is assumed to be the same size as a map tile.

     The path ways through the map must also be a single block in size, so the object fits tightly. Normally this would mean moving through the tunnel would require pixel perfect navigation. To counter this, the movement code takes two approaches. Firstly, there's check to see if the object is able to move in the requested direction. So when the player presses up, we check the tile above, if that's empty they're allowed to move up. If that fails. We fall into a second phase, where we look at the tiles above and the left/right of our current position. If one of those is empty, then we then translate the user up request, into either a left or right movement. Which will slide them into position.

     Code built with PB1.64N beta 4 (may need changes for older versions)

Download




Title Tron
Category All,Games
Author Kevin Picone
Date 26,May,2011
Description      This example is simple tron/snake styled game where the players must control the dot without it crossing over the trail it leaves behind. The version of the game uses line intersection to suss out the potential collisions, rather than the normal map/pixel method.

Download




Title Lightning Balls
Category All,Effects
Author Kevin Picone
Date 04,Nov,2010
Description Lightning Ball demo displays a ring of rotating balls connected by a simple lighting/energy effect made out of lines.
Download




Title Sinus Height Map
Category All,3D, Effects
Author Kevin Picone
Date 04,Nov,2010
Description      This routine rotates and projects a 2d/3d plane of vertex. What's interesting is that rather than this being a static plane, the heights are created real time sine (plasma) formula. This height data is then scrolled across the matrix like table...

     To speed up the rotation time, the projection routine uses common point rotation along the X and Z axis. This means that to rotate a point there's no mult's in the inner loop. It also works just dandy for 3D axis rotation also, more so actually.
Download




Title Fireworks
Category All,3D,Effects
Author Crystal Noir, Kevin Picone
Date 04,Nov,2010
Description      Fireworks is a 3d particle effect simulating a fireworks displays.
Download




Title Find Me
Category All, Beginner, Games
Author Micky4fun
Date 31,Oct,2010
Description      A cool little radar inspired game.
Download




Title MD5 Library No Pic
Category All,Libraries
Author Empty
Date 02,Oct,2010
Description     MD5 Hashing Library for PlayBasic

    Visit for usage instructions.

Download




Viewing Page [1] of [13]

Back - Next

Want More Source Codes?:



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

 

 
     
 
       

 

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