DarkBASIC
From Free net encyclopedia
(Redirected from Dark Basic)
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 sole purpose of the language was game creation using Microsoft's DirectX 3D library for graphics but is well rounded enough to do almost any programming task. It was first released in 2000 by DarkBasic Software ltd. (now The Game Creators ltd.) and was continuously supported until 2002 when The Game Creators released the more powerful and extensive DarkBASIC Professional using newer versions of DirectX.
Contents |
[edit]
Major Command Sets
- BASIC Commands: Common commands shared with most other BASIC languages. Control loops, User functions, Condition statements, etc.
- Input Commands: Includes input functions for FTP, Files, and Joysticks in addition to mouse and keyboard inputs.
- Math Commands: Math functions, ranging from arithmetic to trigonometry.
- Basic 2D: As the header implies, basic 2D drawing functions such as lines and ellipses
- Text: Contains functions for printing text to the screen, and manipulating strings.
- Screen: Controls display modes, screen resolution, etc.
- Bitmap: Contains functions for bitmap manipulation such as fading and flipping.
- Sprite: Functions for image and sprite manipulation.
- Sound: Sound manipulation and 3D sound systems.
- Music: Loading and playing music.
- Animation: Manipulation of AVI files.
- Basic 3D: Controls 3D object position, rotation, limbs, and animation.
- Camera 3D: Controls 3D camera position, rotation, field of view, and effects.
- Light 3D: Manipulation of 3D lighting.
- Matrix 3D: Create and manipulate 3D matrices.
- System: Contains DLL, window, and hardware commands.
- Memblock: Memblock manipulation of images, sounds, meshes, and other data down to a per-byte level.
- Multiplayer: Commands for programs working across multiple machines over LAN or the internet, especially net-games.
[edit]
Sample Code
rem Move a 3D box around the screen ` backquote may be used instead of rem sync on : sync rate 60 ` sets the refresh rate disable systemkeys make object cube 1, 100 ` creates a cube of size 100 posz = 10 posx = 10 posy = 10 do ` start main loop ` control if upkey() = 1 then inc posy if downkey() = 1 then dec posy if leftkey() = 1 then dec posx if rightkey() = 1 then inc posx if escapekey() = 1 then end position object 1, posx, posy, posz ` reposition object sync ` update screen loop ` end main loop
[edit]
See also
[edit]
External links
- The Game Creators website - http://www.thegamecreators.com
- DarkBASIC - http://darkbasic.thegamecreators.comca:DarkBASIC