Hi Charles,
is not executable here!
Sub MainMenu()
While EscKey() =0
glClearColor 0.0, 0.0, 0.0, 0.0
glClear GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT
DrawTexture Bild,0,0,800,600
DrawText Font,"MINI BOULDER",208,16,32,32
DrawText Font, a,64,32,12,8
DrawText Font,"LEVELS " + zLev,336,224,16,16
DrawText Font,"PLAYER " + xName,336,240,16,16
DrawText Font,"HSCORE ",336,256,16,16
DrawText Font,"GOHOME ",336,272,16,16
DrawText Font,"SECRET ",336,288,16,16
DrawText Font,"OXYGENBASIC GAME",272,528,16,64
DrawTexture Quad,xCur,yCur,96,16
iF Key(vk_down) <0 and yCur <288 and CurD=0
yCur +=16: CurD=1
PlaySound s30
ElseiF Key(vk_up) <0 and yCur >224 and CurU=0
yCur -=16: CurU=1
PlaySound s30
ElseiF Key(vk_right) <0 and zlev <50 and yCur=224 and CurR=0
zlev +=1: CurR=1
PlaySound s30
ElseiF Key(vk_left) <0 and zlev > 1 and yCur=224 and CurL=0
zlev -=1: CurL=1
PlaySound s30
ElseiF Key(vk_space) <0 And yCur =224 and iRet=0
iRet=1
'DataInit()
'Times = xTime(zLev)
'Gems = xGems(zLev)
LoadFile "Maps\Map" + zLev + ".bin",cMap
'FindDigger()
'MainGame()
'ElseiF yCur =240
'PlayerInput()
ElseiF Key(vk_space) <0 And yCur =256 and iRet=0
iRet=1
'ShowHighScore()
ElseiF Key(vk_space) <0 And yCur =288
DrawTexture Peti,430,300,128,128
ElseiF Key(vk_space) <0 And yCur =272
'SavePlayer()
Exit Sub '< 1 excess left brackets in source ((..)
End iF
DoEvents
SwapBuffers hDC
WaitFrames 25
iF Key(vk_right) =0 Then CurR=0
iF Key(vk_left) =0 Then CurL=0
iF Key(vk_Up) =0 Then CurU=0
iF Key(vk_Down) =0 Then CurD=0
iF Key(vk_space =0 Then iRet=0
Wend
End Sub
yCur=224: xCur=336
MainMenu
I also noticed that 'ElseiF Key(vk_return) <0' has no effect! Key is = GetAsyncKeyState() : vk_return = 0x0D
The other 17 'excess left brackets in source ((..)' are similar built.
I have got 4574 lines right now. If I leave aside 'Exit Sub' then is anything Okay!