CodeBase Entries

Welcome to our CodeBase where you can search through DarkBASIC, DarkBASIC Professional and AppGameKit source code covering a wide range of topics from full games to demo effects to object loaders.

All registered users can submit their own code from their account page, so why not contribute?

Search
Found 1,334 entries over 45 pages.
CodeBase Description Category

Pixel perfect sprite collision using the alpha value

Version: 2.0
Created: 17th Sep 2003 13:34
0
0
Sprite

This will be a short guide that introduces some of the basic commands of dark basic and darkbasic professional. By the end of this lesson, you'll have completed many small programs along with one small text game.

Version: 0.1
Created: 16th Sep 2003 17:21
0
0
Miscellaneous

Displays all possible colour combinations (using a 4-step increment)

Version: 1.0
Created: 16th Sep 2003 10:53
0
0
2D Effects

This is an even faster version of a starfield, and is more flexible than the tutorials

Version: 1.1
Created: 15th Sep 2003 16:18
0
0
2D Effects

Simple readable example of using an array as a stack

Version: 1.0
Created: 15th Sep 2003 14:01
0
0
Core

Simple readable example of using an array as a queue

Version: 1.0
Created: 15th Sep 2003 14:00
0
0
Core

Shows both a countdown timer and an elapsed time timer.

Version: 1.0
Created: 15th Sep 2003 13:58
0
0
Core

See whether the user has dbl-clicked btn 1...

Version: 1.0
Created: 15th Sep 2003 11:59
0
0
Input

this lets you exporter x file from DBpro ( this do not do animation )

Version: 1.0
Created: 14th Sep 2003 10:08
0
0
Basic 3D

uses a set display mode to change the display mode to match the window resolution to the window size when the window is resized

Version: 0.2
Created: 14th Sep 2003 05:36
0
0
Display

Screen and text fade

Version: 1.0
Created: 12th Sep 2003 19:01
0
0
2D Effects

A demo featuring lines, dots and rotating sprites

Version: 1.0
Created: 12th Sep 2003 18:57
0
0
Oldskool

Emulator of the old game Telesketch, without media.

Version: 1.0
Created: 12th Sep 2003 15:01
0
0
2D Effects

Various screen wipes for clearing screens.

Version: 1.0
Created: 12th Sep 2003 14:20
0
0
2D Effects

Heightmap to matrix conversion

Version: 1.0
Created: 10th Sep 2003 12:32
0
0
Matrix

A program to show how to use a make_hill function i have made

Version: 1.0
Created: 7th Sep 2003 15:16
0
0
Matrix

Calculates the distance between two points in 3D space

Version: 1.0
Created: 6th Sep 2003 11:20
0
0
3D Maths

Use negative alpha blending (dark ghosting) + reflection shading to produce semi-reflective objects.

Version: 1.0
Created: 6th Sep 2003 11:11
0
0
3D Effects

Example of how to return multiple values from a function using a stack system. Stacks are useful for many other things as well.

Version: 1.0
Created: 6th Sep 2003 11:04
0
0
Core

This is a DB Pro version of the C function isalnum(). More explanation is given in the comments in the code.

Version: 1.0
Created: 6th Sep 2003 10:37
0
0
Input

This is a function to do the same as isalpha() in C. It returns a 1 if temp is a letter of the English alphabet, otherwise zero is returned. Generally a call to this function would be preceded by temp = scancode()

Version: 1.0
Created: 6th Sep 2003 09:04
0
0
Input

Example of the Heap system used in the A* pathfinding routine

Version: 1.0
Created: 4th Sep 2003 14:02
0
0
Miscellaneous

Newbies can learn some quick fundamentals on using the basic input commands in DBPro.

Version: 1.0
Created: 4th Sep 2003 12:38
0
0
Input / Output

This sample was created to test functionality in both 2D and 3D space and demonstrates simple use of the spline functions.

Version: 1.0
Created: 3rd Sep 2003 17:54
0
0
Math / Physics

Paremeter file input routines

Version: 1.0
Created: 3rd Sep 2003 07:51
0
0
File

An include file with functions to read WAV header information, such as sample rate, length, etc...

Version: 1.0
Created: 2nd Sep 2003 11:57
0
0
File

An include file with functions to read MP3 ID3v1 and ID3v2 tags. This is useful for things like media players, etc...

Version: 1.0
Created: 2nd Sep 2003 11:54
0
0
File

lets you have open values for media indexs

Version: 1.0
Created: 1st Sep 2003 20:04
0
0
Functions

This just tests the speed, it's for Dark Basic Pro as well as for DarkBasic Classic. In Darkbasic Pro you get a lower number. So, how lower the number, how better your system is(I get 72 in DBClassic).

Version: 1.0
Created: 1st Sep 2003 16:16
0
0
Core

A small program which shows how to use the smooth_matrix function i made after readed DAVID89's description of how to do it.

Version: 1.0
Created: 1st Sep 2003 12:45
0
0
Matrix