More Mapper

Today was another productive day on mapper.  So far my source code is up to 9 blocks.

I designed the file structure which is very simple at this time.  The first record is a control record.  At this time all it contains is an integer representing the number of rooms in the map or a record count.  I set this to zero when I create the file and increment it as I add rooms (technically room is stored in record 2).  Each record after that contains ten integers and a 64 character string.  The integers are for each direction (north, northeast, east, southeast, south, southwest, west, northwest, up and down)  and the string is for the name of the room.

I have been learning all about the way ZBasic handles screen displays, random access files and error handling.  I get the map file name from the user, which allows multiple maps.  If it doesn’t exist I give the user the option to create it, or the program ends.  I have the basic main menu up and working, as well as subroutines to read and write the map file records to the file.

— On the Island —

Today was my last full day on the Island.  The wedding we came for had the most incredible weather, so everything was beautiful.  I got to spend a lot of time with my family, both immediate and extended.  Tomorrow I head home.

81/95

 

 

Posted in Programming, Projects Tagged with: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*