INFO version 1/1992 PROGRAMMING NOTES MAIN VARIABLES fixed by menu A% room number ------------------------- * E%(O%) location of object O% F% number of objects carried ------------- * H% number of objects in room J% area code K% action control L% number of objects (fixed!) M% verb number N% action control O% object number P% number of rooms (fixed!) Q% number of verbs (fixed!) R% credit ------------------------- * S% action control T% state of ammunition ------------------ * U% rifle location --------------------- * V% credit card location ----------------- * W% location of autocopter ----------------- * X% location of launch ------------------- * Z% destination in next program ----------- * (values <51 reserved for menu) **************************************************************************** STANDARD PROGRAM LAYOUT From MENU -->----> INTRODUCTION Setup >--< DATA & PROCs | |---->------> INPUT | Keywords ------------>----------->| | Direction | | Direction obstructions -->------->| | Destination >--< DATA | |<----<--------- Destination obstructions -->------>| | | | | PARSER <-->DATA | | verb+object -------->------------>| | | | | |<----<------ RESPONSE(or ROUTINE) <-----------------| | To MENU <----<------ DEPARTURES DATA STORE PROCEDURES The program layout has been deliberately kept very simple so that it is easy to follow and modify even after the passage of some time. This was particularly necessary in the later BBC-B days when there was no room for spaces or REMS!. This has resulted in more GOTOs than purists would approve !. The programs should always be run from the menu so that the resident integer variables are correctly set. **************************************************************************** ADJUSTMENTS TO PLAY VERSION 1 Various routines used in play testing are deleted. Details are noted at the end of ADV (line 65110). 2 The 'Solutions' text file is omitted for obvious reasons ! **************************************************************************** FUTURE DEVELOPMENTS Fine tuning of the whole which is still only the framework for a really celebral adventure. Any new programs should be accessed from (or via using Z%) the MENU to ensure that the resident integer variables are correctly set. ****************************************************************************