maze

Blitz3D Forums/Blitz3D Beginners Area/maze

I'm trying to make a finish to my maze game,but it's not doing anything. Here's my code:
Include "start.bb"

Const TYPE_COL=1,TYPE_MAZE=10,TYPE_WATER=11,TYPE_B=10

Collisions TYPE_COL,TYPE_MAZE,2,2
Collisions TYPE_COL,TYPE_B,2,2

cam=CreateCamera()
PositionEntity cam,0,4,0
EntityType cam,TYPE_COL
CameraRange cam,1,45000

maze=LoadMesh("maze1.x")
EntityType maze,TYPE_MAZE
ScaleEntity maze,1.5,1.1,1.5

b=LoadMesh("b1.x")
EntityType b,TYPE_B
ScaleEntity b,1.5,1.1,1.5
PositionEntity b,0,-2,0
EntityAlpha b,0

water=LoadMesh("water1.x")
EntityType water,TYPE_water
PositionEntity water,0,-1.5,0
EntityAlpha water,0.5
ScaleEntity water,1.5,1.1,1.5

sky=CreateCube()
ScaleEntity sky,-1000,-1000,-1000
EntityColor sky,0,255,255

l=CreateLight()
LightColor l,255,255,255

l=CreateLight()
LightColor l,255,255,255
TurnEntity l,45,45,0

l=CreateLight()
LightColor l,255,255,255
TurnEntity l,90,90,0

l=CreateLight()
LightColor l,255,255,255
TurnEntity l,135,135,0

l=CreateLight()
LightColor l,255,255,255
TurnEntity l,180,0,180

While Not KeyHit(1)

If KeyDown(200)
MoveEntity cam,0,0,0.2
EndIf

If KeyDown(208)
MoveEntity cam,0,0,-0.2
EndIf

If KeyHit(203)
TurnEntity cam,0,45,0
EndIf

If KeyHit(205)
TurnEntity cam,0,-45,0
EndIf

If Not EntityCollided(maze,cam)
MoveEntity cam,0,-0.08,0
EndIf

UpdateWorld
RenderWorld
Flip
Wend
End