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

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

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

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

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

These functions search a string in forward or reverse for a given string from a given starting point. Originally By IanM modified and commented by Keaz. (This function is CaSe SeSiTiVe)

Version: 1.0
Created: 25th Jul 2005 16:14
0
0
Text

A simple game that uses no media.

Version: 1.0
Created: 24th Jul 2005 01:53
0
0
Complete Applications

Makes a rainbow Balloon on the screen.

Version: 1.0
Created: 22nd Jul 2005 20:13
0
0
2D Effects

Ummm... a pinball game.

Version: 1.0
Created: 17th Jul 2005 15:48
0
0
Complete Applications

A short vertical 2D shoot em up

Version: 1.0
Created: 17th Jul 2005 04:36
0
0
2D

A way to handle a dynamic amount of data inside of a user defined type. This is a workaround which is very useful in all languages to an extent.

Version: 1.0
Created: 17th Jul 2005 01:35
0
0
System Enhancements

Does a print-out of all the colors of the rainbow, and shows their corresponding rgb value

Version: 1.0
Created: 12th Jul 2005 01:13
0
0
Basic 2D

Ball bounces around the screen

Version: 1.0
Created: 10th Jul 2005 19:25
0
0
Sprite

This code contains a function "DlgBox", which will display a Windows style InputBox or a MessageBox according to the Mode parameter.

Version: 1.0
Created: 9th Jul 2005 08:43
0
0
Input / Output

Just make a simple menu using text, you can apply the same knowledge to bitmaps

Version: 1.0
Created: 8th Jul 2005 19:21
0
0
System

the 1st april app minipulated to th max

Version: 1.0
Created: 8th Jul 2005 14:42
0
0
Complete Applications

How do I make a function of imaginary numbers that iterates?

Version: 1.0
Created: 8th Jul 2005 10:13
0
0
2D Effects

Just use the function: Third_Person_View(Object#,X#,Y#,Z#)

Version: 1.0
Created: 6th Jul 2005 21:14
0
0
Complete Applications

My spinning cube effect

Version: Final
Created: 4th Jul 2005 08:27
0
0
3D Effects