: this code which i wrote works somewhat satisfactorily.
graphics 640,480 ; top line
setbuffer backbuffer()
stargame()
function startgame()
while not keyhit(1)
; put some stuffts
if keyhit(28)
endgame()
endif
flip
cls
wend
end function
function endgame()
graphics 640,480
; this is needed(w must be 640 and h must be 480 )
; because in top line i wrote graphics 640,480
; else you may encounter some problem
vwait 10
end
end function
; note it will work fine even if have set ur PC screen
; resolution to 640*480, 800*600 ..... and so on
graphics 640,480 ; top line
setbuffer backbuffer()
stargame()
function startgame()
while not keyhit(1)
; put some stuffts
if keyhit(28)
endgame()
endif
flip
cls
wend
end function
function endgame()
graphics 640,480
; this is needed(w must be 640 and h must be 480 )
; because in top line i wrote graphics 640,480
; else you may encounter some problem
vwait 10
end
end function
; note it will work fine even if have set ur PC screen
; resolution to 640*480, 800*600 ..... and so on