Dark Basic

Started by
3 comments, last by stevelevesque 22 years, 8 months ago
In dark basic i dont understand How i can figure out the nmers on my own when i make boxs and other shapes. Your suposed to enter 4 numbers if you are trying to create a box and i have no idea how to mae the size of the box by entering the numbers. Box 10, 10, 630, 100 Also when i enter INK RGB(255, 100, 0), RGB(0,0,255) I dont know how peope can figure out the colors just by entering numbers is there a color key somewhere or do you just have to figure it out yourself. The last thing i have to ask is how much is a pixel. I cant figure it out because i have to enter the code Set cursor 123, 345 and i cant figure out how far around the screen each number is. Steve "When The Only Thing You Have Is A Hammer, Everything Looks Like A Nail" ~Phish
~When The Only Thing You Have Is A Hammer, Everything Looks Like A Nail.www.instinctz.net
Advertisement
The basics of RGB coloring:

255, 0, 0 = Red
0, 255, 0 = Green
0, 0, 255 = Blue
255, 255, 255 = White
0, 0, 0 = Black
255, 255, 0 = Yellow
255, 0, 255 = Magenta
0, 255, 255 = Cyan

Now, just increase the 0''s, or decrease the 255''s to get colors in the middles. This is an extremely elementary concept, you should understand it before doing any real game development.

Pixels:
The screen is divided into pixels based upon its resolution. Most computer monitors will use a 4:3 ratio. For example, some common resolutions (Width x Height): 640x480, 800x600, 1024x768, et cetera. The coordinate 0,0 (in most cases when you''re measuring based on pixels) is in the top right corner. 0,479 (at a 640x480 resolution) is the bottom left corner. Et cetera. You should probably be specifically setting the number of pixels your game''s screen is at some point. Use that as a reference.

[Resist Windows XP''s Invasive Production Activation Technology!]
what is dark basic?
Darkbasic is a horrible interpreted language for people who don''t feel like learning a real language and 3D API.

[Resist Windows XP''s Invasive Production Activation Technology!]
Complete agree with Null and Void : try and create more than two cubes then the game comes to a stand still (even on an PIII800 128mb and geforce2).. i think it justs renders every polygon without even checking for polygons that dont need to be rendered.

This topic is closed to new replies.

Advertisement