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.
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.
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 .
[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]
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).
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.