PLAYBASIC SOURCE CODES


Space nebulae generation

Now you can generate space nebulae.

Works best with sizes that are multiples of 2. Otherwise you might get fragments in the image...

Colors are changeable of course, just replace them in the appropriate lines (easy to find in the code).

space01.png
#1
Nebula_Generation.zip (4.41 KB)

HSL / RGB Conversions

Algorithms for converting RGB to HSL values & vice-versa.

#1
HSL2RGB.zip (737 bytes)

HSL Color Picker

HSLColorPicker.png
#1
HSLColorPicker.zip (2.77 KB)

Plasma generation

This is some random plasma generation, based on the midpoint displacement algorithm. I found it mentioned in some LudumDare game source code.

Have a look at my website under Game development for more information.

http://www.haaks.net/gamedevcode/index.html

plasma.png
#1
Plasma_Generation.zip (3.5 KB)

A* Pathfinding Demo

An implementation of A* pathfinding, as well as Djikstra's Algorithm and Breadth-First Search. Contains demo code & instructions.

AStarDemo.png
#1
AStarDemo.zip (7.95 KB)