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

Use your mouse and LMB to generate water waves...

Version: 2.0
Created: 25th Sep 2003 18:25
0
0
2D Effects

This function calculates the mouse vector from the camera into open space and then travels along it until it hits the matrix.

Version: 1.0
Created: 25th Sep 2003 17:37
0
0
3D

Watch the polygons on the cup flake away into nothing...

Version: 1.0
Created: 25th Sep 2003 13:23
0
0
Memblocks

Move an object, e.g. a plain with a bitmap on it to look like a pointer, in specific area boundaries, with the mouse

Version: 1.0
Created: 25th Sep 2003 07:04
0
0
Input

This bit of code lets to grab the time and make into a sprite which you can then balance on a line.

Version: 1.0
Created: 25th Sep 2003 05:51
0
0
Math / Physics

Simple Screenshot for DBPro

Version: 1.0
Created: 24th Sep 2003 23:55
0
0
Image

An organized password box. Correct password equals continue and wrong password equals fail.

Version: 1.0
Created: 23rd Sep 2003 23:31
0
0
Miscellaneous

Want to find out if your lines cross each other? Where they do or will cross? If they overlap? Then go no further :)

Version: 1.0
Created: 23rd Sep 2003 14:35
0
0
Math / Physics

Determine whether the points of a 2D triangle are anti-clockwise. This is a very fast routine as it doesn't use any trig functions.

Version: 1.0
Created: 23rd Sep 2003 14:07
0
0
Math / Physics

Determine whether a point is inside a 2D triangle. This is a very fast routine as it doesn't use any trig functions - just subtractions and multiplies

Version: 1.0
Created: 23rd Sep 2003 14:05
0
0
Math / Physics

This is a simple solar system model. Originally written by Arbitrage but amended and edited by Indi and Philip

Version: 1.0
Created: 22nd Sep 2003 13:13
0
0
Complete Applications

Find input on your keyboard. For ascii, inkey$(), scancode, mouseinput and entry$()

Version: 1.0
Created: 21st Sep 2003 16:11
0
0
Input / Output

Demo using memblocks and sound. Produces a WMP-like visualisation from any sound. Commented.

Version: 1.0
Created: 20th Sep 2003 08:47
0
0
Sound

Very simple - darkbasic functions that mimic built-in function like cirle, ellipse, box and a new function that will create an N sided polygon.

Version: 1.0
Created: 20th Sep 2003 08:15
0
0
2D Effects

A little demo showing you how to handle multiple bullets in a 2D arcade style shooter. No media.

Version: 1.0
Created: 20th Sep 2003 07:53
0
0
2D

A simple snippet demonstrating 3D mouse control, how to select objects and simple distance calculation. Ideal for somebody starting out with RTS development.

Version: 1.0
Created: 20th Sep 2003 07:40
0
0
3D

Converts a long single line to and image of the Text wrapped in a box.

Version: 1.0
Created: 19th Sep 2003 20:40
0
0
Text

A very basic chat program. Allows up to 8 users to join

Version: 1.0
Created: 18th Sep 2003 16:31
0
0
Multiplayer

A very small function that will return a +1 or a -1 randomly.

Version: 1.0
Created: 18th Sep 2003 05:26
0
0
Math / Physics

Make long one-line text message to break down in smaller lines. Use this version of the code as an example of text parsing.

Version: beta
Created: 18th Sep 2003 05:09
0
0
Text

Pixel perfect sprite collision using the alpha value

Version: 2.0
Created: 17th Sep 2003 13:34
0
0
Sprite

This will be a short guide that introduces some of the basic commands of dark basic and darkbasic professional. By the end of this lesson, you'll have completed many small programs along with one small text game.

Version: 0.1
Created: 16th Sep 2003 17:21
0
0
Miscellaneous

Displays all possible colour combinations (using a 4-step increment)

Version: 1.0
Created: 16th Sep 2003 10:53
0
0
2D Effects

Full-screen vertical scrolling trick with image-wraparound - doesn't actually "scrolly" anything.

Version: 1.0
Created: 16th Sep 2003 10:46
0
0
2D Effects

I saw another example of this, but this uses much less code to detect for a double mouse click. I wrote it some time ago cause someone requested it.

Version: 1.0
Created: 15th Sep 2003 20:04
0
0
Input / Output

This is an even faster version of a starfield, and is more flexible than the tutorials

Version: 1.1
Created: 15th Sep 2003 16:18
0
0
2D Effects

Simple readable example of using an array as a stack

Version: 1.0
Created: 15th Sep 2003 14:01
0
0
Core

Simple readable example of using an array as a queue

Version: 1.0
Created: 15th Sep 2003 14:00
0
0
Core

Shows both a countdown timer and an elapsed time timer.

Version: 1.0
Created: 15th Sep 2003 13:58
0
0
Core

Simply send an ASCII code to this function and it will return a description of the key. Easy to understand and edit if for instance you need to use it on a non-qwerty keyboard

Version: 1.0
Created: 15th Sep 2003 13:31
0
0
Text