PLAYBASIC SOURCE CODES


Flood Fill Path Finder

    This code is a version of my flood fill path finding routine that was originally written way back in the late Amiga days, some 20 odd years ago now. The raw concept was inspired by the game Chaos Engine by the Bitmap Brothers, which featured a cooperative mode with a second AI player, even when playing in single player modes. What struck me was how well the AI player could fight and locate power ups, which seemed just like the a human player at the time. Today this kind of AI has is almost common place, but it seemed new back in the 16bit days. I don't actually know how Chaos Engine's AI algorithms work, just that it was seed for this idea. But like a lot of good ideas, this just ended up gathering dust on my legacy hard drive until now.

Download Path Finding Tutorial From Forums


Flood-Fill-Path-Finding-Tutorial-Pic01.png

Balloons

This balloon demo moves a group of large bouncing rotating balloon sprites around the screen. The program was originally written for an 18th birthday party.

Balloons-Source-Code-Smaller.jpg
#1
Balloons.zip (583.59 KB)

Air Born

This is Micky4fun's 4th game which was originally written way back 2008. The game is a simple vertical scrolling shoot'em up similar in style to classic arcades video games such as 1942 / 1943.


Airbourne-Shoot-em-up-Game-Smaller.jpg
#1
airbourne.zip (858.84 KB)

Pong 666

     This is my first game in Play BASIC. I played around with some of the functions and I think it's an awesome language!

     This game is evil. You wont have fun playing it, because you will always lose since I implemented the best possible Pong A.I. At least I can think of no way to improve it, if you have an idea, please tell me. Since the bots are inhuman good, it's really funny watching them fight against each other, so I recommend pressing 3 at the beginning. If you want to see how the AI works, press Space.

pong666-1mume.pngpong666-27rvn.png
#1
Pong666-By-Vee.zip (4.87 KB)

16bit Palette Mapped Strips

Here's a 16bit example that's using 4096 colour palette. The screen colour indexes are set up so that each pixel on screen is the distance from the screen center. The palette created each frame from 16 banks of 256 colours. Each block of 256 colours is shaded via sinus and offset in the palette table, creating the illusion of motion.
Draw-Palette-Mapped-Strip-16bit-Example.png
#1
DrawPaletteMappedStrip16.zip (2.17 KB)