DarkBASIC

From Wikipedia, the free encyclopedia

DarkBASIC is a commercial game creation programming language released by the United Kingdom based company The Game Creators. The language is a structured form of BASIC and is similar to AMOS on the Amiga. The purpose of the language is game creation using Microsoft's DirectX from a BASIC programming language.

Contents

[edit] DarkBASIC

Often referred to as DarkBASIC Classic to avoid confusion with DarkBASIC Professional. It consists of an IDE, Debugger and Compiler. The engine was built on DirectX 7. The compiler outputted Bytecode that is appended to an interpreter to create a stand alone executable. The current version is 1.13 released 24. January 2002.

[edit] DarkBASIC Professional

Developed as a replacement for DarkBASIC. As with DarkBASIC it consisted of an IDE, debugger and compiler. Unlike DarkBASIC the compiler outputs Machine Code. The engine originally used DirectX 8.1 but has been updated to use DirectX, 9.0c. The current version is 6.3 released 1. November 2006.

[edit] Plugin architecture

Plugins allow extra commands to be added to the language. Plugins are DLLs with an embedded string resource detailing the routines implemented in the dll. At compile time the compiler bundles the relevant plugin dlls into the executable.

Interestingly inbuilt commands area also implemented in the same way. This allows third party plugins access to inbuild commands buy calling the correct function in the relevant dll.

Currently available plugins provide a wide range of addition commands from integration with physics engines to accessing a Database.

[edit] Dark Game SDK

The DarkBASIC Professional engine packaged up for use with Visual C++ or Microsoft .NET.

[edit] Sample code

[edit] DarkBASIC

Simple rotating cube.

 
REM 3D rotating cube demo

SYNC RATE 60
MAKE OBJECT CUBE 1,100
DO
    XROTATE OBJECT 1,OBJECT ANGLE X(1)+0.3
    YROTATE OBJECT 1,OBJECT ANGLE Y(1)+0.5
LOOP
 

[edit] Dark Game SDK

[edit] See also

[edit] External links