For a start, you aren't using Delphi!
(You don't put a semicolon on the end of lines in DB)...
You also have colons where they shouldn't be.
I also suggest that you use indentation in your code to make it easier to read.
Other than that it seems to work OK, though without any reference point you couldn't see anything was moving. So I added a matrix for that reason.
Also, much of your code could be replaced with the Set Camera To Follow command (which I'll leave to you to experiment with).
REM Project: TestGame
REM Created: 9/18/2005 7:58:44 PM
REM
REM ***** Main Source File *****
REM
Sync On
Sync Rate 60
Make Matrix 1,5000,5000,30,30
rem variables
walkspeed=2
space=60
cubedir=0: rem cube direction
cubex=0: rem cube x
cubey=0: rem cube y
cubez=0: rem cube z
rem now create the cube:
make object cube 1,10
rem position and rotate objects:
position object 1,cubex,cubey,cubez
yrotate object 1,cubedir
make object cube 2,10
position object 2,0,0,100
rem set the camera's starting x y and z position
camerax=cubex-(cos(cubedir)*space);
cameray=0;
cameraz=cubez-(sin(cubedir)*space);
rem main loop:
do
rem point the camera
point camera cubex,cubey,cubez
rem camera x y and z coordinates
camerax=cubex-(cos(cubedir)*space)
cameray=10
cameraz=cubez-(sin(cubedir)*space)
rem key inputs
if rightkey()=1 then cubedir=cubedir-1
if leftkey()=1 then cubedir=cubedir+1
if upkey()=1
cubex=cubex+(cos(cubedir)*walkspeed)
cubez=cubez+(sin(cubedir)*walkspeed)
endif
if downkey()=1
cubex=cubex-(cos(cubedir)*walkspeed)
cubez=cubez-(sin(cubedir)*walkspeed)
endif
rem end of that...
rem position and rotate objects
position camera camerax,cameray,cameraz
position object 1,cubex,cubey,cubez
point object 1,cubex+(cos(cubedir)*walkspeed),cubey,cubez+(sin(cubedir)*walkspeed)
Sync
rem debug text
text 10,10,"Cube direction: " +str$(cubedir)
text 10,30,"Camera X: " +str$(camerax)
text 10,50,"Camera Y: " +str$(cameray)
text 10,70,"Camera Z: " +str$(cameraz)
text 10,90,"Camera Y rotate: " +str$(camerary)
text 10,110,"Cube X: " +str$(cubex)
text 10,130,"Cube Y: " +str$(cubey)
text 10,150,"Cube Z: " +str$(cubez)
loop
TDK_Man