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

IndexOf( String1 , String2 ) Returns an integer whose value is the position of the string2 "char" value in string1... if that does make any sense. String1 is the string you wish to retrieve the char position from. String 2 is the char whose position in the string you want to return. SubString(String, startval, endval) Returns a substring from the string whose position is defined in the startval and endval.

Version: 1.0
Created: 6th Oct 2009 13:57
0
0
Text

A basic spinning cube using the arrow keys to move the cube.

Version: 1.0
Created: 2nd Oct 2009 12:10
0
0
Basic 3D

camera control used in first person games.

Version: 1.0
Created: 2nd Oct 2009 12:09
0
0
3D

Missing and wrong brackets

Version: 1.0
Created: 30th Sep 2009 10:25
0
0
Demos

this is my first game. the aim of the game is to move the cube to the coloured sphere whilst avoiding the white sphres

Version: 1.0
Created: 20th Sep 2009 10:58
0
0
Games

You race, by clicking, against other circles to the finish line. No Media!

Version: 1.0
Created: 18th Sep 2009 20:44
0
0
2D

It's just a simple screensaver, just a ball that bouces on a starfield

Version: 1.0
Created: 18th Sep 2009 14:55
0
0
Complete Applications

This creates a button that can be used and checks if the button is pressed. This also can create a sprite and dismiss a certain collar as a button.

Version: 1.0
Created: 17th Sep 2009 16:27
0
0
Complete Applications

I will show you how to check for the existence of text files; such as a .ini file. Create it if it does not exist. Read configuration information if it DOES exist. I also how how to keep track of saved games for your programs.

Version: 1.07
Created: 17th Sep 2009 06:58
0
0
File Control

Tree party update where leaf don't fall

Version: 1.0
Created: 11th Sep 2009 21:18
0
0
Complete Applications

Function to paste sprite based characters to the screen

Version: 1.0
Created: 11th Sep 2009 02:05
0
0
Sprite

function to create greyscale, or color maps with some tweaking, of USGS .flt files.

Version: 1.0
Created: 10th Sep 2009 01:54
1
0
Basic 3D

Front logo of my game

Version: 1.0
Created: 7th Sep 2009 20:24
0
0
3D Effects

easy version of tree party

Version: 1.0
Created: 4th Sep 2009 19:45
0
0
Complete Applications

Just type letters and scares you so you have a virus. Be Happy

Version: 1.0
Created: 3rd Sep 2009 20:14
0
0
Complete Applications

This is just a simple little application I whipped together as my first tutorial-independent DarkBasic professional program. The complete version should (in order to make the program even remotely fun) have a stopwatch function so there is time pressure on the player. At this time however such a function is somewhat beyond me and I've decided to move on to more interesting games.

Version: 1.0
Created: 1st Sep 2009 10:38
0
0
Complete Applications

I designed this game to kill some time. Feel free to make comments or changes.

Version: 1.0
Created: 29th Aug 2009 14:03
0
0
Complete Applications

use the code for ur games this is for beginers

Version: 1.0
Created: 28th Aug 2009 13:46
0
0
2D

It will randomly draw connected lines all over the screen.

Version: 1.0
Created: 25th Aug 2009 23:05
0
0
Complete Applications

It's a program to help you find the colors needed to match bitmap backgrounds and such

Version: 1.0
Created: 23rd Aug 2009 11:31
0
0
Complete Applications

This is a small code I wrote,the computer randomly generates a number between 1 and 7 and you have to guess what that number is!

Version: 1.0
Created: 17th Aug 2009 13:59
0
0
Complete Applications

This function sets the object's mask value, works the same as the DBPro exquiv command : Set Object Mask

Version: all
Created: 15th Aug 2009 03:23
0
0
Basic 3D

Memblock Sound Generator uses memblocks to create medialess sound files, great for simple buzzes, beeps and whistles...

Version: All
Created: 15th Aug 2009 03:09
1
0
Sound

Shows a hud Replace YOURHUD with your filename

Version: 1.0
Created: 11th Aug 2009 20:47
0
0
Complete Applications

simple 3d speedometer and tachometer demo. Tweakable for different transmission gear ratios, final drive ratios, and tire sizes. Works for motorcycles with primary reduction, or cars.

Version: 1.0
Created: 10th Aug 2009 20:22
0
0
Basic 3D

Controls: W = Forward S = Backward A = Left D = Right --- Q = Turn Left E = Turn Right --- CTRL = Down Space = UP

Version: 1.0
Created: 8th Aug 2009 22:32
0
0
Complete Applications

Stop the number on 100 to get a WOW! No Media!

Version: 1.0
Created: 4th Aug 2009 12:26
0
0
Text

The more you risk the bigger the reward. (Multiplayer) No Media!

Version: 1.0
Created: 4th Aug 2009 11:39
0
0
Input

See if the growing number will break the record. No Media!

Version: 1.0
Created: 4th Aug 2009 01:02
0
0
Text

text_input("message$",100,100,14) function text_input(message$,x,y,max)

Version: 2.0
Created: 3rd Aug 2009 04:44
0
0
Complete Applications