Rem Project: Dark Basic Pro Project
Rem Created: Saturday, January 07, 2012
Rem ***** Main Source File *****
set display mode 640,480,32 `set the display (width, height, color mode)
set window on `make the program run in a runtime window
sync on : sync rate 0 `set speed to run just as fast on other computers
make camera 1 `make the camera
position camera 1,0,0,-10 `position the camera backwards so we can see all of the objects
make object cube 1,3 `create the cube
make object sphere 2,3 `create the sphere (middle object)
make object cone 3,3 `create the cone
position object 1,-4,0,0 `move the cube <-
position object 3,4,0,0 `move the cone ->
color object 1,rgb(255,0,0) `red = 255 (R)
color object 2,rgb(0,255,0) `green = 255 (G)
color object 3,rgb(0,0,255) `blue = 255 (B)
do
turn object right 1,1 `turn the cube
turn object right 2,1 `turn the sphere
turn object right 3,1 `turn the cone
sync
loop
This is my own short example on RGB color values, creating objects, turning objects, positioning objects, display modes and anything else that I have in this code.
Let's not leak our hard work.
