Figured out my problem with the original post.
This code draws a red brick wall that fills the screen. What I would like to do is stagger the rows. Every other row indented on the right 20 pixels. I can\'t figure it out. Any help would be appreciated.
#include \"DarkGDK.h\"
void DarkGDK ()
{
dbSetDisplayMode(800,600,32);
const int red = dbRGB(255,0,0);
const int black = dbRGB(0,0,0);
for(int x=0; x<=800; x+=40)
{
for(int y=0; y<=600; y+=20)
{
// Draw red bricks with a 1 pixel
// black border around the bricks
dbInk(red,black);
dbBox(x+1,y+1,x+39,y+19);
}
}
// Pause the program until the user presses a key.
dbWaitKey();
}
Over 40 & Back to School
http://www.SkeeterZ71.com
Most Awesome Blog!