Here is a little sort of game made with it's core system.
(Has no objective though,and backward moving lets you pass trough the objects.)
`Create Ground Image.
Get Image 1,0,0,640,480
`Create objects and matrix.
Make Object Sphere 2,10
Make Object Cube 1,40
Make Matrix 1,3000,3000,10,10
Position Camera 0,500,0
Fire#=0
Shot#=0
Timer#=0
MakeObjects()
Prepare Matrix Texture 1,1,10,10
Do
Controls()
Camera()
Collision()
loop
Function MakeObjects()
For X=3 to 102
Make Object Cube X,200
X#=rnd(3000)
Z#=rnd(3000)
R#=rnd(255)
G#=rnd(255)
B#=rnd(255)
Y#=rnd(1000)
Color Object X,RGB(R#,G#,B#)
Position Object X,X#,0,Z#
Set Object collision to polygons X
Scale Object X,100,Y#,100
Next X
endfunction
Function Controls()
`Rotate Right when the values are OK.
If Joystick X()=>0 then turn object right 1,0.1
If joystick X()=>200 then turn object right 1,0.2
If Joystick X()=>600 then turn object right 1,0.4
If Joystick X()=1000 then turn object right 1,0.5
`Rotate left if the values are OK.
If Joystick X()=<-30 then Turn Object left 1,0.1
If joystick X()=<-200 then turn object left 1,0.2
If Joystick X()=<-600 then turn object left 1,0.4
If Joystick X()=-1000 then turn object left 1,0.5
`Move Forward if the values are OK.
If Joystick Y()=<-10 then Move Object 1,0.1
If Joystick Y()=<-200 then Move Object 1,0.3
If Joystick Y()=<-600 then Move Object 1,0.7
If Joystick Y()=-1000 then Move Object 1,1
`Move Backward if the values are OK.
If Joystick Y()=>10 then Move Object 1,-0.1
If Joystick Y()=>200 then Move Object 1,-0.3
If Joystick Y()=>600 then Move Object 1,-0.7
If Joystick Y()=1000 then Move Object 1,-1
endfunction
Function Camera()
`Set the camera above the cube.
X#=Object Position X(1)
Y#=Object Position Y(1)
Z#=Object Position Z(1)
Position Camera X#,500,Z#
Point Camera X#,Y#,Z#
endfunction
Function Collision()
For X=3 to 102
If Object Collision(1,X)
Move Object 1,-4
endif
next X
Endfunction
EDIT:
same game,but then bouncy
`Create Ground Image.
Get Image 1,0,0,640,480
`Create objects and matrix.
Make Object Sphere 2,10
Make Object Cube 1,40
Make Matrix 1,3000,3000,10,10
Position Camera 0,500,0
Fire#=0
Shot#=0
Timer#=0
MakeObjects()
Prepare Matrix Texture 1,1,10,10
Do
Controls()
Camera()
Collision()
loop
Function MakeObjects()
For X=3 to 102
Make Object Cube X,200
X#=rnd(3000)
Z#=rnd(3000)
R#=rnd(255)
G#=rnd(255)
B#=rnd(255)
Y#=rnd(1000)
Color Object X,RGB(R#,G#,B#)
Position Object X,X#,0,Z#
Set Object collision to polygons X
Scale Object X,100,Y#,100
Next X
endfunction
Function Controls()
`Rotate Right when the values are OK.
If Joystick X()=>0 then turn object right 1,0.1
If joystick X()=>200 then turn object right 1,0.2
If Joystick X()=>600 then turn object right 1,0.4
If Joystick X()=1000 then turn object right 1,0.5
`Rotate left if the values are OK.
If Joystick X()=<-30 then Turn Object left 1,0.1
If joystick X()=<-200 then turn object left 1,0.2
If Joystick X()=<-600 then turn object left 1,0.4
If Joystick X()=-1000 then turn object left 1,0.5
`Move Forward if the values are OK.
If Joystick Y()=<-10 then Move Object 1,0.1
If Joystick Y()=<-200 then Move Object 1,0.3
If Joystick Y()=<-600 then Move Object 1,0.7
If Joystick Y()=-1000 then Move Object 1,1
`Move Backward if the values are OK.
If Joystick Y()=>10 then Move Object 1,-0.1
If Joystick Y()=>200 then Move Object 1,-0.3
If Joystick Y()=>600 then Move Object 1,-0.7
If Joystick Y()=1000 then Move Object 1,-1
endfunction
Function Camera()
`Set the camera above the cube.
X#=Object Position X(1)
Y#=Object Position Y(1)
Z#=Object Position Z(1)
Position Camera X#,500,Z#
Point Camera X#,Y#,Z#
endfunction
Function Collision()
For X=3 to 102
If Object Collision(1,X)
R#=RND(180)
turn Object Left 1,R#
endif
next X
Endfunction