--- title: "ZX Maze" type: "article" slug: "zx-maze" url: "http://localhost/article/zx-maze/" markdown_url: "http://localhost/article/zx-maze.md" published_at: "2020-10-27T17:19:00+00:00" modified_at: "2024-06-23T07:49:24+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "Have you dreamed of writing a graphics game complete with maze, treasure, and gobbling hunter? Perhaps you figured out how to move your man and draw the maze, but how in blazes do you teach your treasure seeker that he cannot just march through walls to collect his prize? Finding a way around this dilemma…" category: - name: "SYNC" slug: "sync" taxonomy: "category" url: "http://localhost/category/periodicals/sync/" post_tag: - name: "1983" slug: "year-1983" taxonomy: "post_tag" url: "http://localhost/tag/year-1983/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" - name: "ZX81" slug: "zx81" taxonomy: "post_tag" url: "http://localhost/tag/zx81/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Thomas B. Woods" slug: "thomas-b-woods" taxonomy: "indiv" url: "http://localhost/indiv/thomas-b-woods/" publication: "Sync" publication_r: id: 10243 title: "SYNC" type: "periodical" url: "http://localhost/periodical/sync-magazine/" authors: "Thomas B. Woods" volume: "3" issue: "2" issues_articles: - id: 26648 title: "SYNC v3 n2" type: "issue" url: "http://localhost/issue/sync-v3-n2/" pages: "76, 78" pubdate: "March/April 1983" archive_link: false volumeissue: "v3n2" --- # ZX Maze Have you dreamed of writing a graphics game complete with maze, treasure, and gobbling hunter? Perhaps you figured out how to move your man and draw the maze, but how in blazes do you teach your treasure seeker that he cannot just march through walls to collect his prize? Finding a way around this dilemma had me banging my head against the wall until I discovered that the secret lies in mapping the display and then checking points of action against that map to keep everything within the rules.