Suggestions for porting old sequential BASIC code?

BlitzMax Forums/BlitzMax Beginners Area/Suggestions for porting old sequential BASIC code?

Yup. I wound up doing something similar. I wrote a function for each section of the original code and then just used a variable to track the current "place" in the game. Not a location like you, but the place in the sequential program. Then I just run the event loop continuously just like an arcade game. Every time the user hits Enter, it sends the current input off to the correct function for processing. I update the output list as part of the function and the event loop dutifully keeps the graphics up to date.

So in the end, I actually just mapped the sequential logic into a series of functions and just call them from the event loop every time the user hits Enter.

Took me a while to get my head wrapped around how to get those two concepts to work together. Too long writing arcade stuff I guess.

Maybe I'll start to work on Zork when I'm done with this one. :)

Thanks for the help.

-pmc