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

A simple program for making backgrounds. Just change the backgrop.bmp to the name of your file. (The image should be 650 x 471) Made by Eivind

Version: 1.0
Created: 4th Sep 2005 04:52
0
0
2D Effects

It the positioning the cubes in the game and make it look alike hall.

Version: 1.0
Created: 30th Aug 2005 23:51
0
0
Complete Applications

Card Game - Match the Pairs

Version: 1.0
Created: 28th Aug 2005 18:32
0
0
2D

wraps words to a given width

Version: 1.0
Created: 27th Aug 2005 08:01
0
0
Complete Applications

this is kind of like the insults program(not by me) try out both the insults program is funny(kind of)

Version: 1.0
Created: 26th Aug 2005 15:53
0
0
Miscellaneous

A rainbow spinning cube

Version: 1.0
Created: 26th Aug 2005 15:26
0
0
Basic 3D

A password prompt, could be used for anything.

Version: 1.0
Created: 26th Aug 2005 15:24
0
0
Functions

Insults whoever opens the program

Version: 1.0
Created: 25th Aug 2005 19:39
0
0
Complete Applications

loads any playlist format you wish to support without having to change the main function call.

Version: 1.0
Created: 24th Aug 2005 03:34
0
0
File

scrolling tile engine

Version: 1.0
Created: 22nd Aug 2005 04:20
0
0
2D

a small program that drives around a police car

Version: 1.0
Created: 17th Aug 2005 19:51
0
0
Basic 3D

a function for you to use on your objects for motion

Version: 1.0
Created: 17th Aug 2005 19:46
0
0
Basic 3D

REM Project: ballfacesspin REM Created: 16/08/2005 23:28:40 REM REM ***** Main Source File ***** REM hide mouse sync on load object "res/ballface.x",1 scale object 1,10,10,10 color backdrop 0 do rotate limb 1,3,x,y,z rotate limb 1,4,x1,y1,z1 inc y,1 dec z1,1 yrotate object 1,a# a#=a#+0.5 if y=>360 offset limb 1,3,bx#,by#,bz# by#=by#-0.02 endif if y=>200 offset limb 1,4,ox#,oy#,oz# oy#=oy#+0.02 endif if y=>1300 scale limb 1,2,cx,cy,cz inc cx,1 inc cy,1 inc cz,1 endif if cx=300 hide limb 1,2 endif sync loop

Version: 1.0
Created: 17th Aug 2005 14:55
0
0
Basic 3D

sync rate 50 sync on hide mouse load image "1",1 load image "2",2 create bitmap 1,640,480 for a = 1 to 51 ink rgb(a/2,a/2,25+a),0 line 0,a,639,a next a get image 3,0,0,640,50 flip bitmap 1 get image 4,0,430,640,480 x# = 320 : y# = 100 : a# = 1.5 : j = 0 : vel_y# = 0 : d = 1 : s# = 6 do cls if j = 0 vel_y# = 1.5 j = 1 endif if j = 1 if vel_y# > -4 vel_y# = vel_y# - a# y# = y# + sin(vel_y#)*35 else y# = y# + sin(vel_y#)*35 endif else if vel_y# > -4 vel_y# = vel_y# - a# y# = y# - sin(vel_y#)*30 else y# = y# - sin(vel_y#)*30 endif endif if y# <= 30 vel_y# = 0 j = 2 endif if y# => 340 j = 1 endif if d=1 then inc x#,s# if d=2 then dec x#,s# if x# => 528 d = 2 endif if x# <= 0 d=1 endif paste image 3,0,430 paste image 4,0,0 paste image 1,x#,y#,1 paste image 2,x#,530-y#/4,1 paste image 2,x#,-10-y#/4,1 copy bitmap 1,0 sync loop

Version: 1.0
Created: 15th Aug 2005 23:26
0
0
Functions

Destroy all the dots!

Version: 1.0
Created: 15th Aug 2005 09:12
0
0
Complete Applications

15 new functions for file control, including IncodeFile and DecodeFile! Here's the complete list: -PrintFileContentsToScreen : -IncodeFile : -DecodeFile : -GetRidOfBlankLines : -GetRidOfAllSpacesInFile : -GetRidOfStringAtStart : -GetRidOfStringAtEnd : -GetRidOfStringAtPos : -WriteStringToStart : -WriteStringToEnd : -WriteStringToPos : -Return Varible = CountLinesInFile : -Return Varible = ReadStringAtStart : -Return Varible = ReadStringAtEnd : -Return Varible = ReadStringAtPos :

Version: 1.0
Created: 14th Aug 2005 21:42
0
0
File Control

Well this is a mad lib i made when i was bored feel free to edit it for your own use :-)

Version: 1.0
Created: 14th Aug 2005 03:06
0
0
Complete Applications

moves a box around without sprite use

Version: 1.0
Created: 12th Aug 2005 20:41
0
0
Basic 2D

This is a simple application that moves a skateboarder on the screen and plays music in the background.

Version: 1.0
Created: 8th Aug 2005 14:01
0
0
2D

rem ben rider made this copyrights reserved rem ======================================== rem DARK BASIC rem ======================================== rem ---------------------------------------- rem Set the ink to white and paper color to black ink rgb(244,214,210),1 rem Set a new font rem the new font will work with all text command but not the print command set text font "times new roman" for t =8 to 100 step 2 rem Clear the screen cls rem Set the current font size set text size t text 0,10,"MY NEW TEXT SIZE" text 0,(10+text size())+2,"FONT SIZE "+str$(text size()) rem This will delay the loop so that you can see the fonts for a= 0 to 32000:next a next t rem Will wait for you to press any key suspend for key rem End the program end

Version: 6.5
Created: 7th Aug 2005 07:48
0
0
Complete Applications

this is a mod of someones jumping code it has a few tweaks to make it more usable

Version: 1.0
Created: 6th Aug 2005 12:51
0
0
Math / Physics

This program loads an file and plays it.

Version: 1.1
Created: 5th Aug 2005 06:29
0
0
Music

Code with jumping on a matrix, taken from the DB Sliding Collision Demo. Includes simple gravity and collision with matrix and objects.

Version: 1.0
Created: 4th Aug 2005 23:05
0
0
Complete Applications

A way to switch from 3D to 2D.

Version: 1.12
Created: 3rd Aug 2005 14:45
0
0
Graphics

Very cool landscape generator.

Version: 1.0
Created: 3rd Aug 2005 08:47
0
0
Matrix

Demonstrates key input and particle effects.

Version: 1.0
Created: 1st Aug 2005 07:48
0
0
3D

This is a longer version of the original.

Version: 2.0
Created: 29th Jul 2005 08:42
0
0
2D

Draws a 20 pixel line and 11 dots. Gives a rundown of the rgb values of each pixel. In the left column are seem the resulting line rgb color values of each line pixel. In the right column are given the resulting dot pixel values. Click left mouse button to repeat for other colors.

Version: 1.0
Created: 29th Jul 2005 06:44
0
0
Bitmap

This is a text based adventure for people who have never ever code in their life. (I got bored one day and decided to write this it only took me ten minutes)

Version: 1.0
Created: 27th Jul 2005 10:22
0
0
2D

This code lets you take screenshots of your game for various uses within the game, such as screenshots of player-built tracks or player-created characters.

Version: 1.0
Created: 25th Jul 2005 22:14
0
0
Bitmap