I kept playing with the Beginner’s Cave today. There’s quite a bit of action packed into this small adventure. By small, I mean there are only 26 locations or rooms.
As I said yesterday, I felt like I was doing pretty well right up until I died. Yesterday I died once, but today I died three times. There is a note at the Beginners Cave warning you that you should have a minimum of 22 for hardiness, agility and charisma. The character I’ve been playing has 19’s in each, so that may be why I keep dying.
—
Years ago, I bought and used ZBasic for my Apple //c. I’ve been reading the manual and remembering/relearning some of the nice features of this language. Line numbers are not necessary, you can use labels for code segments. You just start the line with the label in double quotes and then you can refer to this label just like a line number.
goto “Label”
gosub “Label”
if a<1 then “Label”
When in the Zbasic environment you can start the full screen editor by entering editor+ which starts the editor loading the current program without line numbers. When you are done editing, just press escape to exit the editor. This returns you to the line orientated editor and renumbers the current program. This is noted in a section of the manual on structured programming.
Another feature, automatic indentation of loops, long fn and long if, makes the code easier to read. These along with frequent well thought comments and the use of longer variables will help out six months down the road when a problem pops up or a change needs to made to your code.
—
25/27

Leave a Reply