Skip to content

Part II: Implicit disappearance of the variable #110

Open
@AneMou

Description

@AneMou

wFrameCounter is playing Hide & Seek

First, thank you for the tutorial. 😄

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.

Activity

added a commit that references this issue on May 15, 2025
6883cd6
quinnyo

quinnyo commented on May 26, 2025

@quinnyo
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @quinnyo@AneMou

      Issue actions

        Part II: Implicit disappearance of the variable · Issue #110 · gbdev/gb-asm-tutorial