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 #2 items in Demos category

 Meta Balls - Light Blobs

By: Kevin Picone Added: April 22nd, 2016

Category: All,Demos,Videos,Effects,Alpha Blending

Meta Balls - Light Blobs

This example recreates a popular demo effect known as meta balls/blobs. The scene is calculated by working out the amount of energy that each pixel receives from the surround 'blobs' or lights. The more lights the more work each pixel has to be do.

So if you did all the work (calc the distance etc) in the inner most loops, you’d get a pretty heavy per pixel calculation. Such a loop would run slowly even in assembly/machine code. So what we need to do is come up with some ways we can simplify the inner loop to get the cost per pixel down as much as possible.

Video:



Related Links:

- Get Source Code
- A Crash Course In BASIC program Optimization





 Tracys Platform Blaster

By: Tracy Zundel Added: March 18th, 2006

Category: All,Platformer,Games,Demos,AI,Effects,Alpha Blending,Scrolling


    This is rather nice platform/shooter (with nice weapons + even roaming alien AI) written by a first time game programmer.

     The code was tested PlayBasic v1.62 / 1.63 (was originally written in PB1.33)

     This game example developed a few years ago now by an old member Tracy. Being his first game (his first program ever apparently) the game built from a combination of various tidbits that come with PlayBasic and lots of good old fashion fun and enthusiasm. Which has certainly transpired into a fun game demo.

       The interesting thing about this demo is that contains a bunch of sprite effects and as some really rather interesting weapons for the player.  You've no doubt seen the backdrop art before (the demo was originally built off the 2d platformer demo that comes with PlayBasic) , and most of the sprites are ripped unfortunately.  It's kind of bizarre as the player has different characters for different animations.   Walking is guy in a overcoat, flying it's a dragon.. 

     Anyway, Feel Free to be the next link in the chain and this code further !




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]