gb-asm-tutorial icon indicating copy to clipboard operation
gb-asm-tutorial copied to clipboard

Part II: Implicit disappearance of the variable

Open AneMou opened this issue 1 year ago • 1 comments

wFrameCounter is playing Hide & Seek

First, thank you for the tutorial. :smile:

Description: While translating the tutorial into French, I noticed something: wFrameCounter is only used in Lesson 15: Objects, and it's never used afterwards. For example, if I follow the tutorial and try to match the line numbers when editing main.asm, we should end up with this source code in Lesson 17: Input main.asm file.

Solution: One way to fix this minor issue could be to remove all content related to the counter and explain why we don't need it after Lesson 15: Objects. Another approach would be to reimplement it if it's meaningful.

AneMou avatar Oct 19 '24 08:10 AneMou

Some details about the code side of this, for anyone looking to fix it:

  • the variable and its initialisation is present in all the lessons following its introduction
  • the variable is not used (updated) in the Input or later lessons

quinnyo avatar May 26 '25 16:05 quinnyo