Start indenting your code.
The more it can be read, the better it can be organised and the better you will code.
Seperate sections with comments and lines. Eg.
;--------------------------------------------------
; main loop
;--------------------------------------------------
While not Keyhit(1)....
and don't forget to explain how you were thinking - max two lines of comments...
;this routine loads in the level...
;currently needs optimising.
LoadLevel()
And so on. But indent your code at ALL costs. Understand when and why to indent. Look it up and figure it out. It is taught in all universities and colleges for a good reason.
The more it can be read, the better it can be organised and the better you will code.
Seperate sections with comments and lines. Eg.
;--------------------------------------------------
; main loop
;--------------------------------------------------
While not Keyhit(1)....
and don't forget to explain how you were thinking - max two lines of comments...
;this routine loads in the level...
;currently needs optimising.
LoadLevel()
And so on. But indent your code at ALL costs. Understand when and why to indent. Look it up and figure it out. It is taught in all universities and colleges for a good reason.