PLAYBASIC SOURCE CODES


Open Ended Die Roller

Implements an open-ended die roller of the sort often found in strategy games and also demonstrates recursion.

#1
OpenEndedRoller.zip (1.39 KB)

Tile/Tilemap Tutorial for Beginners

This is a very basic Tutorial about Tiles and using them in a Tilemap...

It shows you really the basics, so expect not too much.. but it could help you to understand the theory..

TileTileMapTutorial.jpg
#1
Tile-TileMap-Tutorial-For-Beginners.zip (3.36 KB)

Percent Bar or maybe Energy Bar

Code Snippet that can use as Percent Bar or maybe as Energy Bar in Games...

Use MouseButtons to inc/dec the bar...

Please, it's an example... feel free to modify so you can use it...

percent-energy-bar-demo.jpg
#1
Percent-Energy-Bar.zip (1.57 KB)

Pathfinding Algorithms

These algorithms are not "my own work". I got them from an old article in Game Developer magazine, but the authors of the algorithms would be AI researchers whose names I don't know. Anyway, there is no copyright in an algorithm.

Alex

#1
Pathfinding.zip (747 bytes)

Rings

Some pseudo-3D rings that utilize some basic sprite draw modes and also illustrate how to draw to an image (as opposed to directly to the screen) for faster alpha addition/subtraction.
#1
Rings 2.zip (2.2 KB)