I'm working on a small project, and rather than making a level editor (until I get the actual code working as expected), I'm just using DATA statements.
The sections are called .level1, .level2 etc, but I'm currently having to "RESTORE level1" to read the data for that level (and then RESTORE level2 to get the next one).
Is there an easy way to combine the level number with the label so I can just have code at the end of level section which looks like "RESTORE level+lvlNumber"?
The sections are called .level1, .level2 etc, but I'm currently having to "RESTORE level1" to read the data for that level (and then RESTORE level2 to get the next one).
Is there an easy way to combine the level number with the label so I can just have code at the end of level section which looks like "RESTORE level+lvlNumber"?