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 2,044 entries over 69 pages.
CodeBase Description Category

This was a request on the forums. How to display a float and only 2 decimal places worth of values (instead of the whole thing). This is for printing the value to the screen as opposed to general math (for which it would be too slow).

Version: 1.0
Created: 15th Oct 2003 11:25
0
0
Text

delaying a piece of code in a loop

Version: 1.0
Created: 14th Oct 2003 06:33
0
0
Miscellaneous

A small critical chance system for in an RPG.

Version: 1.0
Created: 14th Oct 2003 06:00
0
0
Math / Physics

To save a particular set of screen shots into a specified folder as bmp's to convert to an avi via a 3rd party program.

Version: 1.0
Created: 13th Oct 2003 18:29
0
0
File

Removes spaces from a given string

Version: 1.0
Created: 13th Oct 2003 11:02
0
0
Text

drifting inertial movement with friction

Version: 1.0
Created: 12th Oct 2003 23:06
0
0
Math / Physics

This will write the file number to the file "exist.txt" which is created in the same directory as your project file. It will write to the file if a a model, image, sprite etc. Already exists. This is useful if you want to avoid having to search your code for that "Object already exists" error. UPDATES: 2.0 - Now displays the OPEN slots.

Version: 2.0
Created: 12th Oct 2003 17:49
0
0
File

Simple 2D tiling system showing scrolling under keyboard control

Version: 1.0
Created: 12th Oct 2003 06:38
0
0
2D Effects

Street lamps with haze around them, and a lit floor.

Version: 1.0
Created: 12th Oct 2003 06:30
0
0
3D Effects

It works for any sprite, no matter what the rotation or scaling of the sprites it will still retain the near pixel perfect collision.

Version: 1.0
Created: 11th Oct 2003 07:23
0
0
Sprite

this code provide you of a large water world in assotion with your game this would have some nice effect stupid that the fog operations can not be placed and have some diiferent fog in order to make this more realistic than it is!!!

Version: 1.0
Created: 10th Oct 2003 12:19
0
0
3D Effects

rem upper section before do loop rem create 4 matrix with water effect dim x4mat#(4,3) x4mat#(1,1)=0 x4mat#(1,2)=0 x4mat#(1,3)=0 x4mat#(2,1)=0 x4mat#(2,2)=0 x4mat#(2,3)=9999 x4mat#(3,1)=9999 x4mat#(3,2)=0 x4mat#(3,3)=0 x4mat#(4,1)=9999 x4mat#(4,2)=0 x4mat#(4,3)=9999 rem create matrix and load image load image "water.bmp",1 for x = 1 to 4 make matrix x,10000,10000,20,20 position matrix x,x4mat#(x,1),x4mat#(x,2),x4mat#(x,3) prepare matrix texture x,1,1,1 fill matrix x,0,1 ghost matrix on x randomize matrix x,25 update matrix x next x undim x4mat#(4,3) rem in do loop for x = 1 to 4 randomize matrix x,25 update matrix x next x

Version: 1.0
Created: 10th Oct 2003 09:15
0
0
3D Effects

simple snow effect, move camera around object and make Matrix for battle filed.

Version: 1.0
Created: 10th Oct 2003 08:16
0
0
3D Effects

Uses sprites as command buttons, Raise or Lower using mouseclick()

Version: 1.0
Created: 9th Oct 2003 18:15
0
0
Input / Output

A very simple version of a card trick

Version: 1.0
Created: 9th Oct 2003 02:30
0
0
3D

A function for drawing an ellipse at any angle

Version: 1.0
Created: 9th Oct 2003 01:56
0
0
Basic 2D

Should work on Classic Recursive algorith to create 2d mazes

Version: 1.0
Created: 8th Oct 2003 16:20
0
0
2D

Makes and textures a matrix.(updated!)

Version: 1.0
Created: 7th Oct 2003 19:38
0
0
Matrix

Basic FPS mouse look, WASD movement and strafing for beginners.

Version: 1.1
Created: 7th Oct 2003 17:55
0
0
Basic 3D

This code shows you how to draw ellipses by getting it's "radius" to a given angle, giving you the power to draw angled ellipses, giving a little thougth to it you can create an elliptical NEW*VALUE clone

Version: 1.0
Created: 7th Oct 2003 13:27
0
0
Basic 2D

A background to sprite collision detection (pixel perfect)

Version: 1.0
Created: 6th Oct 2003 12:53
0
0
2D

Has 10 skill levels. Guess a number from 1 to xxx.

Version: 1.0
Created: 6th Oct 2003 11:52
0
0
Math / Physics

I just made something for my cousin and thought jou would like to see how you can just make something with alphabetical keys it's actually kinda stupid but i thought i would just put it online here

Version: 1.0
Created: 6th Oct 2003 10:15
0
0
2D Effects

Demonstrates the principles required to "lay" a matrix over the top of an X object like draping a cloth over it.

Version: 1.0
Created: 4th Oct 2003 07:00
0
0
Matrix

Search for a string in an array using the binary search.

Version: 1.0
Created: 2nd Oct 2003 10:21
0
0
Miscellaneous

Example of a QuickSort function.

Version: 1.0
Created: 2nd Oct 2003 09:34
0
0
Miscellaneous

Quick Sort Function for upto 1000 records press Yes at prompt to see graphic demo of sort.

Version: 2.0
Created: 1st Oct 2003 18:14
0
0
Math / Physics

Often I dont get though the tons of object-numbers... Maybe you too! Here is a simple way of using NAMES instead...

Version: 1.0
Created: 30th Sep 2003 12:44
0
0
Basic 3D

A large bouncing scroller, bouncing stars and distorting logos! Old-skool rules - sorry for the poor code structure, no time to optimise.

Version: 1.0
Created: 29th Sep 2003 14:10
0
0
Oldskool

A little sonic inspired intro

Version: 1.0
Created: 29th Sep 2003 14:09
0
0
Demos