{"id":3023,"date":"2026-05-17T18:00:32","date_gmt":"2026-05-17T16:00:32","guid":{"rendered":"https:\/\/www.eastpixel.de\/?p=3023"},"modified":"2026-05-19T19:55:38","modified_gmt":"2026-05-19T17:55:38","slug":"anna-the-leon-bug-and-its-fix","status":"publish","type":"post","link":"https:\/\/www.eastpixel.de\/de\/2026\/05\/17\/anna-the-leon-bug-and-its-fix\/","title":{"rendered":"Anna: The &#8220;Leon&#8221;-bug and its fix"},"content":{"rendered":"<p><span class=\"ytAttributedStringHost ytAttributedStringWhiteSpacePreWrap\" dir=\"auto\" role=\"text\"><span class=\"ytAttributedStringLinkInheritColor\" dir=\"auto\">A game-breaking bug in the upcoming game Anna: The Magic of Words (NES\/Famicom) where the player stuck in a wall sometimes. The bug was found by 8-year-old Leon at LNC 2026 in Leipzig\/Germany in May 2026. The linked video shows the bug and its fix.<\/span><\/span><\/p>\n<p><strong>Video: <a href=\"https:\/\/www.youtube.com\/watch?v=u0RUER31Uqw\" target=\"_blank\" rel=\"noopener\">Game-breaking bug found in Anna: The Magic of Words (for NES\/Famicom)<\/a><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Technical description of the bug<\/h3>\n<p>Simply said, the game Anna: The Magic of Words (and nearly all NES games) is divided into individual screens.<\/p>\n<p>Scrolling sections are\u2014in memory\u2014contiguous screens.<br \/>\nStatic sections are loaded one after another as individual screens.<\/p>\n<p>Several factors came together in this bug: The logic for collecting the heart and its counting, the character\u2019s downward movement into the hole, the invisible \u201ctrigger\u201d in the hole that discards the current screen and simultaneously starts loading the next screen to memory. At the same time, graphics are removed from memory and new graphics (tiles) for the new screen are loaded, including color palettes, sound, collision data, etc.<\/p>\n<p>Due to the limited size of the NES\u2019s working memory (2 KB of RAM), unfortunately not all individual metadata for every screen can be kept in memory at all times.<br \/>\nTherefore, much of the screen-specific metadata is stored statically and must be loaded dynamically. (This includes &#8220;spawn&#8221; points &#8211; the X\/Y coordinates where the player character appears on a newly loaded screen.)<\/p>\n<p>When switching screens, some character information is reset (acceleration, movement, etc.), as this information would otherwise automatically carry over to a new screen and could lead to undesirable results. This and other aforementioned functions require CPU time.<\/p>\n<p>In this particular bug, under certain conditions of joypad operation, the CPU was occupied with data processing for too long, and the new screen was already fully rendered and displayed even though not all metadata was yet available correctly.<\/p>\n<p>While the &#8220;spawn&#8221; point Y (character\u2019s vertical position) was loaded and set correctly, the &#8220;spawn&#8221; point X could no longer be set correctly because it wasn&#8217;t loaded; instead, this new information was ignored, and the character was simply positioned at the same X-coordinate as on the previous screen. The logic check for the X-coordinate also failed, since a value had already been set (the previous value, which could just as easily have been the new one). However, no further check was performed to verify whether this value was correct.<\/p>\n<p>On the new screen, there was a &#8220;wall&#8221; at this position, and the character became stuck.<\/p>\n<h3>The fix<\/h3>\n<p>To trigger this scenario, several specific conditions must be met, and these can occur at various points in the game.<\/p>\n<p>That&#8217;s why I modified the loading routine and memory management.<\/p>\n<p>Please note: As you can see in the video, the level structure (on the new screen) was adjusted; this is no longer necessary after the bug fixes, but it can&#8217;t be removed from the video now. \ud83d\ude09<\/p>","protected":false},"excerpt":{"rendered":"<p>A game-breaking bug in the upcoming game Anna: The Magic of Words (NES\/Famicom) where the player stuck in a wall sometimes. The bug was found by 8-year-old Leon at LNC 2026 in Leipzig\/Germany in May 2026. The linked video shows the bug and its fix. Video: Game-breaking bug found in Anna: The Magic of Words <a href=\"https:\/\/www.eastpixel.de\/de\/2026\/05\/17\/anna-the-leon-bug-and-its-fix\/\" class=\"more-link\">&#8230;<span class=\"screen-reader-text\">  Anna: The &#8220;Leon&#8221;-bug and its fix<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-3023","post","type-post","status-publish","format-standard","hentry","category-gamedev-blog"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Anna: The &quot;Leon&quot;-bug and its fix - EASTPIXEL Software<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.eastpixel.de\/de\/2026\/05\/17\/anna-the-leon-bug-and-its-fix\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Anna: The &quot;Leon&quot;-bug and its fix - EASTPIXEL Software\" \/>\n<meta property=\"og:description\" content=\"A game-breaking bug in the upcoming game Anna: The Magic of Words (NES\/Famicom) where the player stuck in a wall sometimes. The bug was found by 8-year-old Leon at LNC 2026 in Leipzig\/Germany in May 2026. The linked video shows the bug and its fix. Video: Game-breaking bug found in Anna: The Magic of Words ... Anna: The &#8220;Leon&#8221;-bug and its fix\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.eastpixel.de\/de\/2026\/05\/17\/anna-the-leon-bug-and-its-fix\/\" \/>\n<meta property=\"og:site_name\" content=\"EASTPIXEL Software\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-17T16:00:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-19T17:55:38+00:00\" \/>\n<meta name=\"author\" content=\"Christian\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christian\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/2026\\\/05\\\/17\\\/anna-the-leon-bug-and-its-fix\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/2026\\\/05\\\/17\\\/anna-the-leon-bug-and-its-fix\\\/\"},\"author\":{\"name\":\"Christian\",\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/#\\\/schema\\\/person\\\/f3d4d79338aa44be7b0e80a9aeb73acc\"},\"headline\":\"Anna: The &#8220;Leon&#8221;-bug and its fix\",\"datePublished\":\"2026-05-17T16:00:32+00:00\",\"dateModified\":\"2026-05-19T17:55:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/2026\\\/05\\\/17\\\/anna-the-leon-bug-and-its-fix\\\/\"},\"wordCount\":494,\"publisher\":{\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/#organization\"},\"articleSection\":[\"Game\\\/Tool development\"],\"inLanguage\":\"de\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/2026\\\/05\\\/17\\\/anna-the-leon-bug-and-its-fix\\\/\",\"url\":\"https:\\\/\\\/www.eastpixel.de\\\/2026\\\/05\\\/17\\\/anna-the-leon-bug-and-its-fix\\\/\",\"name\":\"Anna: The \\\"Leon\\\"-bug and its fix - EASTPIXEL Software\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/#website\"},\"datePublished\":\"2026-05-17T16:00:32+00:00\",\"dateModified\":\"2026-05-19T17:55:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/2026\\\/05\\\/17\\\/anna-the-leon-bug-and-its-fix\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.eastpixel.de\\\/2026\\\/05\\\/17\\\/anna-the-leon-bug-and-its-fix\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/2026\\\/05\\\/17\\\/anna-the-leon-bug-and-its-fix\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\\\/\\\/www.eastpixel.de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Anna: The &#8220;Leon&#8221;-bug and its fix\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/#website\",\"url\":\"https:\\\/\\\/www.eastpixel.de\\\/\",\"name\":\"EASTPIXEL Software\",\"description\":\"We make videogames for old hardware.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.eastpixel.de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/#organization\",\"name\":\"EASTPIXEL Software\",\"url\":\"https:\\\/\\\/www.eastpixel.de\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"EASTPIXEL Software\"},\"image\":{\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.eastpixel.de\\\/#\\\/schema\\\/person\\\/f3d4d79338aa44be7b0e80a9aeb73acc\",\"name\":\"Christian\",\"sameAs\":[\"https:\\\/\\\/www.eastpixel.de\",\"https:\\\/\\\/www.instagram.com\\\/christian_dinse_writes\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/christiandinse\\\/\"],\"url\":\"https:\\\/\\\/www.eastpixel.de\\\/de\\\/author\\\/chp5492\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Anna: The \"Leon\"-bug and its fix - EASTPIXEL Software","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.eastpixel.de\/de\/2026\/05\/17\/anna-the-leon-bug-and-its-fix\/","og_locale":"de_DE","og_type":"article","og_title":"Anna: The \"Leon\"-bug and its fix - EASTPIXEL Software","og_description":"A game-breaking bug in the upcoming game Anna: The Magic of Words (NES\/Famicom) where the player stuck in a wall sometimes. The bug was found by 8-year-old Leon at LNC 2026 in Leipzig\/Germany in May 2026. The linked video shows the bug and its fix. Video: Game-breaking bug found in Anna: The Magic of Words ... Anna: The &#8220;Leon&#8221;-bug and its fix","og_url":"https:\/\/www.eastpixel.de\/de\/2026\/05\/17\/anna-the-leon-bug-and-its-fix\/","og_site_name":"EASTPIXEL Software","article_published_time":"2026-05-17T16:00:32+00:00","article_modified_time":"2026-05-19T17:55:38+00:00","author":"Christian","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Christian","Gesch\u00e4tzte Lesezeit":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.eastpixel.de\/2026\/05\/17\/anna-the-leon-bug-and-its-fix\/#article","isPartOf":{"@id":"https:\/\/www.eastpixel.de\/2026\/05\/17\/anna-the-leon-bug-and-its-fix\/"},"author":{"name":"Christian","@id":"https:\/\/www.eastpixel.de\/#\/schema\/person\/f3d4d79338aa44be7b0e80a9aeb73acc"},"headline":"Anna: The &#8220;Leon&#8221;-bug and its fix","datePublished":"2026-05-17T16:00:32+00:00","dateModified":"2026-05-19T17:55:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.eastpixel.de\/2026\/05\/17\/anna-the-leon-bug-and-its-fix\/"},"wordCount":494,"publisher":{"@id":"https:\/\/www.eastpixel.de\/#organization"},"articleSection":["Game\/Tool development"],"inLanguage":"de"},{"@type":"WebPage","@id":"https:\/\/www.eastpixel.de\/2026\/05\/17\/anna-the-leon-bug-and-its-fix\/","url":"https:\/\/www.eastpixel.de\/2026\/05\/17\/anna-the-leon-bug-and-its-fix\/","name":"Anna: The \"Leon\"-bug and its fix - EASTPIXEL Software","isPartOf":{"@id":"https:\/\/www.eastpixel.de\/#website"},"datePublished":"2026-05-17T16:00:32+00:00","dateModified":"2026-05-19T17:55:38+00:00","breadcrumb":{"@id":"https:\/\/www.eastpixel.de\/2026\/05\/17\/anna-the-leon-bug-and-its-fix\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.eastpixel.de\/2026\/05\/17\/anna-the-leon-bug-and-its-fix\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.eastpixel.de\/2026\/05\/17\/anna-the-leon-bug-and-its-fix\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/www.eastpixel.de\/"},{"@type":"ListItem","position":2,"name":"Anna: The &#8220;Leon&#8221;-bug and its fix"}]},{"@type":"WebSite","@id":"https:\/\/www.eastpixel.de\/#website","url":"https:\/\/www.eastpixel.de\/","name":"EASTPIXEL Software","description":"We make videogames for old hardware.","publisher":{"@id":"https:\/\/www.eastpixel.de\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.eastpixel.de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/www.eastpixel.de\/#organization","name":"EASTPIXEL Software","url":"https:\/\/www.eastpixel.de\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.eastpixel.de\/#\/schema\/logo\/image\/","url":"","contentUrl":"","caption":"EASTPIXEL Software"},"image":{"@id":"https:\/\/www.eastpixel.de\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.eastpixel.de\/#\/schema\/person\/f3d4d79338aa44be7b0e80a9aeb73acc","name":"Christian","sameAs":["https:\/\/www.eastpixel.de","https:\/\/www.instagram.com\/christian_dinse_writes","https:\/\/www.linkedin.com\/in\/christiandinse\/"],"url":"https:\/\/www.eastpixel.de\/de\/author\/chp5492\/"}]}},"_links":{"self":[{"href":"https:\/\/www.eastpixel.de\/de\/wp-json\/wp\/v2\/posts\/3023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.eastpixel.de\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.eastpixel.de\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.eastpixel.de\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.eastpixel.de\/de\/wp-json\/wp\/v2\/comments?post=3023"}],"version-history":[{"count":9,"href":"https:\/\/www.eastpixel.de\/de\/wp-json\/wp\/v2\/posts\/3023\/revisions"}],"predecessor-version":[{"id":3032,"href":"https:\/\/www.eastpixel.de\/de\/wp-json\/wp\/v2\/posts\/3023\/revisions\/3032"}],"wp:attachment":[{"href":"https:\/\/www.eastpixel.de\/de\/wp-json\/wp\/v2\/media?parent=3023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.eastpixel.de\/de\/wp-json\/wp\/v2\/categories?post=3023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.eastpixel.de\/de\/wp-json\/wp\/v2\/tags?post=3023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}