Im currently making a basic Blasterball/Hardball type game as a learning experience before the big stuff, but it's been one problem after another. Currently I've been trying to convert my code into modules or subroutines so that my code is easier to work with.
However, I ran into a nesting error in the process. Here is basically the code I'm working with at the moment which gives me the error
DO
GoSub welcome
LOOP
END
welcome:
` Clear screen with pitch black
CLS RGB(0,0,0)
` Generate centered text in middle of screen
center TEXT 320,200,"welcome to:"
center TEXT 320,225,"My Unfinished Program"
center TEXT 320,250,"Programmed by Nesting Errors R US."
center TEXT 320,275,"Press ENTER to continue, or SPACEBAR to exit"
` Refresh screen until user presses ENTER or SPACE
REPEAT
SYNC
UNTIL RETURNKEY() or SPACEKEY()
` If user presses SPACE then exit program loop
IF SPACEKEY() THEN EXIT
` If user presses Enter continue on w/program
Return
Any and all help is appreciated very much. Please help me out. I'm really stumped on this one. Thanks guys.
I've got DB Classic and PS Skillz and I'm not afraid to use um!