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.
PlayBasic LIVE - Revisiting Twitch Face Demo - (2020-07-14 )
Here we're taking a look back a demo called Twitch Face from way back in February of 2006. The demo is various stacked blends that 'twitch' or are offset from each other.
This is an older code snippet that was originally written by Crystal Noir, it creates a type of 3D particle explosion using animated 2d sprites. I've tweaking the code and fixed some logic errors and this was the end result.
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.
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..
[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]
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 !
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.