Maths encyclopedia, math games and worksheets  
Search

Mathematics Encyclopedia and Lessons

 
     
 

Lessons

Popular
Subjects

algebra
arithmetic
calculus
equations
geometry
differential equations
trigonometry
number theory
probability theory
more
 

References

applied mathematics
mathematical games
mathematicians
more
 
 

DarkBASIC

DarkBASIC is a commercial game creation programming language released by the United Kingdom 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.

Sample Code

 
 rem  Move a 3D box around the screen
 sync on : sync rate 60	` sets the refresh rate
 disable system keys
 make object cube 1,100	` creates a cube of size 100
 posz=10
 posx=10
 posy=10
 do	` start main loop
 
 ` control
 if uparrow()=1 then inc posy
 if downarrow()=1 then inc posy
 if leftarrow()=1 then inc posx
 if rightarrow()=1 then inc posx
 if escapekey()=1 then end
 
 position object 1,posx,posy,posz	` reposition object
 sync	` update screen
 loop	` end main loop

See also

External links

08-24-2009 22:55:19
The contents of this article are licensed from Wikipedia.org
under the GNU Free Documentation License. How to see transparent copy
 
Math Games and Worksheets, Online Math Problems