Worked for me. Thats excellent for 20 lines, I've never seem anything like that in 20 lines. One thing I fixed was the scrolling of the ship, it was in massive steps. I put...
move_x#=mousemovex()
move_x#=move_x#/10
x#=x#+move_x#
rather than...
x#=x#+mousemovex()/9
The mousemovex() function seems to return an integer so you get an integer when dividing it, so you have to store the value as a real number and then divide it to get smaller steps and smoother movement.
`*****************************************************************
`GREETINGS FELLOW DB'ers!!! This is my first public game on DB!
`It might be a little bit hard to understand, so
`if you have any questions at all, please feel free to contact me!
`Email+MSN:piratss@hotmail.com
`*****************************************************************
`CUSTOMIZABLE PART!
sync rate 0:trees=26
`*******************
`THE HEAVY 19 LINES!
sync on:hide mouse:load image "grass.JPG",1:load image "smoke.JPG",3:load image "dark.JPG",4
load image "moon.JPG",6:load image "stars.JPG",7:load music "music.mid",1:loop music 1:make object plain 12500,25,25
texture object 12500,6:ghost object on 12500:scale object 12500,300,300,300:set object 12500,1,0,0,0,0,0,0:for i=2 to 3
make object plain i,25,25:texture object i,3:ghost object on i:xrotate object i,90:fix object pivot i
scale object i,3,100,100:next i:make matrix 1,1000,1000,20,20:prepare matrix texture 1,1,2,2:fill matrix 1,10,1
randomize matrix 1,2*10:make matrix 3,1000,1000,20,20:prepare matrix texture 3,4,2,2:fill matrix 3,10,4:randomize matrix 3,2
ghost matrix on 3:color backdrop rgb(0,0,0):texture backdrop 7:fog on:fog distance 300
load object "air.x",1:scale object 1,10,10,10:yrotate object 1,270:load object "air.x",100:scale object 100,10,0,10
yrotate object 100,270:color object 100,rgb(12,12,12):set object 100,1,1,0,0,0,0,0:fix object pivot 1:fix object pivot 100
for i=4 to trees+4:load object "tree2.x",i:scale object i,1000+rnd(1000),1000+rnd(1000),1000+rnd(1000):X2#=500+rnd(500)-250:Z2#=500+rnd(500)-250
Y2#=get ground height(1,X2#,Z2#)+20:position object i,X2#,Y2#,Z2#:next i:do:oldx#=x#
scroll object texture 2,0,-0.01:scroll object texture 3,0,-0.01:sz#=sz#-5.0:move_x#=mousemovex():move_x#=move_x#/10
x#=x#+move_x#:if sz#<0.0:shift matrix up 1:sz#=sz#+50.0:endif
for i=4 to trees+4:Z2#=object position Z(i)-5:if object position Z(i)<=400:X2#=500+rnd(500)-250:Z2#=900+rnd(500)-250
Y2#=get ground height(1,X2#,Z2#):position object i,X2#,Y2#,Z2#:scale object i,1000+rnd(1000),1000+rnd(1000),1000+rnd(1000):endif:position object i,object position x(i),object position y(i),Z2#
next i:position object 1,X#+500,50-5,Z#+500+7:position object 2,X#+500-.2,50-5,Z#+500-6:position object 3,X#+500+.2,50-5,Z#+500-6:position object 12500,700,150-5,900
position object 100,X#+500,50-15,Z#+500+7+10:if object position x(1)<494 or object position x(1)>506 then x#=oldx#
center text 320,0,"Landscape 20 Lines DBC Speedy Demo":center text 320,20,"Frames per second: "+str$(screen fps())
position matrix 1,sx#,0,sz#:position matrix 3,sx#,5,sz#:position camera 500,50,Z#+500:sync:loop
`*********************
Yum! Yum! Yum! Yum!