Skip to content

Merge sprite.cc and screen.cc #79

Open

Description

@zabidenhtf

It can be helpful because now screen.cc it just interface for sprite.cc, and im think merge it is good idea

Activity

  1. petitlapin commented on Feb 19, 2026

    @petitlapin
    Owner

    I started a bit in #80.
    I'm not sure we can fully merge both. Conceptually, the sprites should be displayed on the screen (so, Sprite should not be a global variable, it should be an internal attribute of Screen class and the other classes should not have access to it, only the enum to ask what to display and where).

    Looking more closely at the code, we already have free static method DrawText() in sprite.cc which should probably not exist and the text drawing should be done in screen.cc (it already exists).

    I don't plan to do more now than the PR above, feel free to jump in if you want to refactor this case and remove the Sprite global variable :).

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions