Hi everyone. I have had DarkBASIC Classic for 4 days now, I have followed Binary Moon's tutorial through the Basic and 2D sections. I can make shapes and move them with my arrow keys(except for a square couldnt fit that into the code given in the tutorial that comes with the language). Now I have a few questions:
1. I used the following code to make green grass on the bottom half of the screen and a ramdom starry sky over the horizon.
ink RGB(30,200,56),RGB(0,0,0)
box 1,240,639,479
for star=1 to 120
ink RGB(255,255,255),RGB(0,0,0)
dot rnd(640),rnd(240)
next star
suspend for key
The problem I am having with this is that I cannot make random red dots appear on the bottom half of the screen to simulate rocks in the grass.
Also, why does the x2,y2 portion of the box formula have to be one less than the maximum screen resolution for the box to appear? (639,479 instead of 640,480)