11-17-2006, 09:25 AM
Quote:We shouldn't have to use GOSUB command at all. We just need to call the functions and exit when we need to. We just need a program DO-LOOP that calls what we need in succession. What happens is indicated from external code - each area has a seperate code set. It's hard to explain so I'll work on an example.
How is that any different than:
Code:
x=0
do
if x=0 then gosub main
if x=1 then gosub room1
...
loop
main:
....
....
return
room1:
....
....
return
Not yet Snake! It's not over yet!