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

Jan 26, 2009: Still workin' on it!... As with the rest of my entries, none of this is even close to finished. Here I'm just playing with making a wire-frame dungeon. Kinda like Akalabeth.

Version: 0.01
Created: 12th Nov 2008 21:08
0
0
Miscellaneous

Just a simple numbet guessing game: you get three chances.

Version: 1.0
Created: 9th Nov 2008 16:57
0
0
Complete Applications

A simple menu for your games.

Version: 1.0
Created: 2nd Nov 2008 09:48
0
0
Display

A simple 1st person perspective view for your games. NOTE: This is just a camera function so you can't just put this code in DBP and compile.

Version: 0.5
Created: 2nd Nov 2008 09:45
0
0
Camera

A simple 3rd person perspective view for your games. NOTE: This is just a camera function so you can't just put this code in DBP and compile.

Version: 0.5
Created: 2nd Nov 2008 09:20
0
0
Camera

Basic program to demonstrate DarkBasics Multiplayer Commands

Version: 1.0
Created: 26th Oct 2008 19:06
0
0
Multiplayer

This program voice control program if you say 'yes' this program print 'yes' and if you say "no" this program print "no"

Version: 1.0
Created: 12th Oct 2008 15:28
0
0
Sound

Got tired of using the wait delay to avoid repeated actions during a key press. This function takes a key input (here its the spacekey()) and returns true only if its been released.

Version: 1.0
Created: 30th Sep 2008 21:27
0
0
Input

Simple Traffic simulation Six cars and traffic lights,

Version: 1.0
Created: 30th Sep 2008 14:27
0
0
2D

sync on rem make an object make object box 1,100,100,100 rem make a cylinder shaped object to get the mesh for the limb from rem (note that the mesh number comes before the object number on the make mesh from object command) make object cylinder 2,100 make mesh from object 1,2 delete object 2 rem add a limb to the box object using the mesh from the cylinder (obj number, limb number, mesh number) rem limbs must be created in sequence, 1,2,3,4 etc add limb 1,1,1 rem rotate the limb rotate limb 1,1,45,45,0 rem resize the limb scale limb 1,1,50,150,50 rem adjust the position of the limb offset limb 1,1,0,100,0 rem (set the object) set object 1,1,1,0,1,1,1,1 rem (setup camera) position camera 250,100,-500 rem loop do set text font "arial" ink rgb(500,500,500),0 center text 320,10,"use left and right arrow keys to rotate the cylinder limb" center text 320,460,"press escape to exit" rem rotate object yrotate object 1,wrapvalue(object angle y(1)+0.5) rem move object move object 1,2.5 rem rotate limb (limb angle x(obj number,limb number) if leftkey()=1 then rotate limb 1,1,wrapvalue(limb angle x(1,1)-1),45,0 if rightkey()=1 then rotate limb 1,1,wrapvalue(limb angle x(1,1)+1),45,0 sync loop

Version: 1.0
Created: 29th Sep 2008 01:15
0
0
Complete Applications

A simple menu with credits.

Version: 1.0
Created: 14th Sep 2008 13:17
0
0
Core

Text RPG work in progress. I'm pretty much figuring this out as I go along! Not a whole lot here. I'll get there when I get there!

Version: 0.05
Created: 12th Sep 2008 23:13
0
0
Miscellaneous

In progress RPG battle code. Text only.

Version: 0.03
Created: 11th Sep 2008 20:57
0
0
Miscellaneous

Quick Way to Get Key Number since I'm always forgetting the key number assignments. /* 03/19/2011 I adjusted text size and resolution up for Windows Vista and 7. Those two OSes don't seem to support the lower resolutions I used to write in. Pity. And an obvious "push" for people to upgrqade (spend more $$) */

Version: 0.02
Created: 11th Sep 2008 18:05
0
0
Miscellaneous

im new to this and this is my first program woo lol all the files are in the media that came with dark basic

Version: 1.0
Created: 9th Sep 2008 23:46
0
0
Complete Applications

This routine is designed to be modified and pasted into existing projects but probably needs some further integrating and speed enhancing done to it.

Version: 1.0
Created: 6th Sep 2008 04:20
0
0
Basic 2D

This source code uses arrays and dots to form dazzling sparkles of joy and happyness! It isn't that complex and it's really tiny. I hope you enjoy!

Version: 1.0
Created: 28th Aug 2008 13:30
0
0
2D Effects

Fire works is a small program that uses arrays and dots to form beautiful pops of sparkles and such HAHA!!!

Version: 1.0
Created: 28th Aug 2008 13:19
0
0
Basic 2D

Sky simulator. Controls a unique path for the sun and up to four moons, as well as day/twilight/night transitions. Adjustable viewer latitude and individual ecliptic for each orbital object.

Version: 1.01
Created: 22nd Aug 2008 02:15
0
0
Miscellaneous

Pass an object and/or camera number to the functions to facilitate basic mouse and keyboard movement.

Version: 1.0
Created: 22nd Aug 2008 01:38
0
0
Miscellaneous

Moves an object in the given direction with the given speed and then updates the objects x&y positions to reflect this movement

Version: 1.0
Created: 19th Aug 2008 07:23
0
0
Functions

Sandbox, not completed project. ASCII playing here.

Version: 0.01
Created: 16th Aug 2008 10:29
0
0
Miscellaneous

*NOT native DBP Particles* This is basically setting limbs on multi-colored fire using a simple custom particle system I made.

Version: 1.0
Created: 31st Jul 2008 18:31
0
0
Particles

There you have pretty texture of old machine and you could use it in your project in DarkBASIC Pro or DarkBASIC. Have fun!

Version: 1.0
Created: 25th Jul 2008 09:22
0
0
Complete Applications

Incomplete battle sequence for RPG. all text-based. real shabby but i'm still learning

Version: 0.75
Created: 23rd Jul 2008 05:21
0
0
Text

Dark Physics Plugin required. A WIP of using Dark Physics Character controller in 3rd person Camera view. While Dark Physics is able to sort the Collision of the Character Controller, it isn't however able to give camera collision if you are using gravity for character controller. So this gives you camera collision aswell.

Version: 1.0
Created: 19th Jul 2008 05:06
0
0
Collision

First attempt at a "game". Simple rock paper scissors game that keeps track of wins, losses, and ties. I would be grateful for constructive criticism.

Version: 1.0
Created: 11th Jul 2008 23:23
0
0
Miscellaneous

This is an animation I made. Hope you like it.

Version: 1
Created: 1st Jul 2008 19:12
0
0
2D Effects

Uses multiple types to create things like: player.pos.x

Version: 1.0
Created: 29th Jun 2008 08:20
0
0
Complete Applications

Calculator made in DBPro.

Version: 1.0
Created: 19th Jun 2008 00:27
0
0
Input / Output