Breakout Clone Problems

Blitz3D Forums/Blitz3D Beginners Area/Breakout Clone Problems

Hi, I guess this could be defined as a type question.

I have the following code

;Breakout Clone By Bluewolf
;Features Block Counter,Sounds,Sprites

Graphics3D 800,600

;Some Variables
Global lvl1=15 ;the number of blocks in lvl1

Type Block ;Type for block
Field x#,y# ;x,y positions of the blocks
Field ifhit% ;0 if not hit 1 for every hit after
Field red,green,blue ;RGB color values
Field blck ;the block part
End Type

Type Ball ;Type for the bouncy ball
Field x#,y# ;the x,y of the ball
Field ifhit%;if hitting=1 otherwise=0
End Type

Type Paddle ;the player type
Field x#,y# ;the position of the ball
Field Ifhit ;if touching ball=1 otherwise=0
End Type

;Do some functions
CreateBlocks()
;CreatePaddle()
;CreateBall()

While Not KeyDown(1)
;MovePaddle()
;UpdateBall()
;UpdatePaddle()

UpdateWorld
RenderWorld
Flip
Wend
End

Function CreateBlocks()
	tempx=0
	tempy=300

	For i=0 To lvl1
		
		block.block=New Block
		block\x=tempx
		block\y=tempy
		block\ifhit=0
		block\red=Rnd(0,255)
		block\green=Rnd(0,255)
		block\blue=Rnd(0,255)
		block\blck=LoadSprite("sprite.png")
		
		PositionEntity block\blck,block\x,block\y,0
		EntityColor block\blck,block\red,block\green,block\blue
	
	Next
	
End Function 


The problem is it does not display anything. Just a silly noobie question I know but any help will be appreciated.

Thanks,
BlueWolf