make object cube 1,10
do
text 10,10,"hello"
box 100,100,110,110
sync
loop
this small snippet demonstrates many things and shows some circumstances not always apparant.
firstly we create a cube in 3d using 3dspace 1 and the size is 10.
DB automatically points the camera at it.
Keep in mind if u added the camera commands before and after the cube creation alters the way the whole structure of the camera will work in regards to sizes etc.
You should really add these lines
sync on
sync rate 0
this basically sets up the sync to the fastest speed but temper your usage here to 30 - 60 frames if u need stability.
position object 1,0,0,0
after u created the cube.
then just before the main do loop
fix the camera up
rem plots the camera high and back so we can see the cube
position camera 0,20,-20
rem points the camera at the cube location
point camera 0,0,0
now our do text sync loop area sets up a loop that goes forever.
the text command used in your main loop is reported to be a little slow at the moment but its ok to use.
if u used print here it would fly off the screen
unless u used it in conjunction with set cursor.
the box command draws the same shape each time at 100,100,to 110,110
this is a 10 x 10 box
as u can see the 2d needs to be in the main loop
so its updated each time.
I hope that helps a bit