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 #23 items in Effects category

 Sinus Height Map

By: Kevin Picone Added: November 4th, 2010

Category: All,3D, Effects


     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: Login to Download




 Fireworks

By: Crystal Noir, Kevin Picone Added: November 4th, 2010

Category: All,3D,Effects


     Fireworks is a 3d particle effect simulating a fireworks displays.
Download: Login to Download




 Exploding Shapes

By: Kevin Picone Added: October 30th, 2009

Category: All,Shapes,Effects


    An example that shows how a explode a wire frame shape Asteroids style


Download: Login to Download




 Mirrored Floor

By: Kevin Picone Added: September 10th, 2009

Category: All, Graphics, Effects


This example creates the illusion that a perspectively zooming image (in this case a Pb logo) is casting a reflection upon a tiled floor.
Download: Login to Download




 Timer Based Reveal Effects

By: Kevin Picone Added: July 3rd, 2009

Category: All,Timing,Effects


This set of examples show some slide show style reveal/wipe effects. Which include a circular (lode runner style), block based (pictured bellow) plus some (Horizontal/Vertical/Diagonal) wipes .
Download: Login to Download




 Shape Tunnel

By: Kevin Picone Added: July 25th, 2008

Category: All,Effects,Shapes


Renders perspective tunnel effect using the drawshape commands line mode.
Download: Login to Download




 Thesius XIII - Forest Blast

By: Kevin Picone Added: May 6th, 2007

Category: All,Games, 2.5D, Demo,Alpha Blending,Effects


[INDENT]Thesius XIII is one of the more recent example games and is shipped as part of the PlayBasic package. The game is an unofficial follow up to a game I wrote on the Amiga called Thesius XII. [BR][BR]

Download: Login to Download




 Torch Flame #2

By: Ian Price Added: February 12th, 2007

Category: All,Effects,Demo


A (very) simple torch flame demo. Shows 100 flaming torches on screen. As you can see by my screenshot, I was able to run this at 450+FPS.

This is a simplified version of my flame routine in my Sorcery game. It's not doing anything big or clever, and it's not particularly realistic, but it gives a pretty good impression of a fire (changing the colours in the animation strip might make it look more realistic, but I needed a cartoon-styled flame to fit my game).


Download: Login to Download




Viewing Page [2] of [3]



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]