Skip to navigation

Landscape: stripData

Name: stripData [Show more] Type: Variable Category: Landscape Summary: Storage for tile data when smoothing strips of tiles during the landscape generation process
CLEAR &5A00, &5C00 \ Memory from &5A00 to &5BFF has two separate uses ORG &5A00 \ \ During the landscape generation process, it is used \ for storing tile data that can be discarded once the \ landscape is generated \ \ During gameplay it is used to store the xPolygonLeft \ and xPolygonRight tables \ \ These lines rewind BeebAsm's assembly back to &5A00 \ and clear the block from that point to the end of the \ xPolygonLeft and xPolygonRight variables at &5C00, \ so we can assemble the landscape variables \ \ The game binary actually contains snippets of the \ original source code, left over from the BBC Micro \ assembly process, so we include this workspace noise \ to ensure that we generate an exact match for the game \ binary .stripData EQUB &44, &58, &20, &45, &54, &45, &4D, &0D \ These values are workspace EQUB &14, &3C, &05, &20, &0D, &14, &46, &23 \ noise and have no meaning EQUB &20, &20, &20, &20, &20, &20, &54, &59 \ EQUB &41, &3A, &4A, &53, &52, &20, &45, &4D \ They actually contain snippets EQUB &49, &52, &54, &45, &53, &54, &3A, &42 \ of the original source code EQUB &43, &43, &20, &6D, &65, &61, &32, &0D EQUB &14, &50, &05, &20, &0D, &14, &5A, &1A EQUB &20, &20, &20, &20, &20, &20, &54, &59